cloudy
trunk
|
#include "cddefines.h"
#include "taulines.h"
#include "monitor_results.h"
#include "called.h"
#include "cddrive.h"
#include "grid.h"
#include "input.h"
#include "parse.h"
#include "save.h"
#include "init.h"
#include "trace.h"
Go to the source code of this file.
Functions | |
void | cdInit (void) |
void | cdPrepareExit (exit_type exit_status) |
Variables | |
FILE * | ioMAP = NULL |
const double | ZeroNum = 0. |
long | nWindLine = NWINDDIM |
bool | lgcdInitCalled =false |
bool | lgHydroMalloc = false |
bool | lgRfieldMalloced =false |
bool | lgOpacMalloced =false |
void cdInit | ( | ) |
cdInit This routine must be called before any of the others - it reinitializes many variables, and must be called before any of the other routines. In a large grid of calculations it must be repeatedly called before the start of the new calculation and after all results have been obtained from the previous model
Definition at line 46 of file cdinit.cpp.
References called, cdSetExecTime(), t_input::chCardSav, t_input::chCardStrip, cpu, DEBUG_ENTRY, fprintf(), grid, t_cpu::i(), input, ioQQQ, lgBigBotch, t_input::lgBracketFound, lgcdInitCalled, t_input::lgDeprecatedComment, t_grid::lgGrid, t_input::lgInitPresent, lgMonitorsOK, t_cpu_i::lgMPI_talk(), t_optimize::lgNoVary, t_optimize::lgOptimr, t_grid::lgOutputTypeOn, lgPrtSciNot, t_called::lgTalk, t_called::lgTalkForcedOff, t_called::lgTalkIsOK, t_input::lgUnderscoreFound, t_optimize::lgVaryOn, t_grid::nGridCommands, NKRD, t_input::nRead, t_input::nSave, NUM_OUTPUT_TYPES, optimize, TotalInsanity(), and zero().
Referenced by cdMain().
void cdPrepareExit | ( | exit_type | ) |
prepare termination of the code, but do not terminate yet
Definition at line 134 of file cdinit.cpp.
References cdInput(), cdOutput(), CloseSaveFiles(), cpu, fprintf(), grid, t_cpu::i(), ioQQQ, t_save::ipSaveGrid, t_grid::lgGrid, t_cpu_i::lgMPISingleRankMode(), t_trace::lgTrace, t_grid::pnunit, save, SaveGrid(), and trace.
Referenced by cdMain().
FILE* ioMAP = NULL |
Definition at line 9 of file cdinit.cpp.
Referenced by CloseSaveFiles(), iter_end_check(), ParseMap(), and SaveFilesInit().
bool lgcdInitCalled =false |
this is the value that will be set true when cdInit is called. Other routines will check that this is true when they are called, to verify that cdInit was called first. Definition is in cdInit.cpp
Definition at line 27 of file cdinit.cpp.
Referenced by cdDrive(), cdGetLineList(), cdInit(), and cdRead().
bool lgHydroMalloc = false |
this will be set true once space is allocated for the HydroLines array. from then on any HYDROGENIC LEVELS command will be ignored, this is set to false in cddefines.c
Definition at line 32 of file cdinit.cpp.
Referenced by iso_create(), and ParseDatabaseISO().
bool lgOpacMalloced =false |
set true when malloced, init to false
Definition at line 40 of file cdinit.cpp.
Referenced by OpacityCreateAll(), and tauff().
bool lgRfieldMalloced =false |
set true when malloced, init to false
Definition at line 39 of file cdinit.cpp.
Referenced by rfield_opac_malloc(), rfield_opac_zero(), and tfidle().
long nWindLine = NWINDDIM |
this is set to 0 with no atom_level2 command, normally equal to NWINDDIM, definition is in cddefines.c
Definition at line 19 of file cdinit.cpp.
Referenced by atmdat_readin(), ContCreatePointers(), CoolDima(), CoolSum(), FindNeg(), FndLineHt(), lines(), lines_setup(), ParseDont(), PresTotCurrent(), PrtColumns(), PrtComment(), PrtLinePres(), prtmet(), read_level2_lines(), RT_diffuse(), RT_line_all(), RT_line_driving(), RT_OTS(), RT_tau_inc(), RT_tau_init(), RT_tau_reset(), SaveLineData(), SaveLineStuff(), and state_get_put().
const double ZeroNum = 0. |
this is the number zero, used to trick clever compilers when dividing by it to crash program there is a routine called zero - this name cannot overlap definition is in cddefines.cpp
Definition at line 13 of file cdinit.cpp.
Referenced by ParseCrashDo(), and TotalInsanityAsStub().