Cloudy
Spectral Synthesis Code for Astrophysics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
grid.h
Go to the documentation of this file.
1 /* This file is part of Cloudy and is copyright (C)1978-2023 by Gary J. Ferland and
2  * others. For conditions of distribution and use see copyright notice in license.txt */
3 
4 #ifndef GRID_H_
5 #define GRID_H_
6 
7 #include "optimize.h"
8 #include "container_classes.h"
9 
11 void grid_do();
12 
17 void gridXspec(realnum *, long);
18 
20 void GridRetrieveXSPECData(int option);
21 
22 const int NUM_OUTPUT_TYPES = 11;
23 
24 struct t_grid
25 {
27  vector<string> paramNames;
28  vector<long> paramMethods;
32 
35  vector<realnum> paramValuesFromList[LIMPAR];
39 
41  bool lgGrid;
42  bool lgGridDone;
46  bool lgParallel;
49  unsigned int useCPU;
54  bool lgCrash;
57 
59  long int nGridCommands;
60 
61  long nintparm;
62  long naddparm;
65 
67  long nCycle;
68 
70 
71  FILE* pnunit;
72  long seqNum;
73 
75  {
76  lgGridDone = false;
77  lgInsideGrid = false;
78  lgStrictRepeat = false;
79  seqNum = 0;
80  }
81 };
82 extern t_grid grid;
83 
84 #endif /* GRID_H_ */
void grid_do()
Definition: grid_do.cpp:19
void GridRetrieveXSPECData(int option)
Definition: grid_xspec.cpp:169
FILE * pnunit
Definition: grid.h:71
vector< string > paramNames
Definition: grid.h:27
bool lgGrid
Definition: grid.h:41
bool lgGridDone
Definition: grid.h:42
bool lgKeepMainOutputSeparate
Definition: grid.h:52
Definition: grid.h:24
bool lgStrictRepeat
Definition: grid.h:44
multi_arr< realnum, 2 > paramRange
Definition: grid.h:29
t_grid()
Definition: grid.h:74
long nintparm
Definition: grid.h:61
long totNumModels
Definition: grid.h:64
long numParamValues[LIMPAR]
Definition: grid.h:63
bool lgSaveXspec
Definition: grid.h:38
float realnum
Definition: cddefines.h:127
const int NUM_OUTPUT_TYPES
Definition: grid.h:22
const long LIMPAR
Definition: optimize.h:59
vector< realnum > paramValuesFromList[LIMPAR]
Definition: grid.h:35
multi_arr< realnum, 3 > Spectra
Definition: grid.h:26
bool lgInsideGrid
Definition: grid.h:43
bool lgLinearIncrements[LIMPAR]
Definition: grid.h:36
bool lgNegativeIncrements
Definition: grid.h:37
bool lgCrash
Definition: grid.h:54
multi_arr< realnum, 2 > paramData
Definition: grid.h:30
bool lgOutputTypeOn[NUM_OUTPUT_TYPES]
Definition: grid.h:69
unsigned int useCPU
Definition: grid.h:49
bool lgCrashEval
Definition: grid.h:56
realnum paramIncrements[LIMPAR]
Definition: grid.h:34
long nCycle
Definition: grid.h:67
void gridXspec(realnum *, long)
long seqNum
Definition: grid.h:72
t_grid grid
Definition: grid.cpp:5
realnum paramLimits[LIMPAR][2]
Definition: grid.h:33
long int nGridCommands
Definition: grid.h:59
multi_arr< realnum, 2 > interpParameters
Definition: grid.h:31
vector< long > paramMethods
Definition: grid.h:28
bool lgParallel
Definition: grid.h:46
long naddparm
Definition: grid.h:62