cloudy  trunk
 All Data Structures 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-2022 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 bool grid_do(void);
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  char **paramNames;
28  long *paramMethods;
32 
35  vector<realnum> paramValuesFromList[LIMPAR];
39 
41  bool lgGrid;
42  bool lgGridDone;
47  bool lgParallel;
50  unsigned int useCPU;
54 
56  long int nGridCommands;
57 
58  long nintparm;
59  long naddparm;
62 
64  long nCycle;
65 
67 
68  FILE* pnunit;
69  long seqNum;
70 
72  {
73  lgGridDone = false;
74  lgInsideGrid = false;
75  lgStrictRepeat = false;
76  lgParseOnly = false;
77  seqNum = 0;
78  }
79 };
80 extern t_grid grid;
81 
82 #endif /* GRID_H_ */
void GridRetrieveXSPECData(int option)
Definition: grid_xspec.cpp:173
FILE * pnunit
Definition: grid.h:68
bool lgParseOnly
Definition: grid.h:44
realnum ** paramData
Definition: grid.h:30
bool lgGrid
Definition: grid.h:41
bool lgGridDone
Definition: grid.h:42
bool lgKeepMainOutputSeparate
Definition: grid.h:53
Definition: grid.h:24
long * paramMethods
Definition: grid.h:28
bool lgStrictRepeat
Definition: grid.h:45
t_grid()
Definition: grid.h:71
realnum ** interpParameters
Definition: grid.h:31
long nintparm
Definition: grid.h:58
long totNumModels
Definition: grid.h:61
long numParamValues[LIMPAR]
Definition: grid.h:60
bool lgSaveXspec
Definition: grid.h:38
float realnum
Definition: cddefines.h:124
const int NUM_OUTPUT_TYPES
Definition: grid.h:22
const long LIMPAR
Definition: optimize.h:61
vector< realnum > paramValuesFromList[LIMPAR]
Definition: grid.h:35
multi_arr< realnum, 3 > Spectra
Definition: grid.h:26
t_grid grid
Definition: grid.cpp:5
bool lgInsideGrid
Definition: grid.h:43
bool grid_do(void)
Definition: grid_do.cpp:19
bool lgLinearIncrements[LIMPAR]
Definition: grid.h:36
bool lgNegativeIncrements
Definition: grid.h:37
bool lgOutputTypeOn[NUM_OUTPUT_TYPES]
Definition: grid.h:66
unsigned int useCPU
Definition: grid.h:50
realnum paramIncrements[LIMPAR]
Definition: grid.h:34
long nCycle
Definition: grid.h:64
void gridXspec(realnum *, long)
long seqNum
Definition: grid.h:69
realnum paramLimits[LIMPAR][2]
Definition: grid.h:33
long int nGridCommands
Definition: grid.h:56
realnum ** paramRange
Definition: grid.h:29
char ** paramNames
Definition: grid.h:27
bool lgParallel
Definition: grid.h:47
long naddparm
Definition: grid.h:59