cdinit.cpp File Reference

#include "cddefines.h"
#include "cddrive.h"
#include "assertresults.h"
#include "called.h"
#include "version.h"
#include "input.h"
#include "parse.h"
#include "atmdat.h"
#include "zero.h"
#include "date.h"
#include "optimize.h"
#include "grid.h"
#include "path.h"
#include <stdio.h>

Include dependency graph for cdinit.cpp:

Go to the source code of this file.

Functions

void cdMPI (void)
void cdInit (void)
NORETURN void cdEXIT (int iexit)

Variables

static char chMonth [12][4] = {"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec" }
static char chMonthInt [12][3] = {"01","02","03","04","05","06","07","08","09","10","11","12" }
static bool lgMPI


Function Documentation

NORETURN void cdEXIT ( int   ) 

the Cloudy exit handler

Definition at line 314 of file cdinit.cpp.

References ClosePunchFiles(), ioQQQ, and lgMPI.

Referenced by abund_starburst(), AbundancesSet(), AbundancesTable(), AGN_Hemis(), AnuUnit(), atmdat_dielrec_fe(), atmdat_HS_caseB(), atmdat_readin(), atom_level3(), atom_levelN(), atom_pop5(), AtomSeqBeryllium(), aver(), Badnell_rec_init(), BadOpen(), BadRead(), bessel_k0(), bessel_k0_scaled(), bessel_k1(), bessel_k1_scaled(), bessel_y0(), bessel_y1(), bessel_yn(), bhG(), bhG_mx(), C6cs123(), Ca20cs123(), cdClock(), cdDrive(), cdExecTime(), cdGetLineList(), cdInit(), cdRead(), cdSPEC(), cdSPEC2(), cdVersion(), ChargTranPun(), ChckFill(), CheckVal(), chi2_func(), ChkUnits(), cnewton(), CO_Colden(), CO_PopsEmisCool(), CO_solve(), CO_zero(), conorm(), ContBandsCreate(), ContCreateMesh(), ContCreatePointers(), ContSetIntensity(), ConvEdenIoniz(), ConvFail(), ConvTempEdenIoniz(), CoolEvaluate(), coolpr(), CoStarInterpolate(), dense_fabden(), dense_tabden(), dgaunt(), Drive_cdLine(), DrvCaseBHS(), DrvHyas(), DynaEndIter(), eden_sum(), ee1(), ellpk(), endFindLevLine(), escmase(), expn(), factorial(), Fe11Lev5(), Fe13Lev5(), Fe26cs123(), Fe3Lev14(), Fe4Lev12(), Fe7Lev8(), FeII_Colden(), FeIICollRatesBoltzmann(), FeIIContCreate(), FeIICreate(), FeIILevelPops(), FeIIPunchLines(), FeIIPunData(), ffun1(), fill(), FillGFF(), find_arr(), FindIndex(), fsff(), fudge(), gauss_legendre(), GetFracPop(), GetLineRec(), GetModel(), GetOptColDen(), GetOptLineInt(), GetOptTemp(), GetPotValues(), GetQuote(), GetStandardHeLines(), GrainCharge(), GrainMakeDiffuse(), GrainsInit(), grid_do(), gridXspec(), H1cs123(), H2_Colden(), H2_Cooling(), H2_Create(), H2_Level_low_matrix(), H2_ParsePunch(), H2_Punch_line_data(), H2_Read_hminus_distribution(), H2_ReadCollRates(), H2_ReadDissprob(), H2_ReadEnergies(), H2_ReadTransprob(), H_Einstein_A_lin(), H_Einstein_A_log10(), H_photo_cs_lin(), H_photo_cs_log10(), HCSAR_interp(), He2cs123(), he_1trans(), HeatPunch(), HeatSum(), HeCreate(), HeLikeLevel(), HelikeRecombSetup(), HelikeTransProbSetup(), HeRecom(), Hion_colldeexc_cs(), hmole_step(), t_ADfA::hpfit(), hri(), hri_log10(), hrii(), hrii_log(), hv(), Hydcs123(), t_hydrobranch::HydroBranchFunc(), HydroCollid(), HydroEinstA(), HydroLevel(), HydroLevelPop(), HydroRecCool(), HydroRecom(), HyperfineCreate(), hypho(), t_yield::init_yield(), InitEmissivities(), InitGrid(), InitIndexArrays(), InterpolateGff(), InterpolateGridCoStar(), InterpolateModel(), InterpolateRectGrid(), inv_ufunct(), ion_recom_calculate(), ion_solver(), IonCarbo(), ipoint(), iter_end_check(), IterStart(), lfactorial(), lgCheckAsserts(), lgConvPres(), lgOptimize_do(), ligbar(), LimitSh(), lines(), lines_setup(), MakeDeriv(), makelist(), makeplist(), map_do(), mie_auxiliary(), mie_cs(), mie_cs_size_distr(), mie_integrate(), mie_next_line(), mie_read_double(), mie_read_float(), mie_read_long(), mie_read_mix(), mie_read_opc(), mie_read_rfi(), mie_read_szd(), mie_repair(), mie_write_opc(), molcol(), MyAssert(), MyCalloc(), MyMalloc(), MyRealloc(), Ne10cs123(), NewGrainBin(), NoNumb(), oi_level_pops(), OpacityCreateAll(), OpacityCreateReilMan(), optimize_func(), optimize_phymir(), ParseAbsMag(), ParseAbundances(), ParseAge(), ParseAgn(), ParseAssertResults(), ParseAtomCO(), ParseAtomFeII(), ParseAtomH2(), ParseAtomHeLike(), ParseAtomHLike(), ParseBackgrd(), ParseBlackbody(), ParseCMB(), ParseCommands(), ParseCompile(), ParseConstant(), ParseCoronal(), ParseCosmicRays(), ParseCrashDo(), ParseDLaw(), ParseDont(), ParseDrive(), ParseDynaTime(), ParseDynaWind(), ParseElement(), ParseF_nu(), ParseFluc(), ParseGrain(), ParseHDEN(), ParseInit(), ParseInterp(), ParseIonPar(), ParseMagnet(), ParseMap(), ParseMetal(), ParseNorm(), ParseOptimize(), ParsePlot(), ParsePlotRangeContin(), ParsePlotRangeOption(), ParsePowerlawContinuum(), ParsePrint(), ParsePunch(), ParseRadius(), ParseRangeOption(), ParseRatio(), ParseSet(), ParseState(), ParseStop(), ParseTable(), ParseTLaw(), plot(), pltopc(), pltr(), pnegopc(), PntForLine(), PresTotCurrent(), prt_smooth_predictions(), PrtComment(), PrtContinuum(), PrtElem(), PrtFinal(), PrtLineSum(), ptrcer(), punch_average(), punch_colden(), punch_line(), Punch_Line_RT(), punch_opacity(), PunchDo(), punchFITS_SpectraData(), punchFITSfile(), PunchLineData(), PunchLineStuff(), PunResults1Line(), qintr(), t_ADfA::rad_rec(), radius_increment(), radius_next(), RauchInitializeSub(), rd_continue(), read_continuum_mesh(), read_hm05(), ReadTable(), RT_DestProb(), RT_line_one(), RT_line_static(), RT_recom_effic(), RT_tau_init(), SanityCheck(), SanityCheckBegin(), search_limit(), SetLimits(), size_distr(), solveions(), spline_cubic_set(), state_do(), state_get_put(), StuffComment(), t_ADfA::t_ADfA(), t_hydrobranch::t_hydrobranch(), TeBrent(), TempInterp(), tfidle(), TotalInsanity(), totlin(), uderiv(), ufunct(), UpdatePot1(), vary_input(), XERBLA(), and zero().

Here is the call graph for this function:

void cdInit ( void   ) 

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 54 of file cdinit.cpp.

References __COMP, __COMP_VER, __OS, called, cdDefines(), cdEXIT(), cdSetExecTime(), t_input::chCardSav, t_version::chCitation, t_version::chCitationLatex, t_version::chCitationShort, chDataPath, t_version::chDate, t_version::chInfo, chMonth, chMonthInt, t_version::chVersion, CITATION, CITATION_LATEX, CITATION_SHORT, DAY, DEBUG_EXIT, grid, input, INPUT_LINE_LENGTH, ioPrnErr, ioQQQ, ioStdin, lgAssertsOK, lgBigBotch, t_input::lgBracketFound, lgcdInitCalled, lgDataPathSet, t_grid::lgGrid, lgMPI, t_optimize::lgNoVary, t_optimize::lgOptimr, t_grid::lgOutputTypeOn, lgPrnErr, lgPrtSciNot, t_version::lgRelease, t_called::lgTalk, t_called::lgTalkForcedOff, t_called::lgTalkIsOK, t_input::lgUnderscoreFound, t_optimize::lgVaryOn, LIMPAR, MALLOC, MONTH, t_version::nBetaVer, NKRD, t_input::nRead, t_input::nSave, t_input::nSaveIni, NUM_OUTPUT_TYPES, t_grid::numParamValues, optimize, TotalInsanity(), version, YEAR, and zero().

Referenced by main().

Here is the call graph for this function:

void cdMPI ( void   ) 

cdMPI sets flag telling exit handler to call MPI_Finalize, This routine must be called after cdInit when MPI is used

Definition at line 47 of file cdinit.cpp.

References lgMPI.


Variable Documentation

char chMonth[12][4] = {"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec" } [static]

Definition at line 27 of file cdinit.cpp.

Referenced by cdInit().

char chMonthInt[12][3] = {"01","02","03","04","05","06","07","08","09","10","11","12" } [static]

Definition at line 28 of file cdinit.cpp.

Referenced by cdInit().

bool lgMPI [static]

Definition at line 43 of file cdinit.cpp.

Referenced by cdEXIT(), cdInit(), and cdMPI().


Generated for cloudy by doxygen 1.5.9