cloudy  trunk
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
cddefines.h File Reference
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <assert.h>
#include <string.h>
#include <float.h>
#include <limits.h>
#include <time.h>
#include <signal.h>
#include <string>
#include <sstream>
#include <vector>
#include <valarray>
#include <complex>
#include <map>
#include <memory>
#include <stdexcept>
#include "cpu.h"
#include "container_classes.h"
Include dependency graph for cddefines.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  Singleton< T >
class  cloudy_exit
class  bad_signal
class  bad_assert
class  bad_mpi
class  t_debug
class  debugtrace< lgTrace >
class  auto_vec< T >
struct  auto_vec< T >::auto_vec_ref< U >
struct  t_emission
struct  t_species
struct  t_CollRatesArray
struct  t_CollSplinesArray
struct  t_collision
struct  t_quantumState
struct  t_transition

Macros

#define EXTERN   extern
#define STATIC   static
#define float   PLEASE_USE_REALNUM_NOT_FLOAT
#define cdEXIT(FAIL)   throw cloudy_exit( __func__, __FILE__, __LINE__, FAIL )
#define puts(STR)   Using_puts_before_cdEXIT_is_no_longer_needed
#define DEBUG
#define PARALLEL_MODE   false
#define MALLOC(exp)   (MyMalloc(exp,__FILE__, __LINE__))
#define CALLOC   MyCalloc
#define REALLOC   MyRealloc
#define ASSERT(exp)
#define isnan   MyIsnan
#define DEBUG_ENTRY(funcname)   debugtrace<false> DEBUG_ENTRY( funcname )
#define MIN2   min
#define MIN3(a, b, c)   (min(min(a,b),c))
#define MIN4(a, b, c, d)   (min(min(a,b),min(c,d)))
#define MAX2   max
#define MAX3(a, b, c)   (max(max(a,b),c))
#define MAX4(a, b, c, d)   (max(max(a,b),max(c,d)))
#define POW2   pow2
#define POW3   pow3
#define POW4(X)   (pow2(X)*pow2(X))
#define HMRATE(a, b, c)   hmrate4(a,b,c,phycon.te)

Typedefs

typedef float realnum
typedef float sys_float
typedef struct t_transition transition
typedef struct t_quantumState quantumState
typedef struct t_emission emission
typedef struct t_collision collision
typedef struct t_species species
typedef struct t_CollRatesArray CollRateCoeffArray
typedef struct t_CollSplinesArray CollSplinesArray

Enumerations

enum  collider {
  ipELECTRON, ipPROTON, ipHE_PLUS, ipALPHA,
  ipNCOLLIDER
}
enum  split_mode { SPM_RELAX, SPM_KEEP_EMPTY, SPM_STRICT }

Functions

double fudge (long int ipnt)
void broken (void)
void fixit (void)
void CodeReview (void)
void TestCode (void)
void * MyMalloc (size_t size, const char *file, int line)
void * MyCalloc (size_t num, size_t size)
void * MyRealloc (void *p, size_t size)
void MyAssert (const char *file, int line)
NORETURN void cdExit (int iexit)
void ShowMe (void)
NORETURN void TotalInsanity (void)
NORETURN void BadRead (void)
NORETURN void BadOpen (void)
NORETURN void NoNumb (char *chCard)
int dbg_printf (int debug, const char *fmt,...)
int dprintf (FILE *fp, const char *format,...)
char * read_whole_line (char *chLine, int nChar, FILE *ioIN)
NORETURN void OUT_OF_RANGE (const char *str)
char TorF (bool l)
bool is_odd (int j)
bool is_odd (long j)
long nint (double x)
long min (int a, long b)
long min (long a, int b)
double min (sys_float a, double b)
double min (double a, sys_float b)
long max (int a, long b)
long max (long a, int b)
double max (sys_float a, double b)
double max (double a, sys_float b)
template<class T >
sign (T x, T y)
template<class T >
int sign3 (T x)
bool fp_equal (sys_float x, sys_float y, int n=3)
bool fp_equal (double x, double y, int n=3)
bool fp_equal_tol (sys_float x, sys_float y, sys_float tol)
bool fp_equal_tol (double x, double y, double tol)
template<class T >
pow2 (T a)
template<class T >
pow3 (T a)
sys_float SDIV (sys_float x)
double SDIV (double x)
sys_float safe_div (sys_float x, sys_float y)
double safe_div (double x, double y)
double hmrate4 (double a, double b, double c, double te)
template<class T >
void invalidate_array (T *p, size_t size)
void invalidate_array (double *p, size_t size)
void invalidate_array (sys_float *p, size_t size)
 INSTANTIATE_MULTI_ARR (quantumState, MEM_LAYOUT_VAL, lgBOUNDSCHECKVAL)
 INSTANTIATE_MULTI_ARR (transition, MEM_LAYOUT_VAL, lgBOUNDSCHECKVAL)
void Split (const string &str, const string &sep, vector< string > &lst, split_mode mode)
bool FindAndReplace (string &str, const string &substr, const string &newstr)
bool FindAndErase (string &str, const string &substr)
double csphot (long int inu, long int ithr, long int iofset)
double RandGauss (double xMean, double s)
double MyGaussRand (double PctUncertainty)
double AnuUnit (realnum energy)
void cap4 (char *chCAP, char *chLab)
void uncaps (char *chCard)
void caps (char *chCard)
double e2 (double t)
double ee1 (double x)
double ee1_safe (double x)
double FFmtRead (const char *chCard, long int *ipnt, long int last, bool *lgEOL)
long nMatch (const char *chKey, const char *chCard)
long int GetElem (char *chCARD_CAPS)
int GetQuote (char *chLabel, char *chCard, bool lgABORT)
double powi (double, long int)
long int ipow (long, long)
void PrintE82 (FILE *, double)
void PrintE71 (FILE *, double)
void PrintE93 (FILE *, double)
char * PrintEfmt (const char *fmt, double val)
sys_float sexp (sys_float x)
double sexp (double x)
double dsexp (double x)
double plankf (long int ip)
double qg32 (double, double, double(*)(double))
void spsort (realnum x[], long int n, long int iperm[], int kflag, int *ier)
double vfun (double damp, double x)

Variables

EXTERN FILE * ioQQQ
EXTERN FILE * ioStdin
FILE * ioMAP
EXTERN FILE * ioPrnErr
EXTERN bool lgAbort
EXTERN bool lgTestCodeCalled
EXTERN bool lgTestCodeEnabled
EXTERN bool lgPrnErr
EXTERN long int nzone
EXTERN double fnzone
EXTERN long int iteration
EXTERN long int nSimThisCoreload
const double ZeroNum
const int FILENAME_PATH_LENGTH = 200
const int FILENAME_PATH_LENGTH_2 = FILENAME_PATH_LENGTH*2
const int INPUT_LINE_LENGTH = 200
const int LIMELM = 30
const int NISO = 2
const int NHYDRO_MAX_LEVEL = 401
const int N_H_MOLEC = 8
const double DEPTH_OFFSET = 1.e-30
const int ipRecEsc = 2
const int ipRecNetEsc = 1
const int ipRecRad = 0
const int ipPRD = 1
const int ipCRD = -1
const int ipCRDW = 2
const int ipLY_A = -2
const int ipDEST_K2 = 1
const int ipDEST_INCOM = 2
const int ipDEST_SIMPL = 3
const int ipH1s = 0
const int ipH2s = 1
const int ipH2p = 2
const int ipH3s = 3
const int ipH3p = 4
const int ipH3d = 5
const int ipH4s = 6
const int ipH4p = 7
const int ipH4d = 8
const int ipH4f = 9
const int ipH5s = 10
const int ipH5p = 11
const int ipH5d = 12
const int ipH5f = 13
const int ipH5g = 14
const int ipH6s = 15
const int ipHe1s1S = 0
const int ipHe2s3S = 1
const int ipHe2s1S = 2
const int ipHe2p3P0 = 3
const int ipHe2p3P1 = 4
const int ipHe2p3P2 = 5
const int ipHe2p1P = 6
const int ipHe3s3S = 7
const int ipHe3s1S = 8
const int ipHe3p3P = 9
const int ipHe3d3D = 10
const int ipHe3d1D = 11
const int ipHe3p1P = 12
const int ipHe4s3S = 13
const int ipHe4s1S = 14
const int ipHe4p3P = 15
const int ipHe4d3D = 16
const int ipHe4d1D = 17
const int ipHe4f3F = 18
const int ipHe4f1F = 19
const int ipHe4p1P = 20
const int ipH_LIKE = 0
const int ipHE_LIKE = 1
const int ipLI_LIKE = 2
const int ipBE_LIKE = 3
const int ipB_LIKE = 4
const int ipC_LIKE = 5
const int ipN_LIKE = 6
const int ipO_LIKE = 7
const int ipF_LIKE = 8
const int ipHYDROGEN = 0
const int ipHELIUM = 1
const int ipLITHIUM = 2
const int ipBERYLLIUM = 3
const int ipBORON = 4
const int ipCARBON = 5
const int ipNITROGEN = 6
const int ipOXYGEN = 7
const int ipFLUORINE = 8
const int ipNEON = 9
const int ipSODIUM = 10
const int ipMAGNESIUM = 11
const int ipALUMINIUM = 12
const int ipSILICON = 13
const int ipPHOSPHORUS = 14
const int ipSULPHUR = 15
const int ipCHLORINE = 16
const int ipARGON = 17
const int ipPOTASSIUM = 18
const int ipCALCIUM = 19
const int ipSCANDIUM = 20
const int ipTITANIUM = 21
const int ipVANADIUM = 22
const int ipCHROMIUM = 23
const int ipMANGANESE = 24
const int ipIRON = 25
const int ipCOBALT = 26
const int ipNICKEL = 27
const int ipCOPPER = 28
const int ipZINC = 29
const double SEXP_LIMIT = 84.

Macro Definition Documentation

#define ASSERT (   exp)
Value:
do { \
if (!(exp)) \
{ \
if( cpu.lgAssertAbort() ) \
abort(); \
else \
throw bad_assert(__FILE__,__LINE__); \
} \
} while( 0 )

a cloudy version of the assert macro that can be recovered from

Definition at line 606 of file cddefines.h.

Referenced by abscf(), addComment(), addKeyword_num(), addKeyword_txt(), AddLine2Stack(), AddState2Stack(), AgeCheck(), multi_arr< realnum, 3 >::alloc(), flex_arr< double >::alloc(), AssertFeIIDep(), atmdat_2phot_rate(), atmdat_2phot_shapefunction(), atmdat_Chianti_readin(), atmdat_HS_caseB(), atmdat_lamda_readin(), atmdat_readin(), atmol_popsolve(), atom_level2(), atom_level3(), atom_levelN(), atom_pop2(), atom_pop3(), AtomCSInterp(), t_fe2ovr_la::atoms_fe2ovr(), AtomSeqBeryllium(), AtomSeqBoron(), Badnell_DR_rate_eval(), Badnell_rec_init(), Badnell_RR_rate_eval(), bh(), bh_log(), bhG(), bhg(), bhg_log(), bhG_mx(), bhGm(), bhGm_mx(), bhGp(), bhGp_mx(), bhintegrand(), bhintegrand_log(), cdDLine(), cdEmis_ip(), cdH2_Line(), cdLine(), cdLine_ip(), cdSPEC2(), ChargTranSumHeat(), ChckFill(), Chianti_Upsilon(), chIonLbl(), chLineLbl(), CO_create_react(), CO_drive(), CO_findrk(), CO_Init(), CO_solve(), CO_update_species_cache(), collision_strength_VF01(), ColStrGBar(), conorm(), cont_gaunt_calc(), ContCreatePointers(), ContRate(), ContSetIntensity(), ConvBase(), ConvEdenIoniz(), ConvFail(), ConvInitSolution(), ConvRate2CS(), CoolAdd(), CoolCarb(), CoolDima(), CoolEvaluate(), CoolNitr(), coolpr(), cross_section(), CS_l_mixing_PS64(), CS_l_mixing_S62(), CS_l_mixing_VF01(), CS_PercivalRichards78(), CS_VS80(), da(), DebyeDeriv(), dftori(), DoBeckert_etal(), DoFSMixing(), DoSatelliteLines(), DoSutherland(), DumpLine(), DynaEndIter(), DynaIonize(), DynaNewStep(), DynaPresChngFactor(), DynaPrtZone(), DynaSaveLast(), DynaStartZone(), eden_sum(), ee1_safe(), EH2_eval(), emergent_line(), emit_frac(), esc_CRDcore(), esc_CRDwing(), esc_PRD(), esc_PRD_1side(), escmase(), F21(), F21_mx(), F21i(), F21i_log(), Fe11Lev5(), Fe13Lev5(), Fe2_cooling(), Fe3Lev14(), Fe4Lev12(), Fe7Lev8(), FeII_OTS(), FeIICollRatesBoltzmann(), FeIICreate(), FeIIPun1Depart(), FeIIPunPop(), FeIISumBand(), FFmtRead(), ffun(), ffun1(), fiddle(), fill(), multi_geom< d, MEM_LAYOUT_VAL, lgBOUNDSCHECKVAL >::finalize(), FindIndex(), fndstr(), ForbiddenAuls(), fp_equal(), fp_equal_tol(), FreeFreeGaunt(), fsff(), GammaBn(), GammaBnPL(), GammaK(), GetFracPop(), GetGF(), GetModel(), GetProbDistr_LowLimit(), getrf_wrapper(), getrs_wrapper(), GetStandardHeLines(), gett2(), gett2o3(), GrainCharge(), GrainChargeTemp(), GrainDrift(), GrainElecEmis1(), GrainElecRecomb1(), GrainMakeDiffuse(), GrainScreen(), GrainsInit(), GrainTemperature(), GrainUpdateRadius1(), GrainUpdateRadius2(), GridCompile(), GridGatherAfterCloudy(), GridGatherInCloudy(), gridXspec(), GrnStdDpth(), GrnVryDpth(), H2_Accel(), H2_CollidRateEvalAll(), H2_CollidRateRead(), H2_ContPoint(), H2_Cooling(), H2_Create(), H2_Level_low_matrix(), H2_LevelPops(), H2_PunchDo(), H2_RadPress(), H2_Read_hminus_distribution(), H2_ReadDissprob(), H2_ReadEnergies(), H2_ReadTransprob(), H2_RT_tau_inc(), H2_RTMake(), H2_X_coll_rate_evaluate(), t_ADfA::h_coll_str(), H_cross_section(), H_photo_cs_lin(), H_photo_cs_log10(), t_ADfA::H_rad_rec(), HCTIon(), HCTRecom(), he_1trans(), He_cross_section(), HeatPunch(), HeCollidSetup(), HeCSInterp(), helike_energy(), helike_quantum_defect(), helike_transprob(), highen(), Hion_coll_ioniz_ratecoef(), hmole(), hmole_step(), t_ADfA::hpfit(), t_ADfA::hpfit_rel(), hri(), hri_log10(), hrii(), hrii_log(), hv(), Hydcs123(), hydro_transprob(), hydro_vs_coll_str(), hydro_vs_deexcit(), hydro_vs_ioniz(), HydroCSInterp(), HydroLevel(), HydroOscilStr(), HydroRecCool(), HydroRenorm(), HydroT2Low(), HyperfineCreate(), HyperfineCS(), Hypergeometric2F1(), init_eps(), t_yield::init_yield(), InitEmissivities(), InitGrid(), InitGridCoStar(), InitIndexArrays(), InitSimPostparse(), InterpolateGff(), InterpolateGridCoStar(), InterpolateModel(), InterpolateModelCoStar(), InterpolateRectGrid(), inv_ufunct(), multi_arr< realnum, 3 >::invalidate(), flex_arr< double >::invalidate(), ion_collis(), ion_photo(), ion_recomb(), ion_recombAGN(), ion_solver(), ion_trim(), IonCSInterp(), IonIron(), ipFindLevLine(), ipFineCont(), ipLineEnergy(), ipoint(), ipShells(), iso_allocate(), iso_assign_quantum_numbers(), iso_cascade(), iso_collapsed_Aul_update(), iso_collapsed_bnl_set(), iso_collapsed_lifetimes_update(), iso_collide(), iso_collisional_ionization(), iso_continuum_lower(), iso_cool(), iso_create(), iso_dielec_recomb_rate(), iso_error_generation(), iso_ionize_recombine(), iso_level(), iso_photo(), iso_prt_pops(), iso_put_error(), iso_radiative_recomb(), iso_radiative_recomb_effective(), iso_recomb_setup(), iso_RRCoef_Te(), iso_solve(), iso_state_lifetime(), iso_suprathermal(), iso_update_num_levels(), iter_end_check(), IterEnd(), IterRestart(), IterStart(), L_mix_integrand_VF01(), LeidenCollRate(), lgCheckAsserts(), lgCompileAtmosphere(), lgCompileAtmosphereCoStar(), lgConvPres(), lgIonizConverg(), lgMolecAver(), lgValidModel(), linadd(), lindst(), LineConvRate2CS(), lines_general(), lines_helium(), lines_hydro(), lines_setup(), linint(), LinterpTable(), LinterpVector(), log10_fsff(), log10_prodxx(), log_integral(), MeanIonRadius(), MeanIonVolume(), mie_calc_ial(), mie_cs(), mie_cs_size_distr(), mie_find_slope(), mie_read_mix(), mie_read_opc(), mie_read_rfi(), mie_write_form(), mie_write_opc(), mole_H2_form(), mole_H2_LTE(), MyCalloc(), MyGaussRand(), MyMalloc(), MyRealloc(), Nemala_Start(), newelement(), NewGrainBin(), newreaction(), newspecies(), nMatch(), OccupationNumberLine(), Opacity_iso_photo_cs(), OpacityAdd1Element(), OpacityAdd1Subshell(), OpacityAdd1SubshellInduc(), OpacityCreate1Element(), OpacityCreateAll(), OpacityCreatePowerLaw(), OpacityCreateReilMan(), OpacityValenceRescale(), optimize_func(), outline(), ParseAssertResults(), ParseAtomISO(), ParseCommands(), ParseCosmicRays(), ParseCrashDo(), ParseElement(), ParseFluc(), ParseGrid(), ParsePunch(), ParseTable(), PE_init(), t_ADfA::phfit(), PlanckIntegral(), PntForLine(), PressureChange(), PressureRadiationLine(), PresTotCurrent(), PrtAllTau(), PrtComment(), PrtFinal(), PrtLinePres(), PrtMeanIon(), PrtZone(), punch_average(), punch_line(), punch_opacity(), PunchDo(), PunchFilesInit(), punchFITS_EnergyHeader(), punchFITS_GenericHeader(), punchFITS_ParamData(), punchFITS_ParamHeader(), punchFITS_PrimaryHeader(), punchFITS_SpectraData(), punchFITS_SpectraHeader(), punchFITSfile(), PunchNewContinuum(), PunchSpecial(), punResults(), PutCS(), PutHetCol(), PutLine(), qheat(), qheat_init(), radius_first(), radius_increment(), radius_next(), read_hm05(), ReadAugerData(), flex_arr< double >::realloc(), RebinAtmosphere(), RebinFind(), RebinQHeatResults(), RebinSingleCell(), RefIndex(), multi_geom< d, MEM_LAYOUT_VAL, lgBOUNDSCHECKVAL >::reserve(), flex_arr< double >::reserve(), resetBltin(), ReturnGrainBins(), rfield_opac_malloc(), RT_continuum_shield_fcn(), RT_DestHummer(), RT_DestProb(), RT_diffuse(), RT_line_one(), RT_line_static(), RT_LineWidth(), RT_OTS(), RT_OTS_AddCont(), RT_OTS_AddLine(), RT_OTS_PrtRate(), RT_OTS_Update(), RT_recom_effic(), RT_tau_init(), RT_tau_reset(), RTesc_lya(), S62_Therm_ave_coll_str(), SanityCheckBegin(), ScanProbDistr(), scqdri(), search_limit(), SetLimits(), SetLimitsSub(), SetNChrgStates(), size_distr(), Spec_cont(), spline_cubic_set(), sprt_wl(), StarburstInitialize(), StarkCollTransProb_VF01(), t_ADfA::t_ADfA(), t_fe2ovr_la::t_fe2ovr_la(), tbl_fun(), TempInterp(), TempInterp2(), tfidle(), TryDoubleStep(), uderiv(), ufunct(), UpdatePot(), UpdatePot1(), WavlenErrorGet(), writeCloudyDetails(), y0b(), y0b01(), y0psa(), y1psa(), y2pa(), y2s(), Yfunc(), multi_arr< realnum, 3 >::zero(), flex_arr< double >::zero(), and ZoneStart().

#define CALLOC   MyCalloc

now special version of calloc - it dies if cannot allocate space.

Definition at line 534 of file cddefines.h.

Referenced by CoolPunch(), F21(), F21_mx(), H_photo_cs_log10(), HeatPunch(), InitGridCoStar(), lgCompileAtmosphere(), lgCompileAtmosphereCoStar(), and ParseTable().

#define cdEXIT (   FAIL)    throw cloudy_exit( __func__, __FILE__, __LINE__, FAIL )

Definition at line 451 of file cddefines.h.

Referenced by abund_starburst(), AbundancesSet(), AbundancesTable(), AGN_Hemis(), AnuUnit(), atmdat_Chianti_readin(), atmdat_dielrec_fe(), atmdat_HS_caseB(), atmdat_lamda_readin(), atmdat_readin(), atmol_popsolve(), 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(), cdRead(), cdSPEC(), cdSPEC2(), ChargTranPun(), ChckFill(), CheckVal(), chi2_func(), ChkUnits(), cnewton(), CO_Colden(), CO_PopsEmisCool(), CO_solve(), CO_zero(), conorm(), ContBandsCreate(), ContCreateMesh(), ContCreatePointers(), ContSetIntensity(), ConvEdenIoniz(), ConvFail(), ConvTempEdenIoniz(), CoolEvaluate(), CoolNitr(), coolpr(), CoStarInterpolate(), dense_fabden(), dense_tabden(), dgaunt(), do_dump_state(), do_restore_state(), Drive_cdLine(), DrvCaseBHS(), DrvHyas(), DynaEndIter(), DynaPresChngFactor(), 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(), GetNextLine(), GetOptColDen(), GetOptLineInt(), GetOptTemp(), GetPotValues(), GetQuote(), GetStandardHeLines(), GrainCharge(), GrainMakeDiffuse(), GrainsInit(), grid_do(), gridXspec(), H2_Colden(), H2_CollidRateEvalAll(), H2_CollidRateRead(), H2_Cooling(), H2_Create(), H2_He_coll_init(), H2_Level_low_matrix(), H2_ParsePunch(), H2_Punch_line_data(), H2_Read_hminus_distribution(), 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(), HeatPunch(), HeCollidSetup(), HelikeTransProbSetup(), hmole_step(), t_ADfA::hpfit(), hri(), hri_log10(), hrii(), hrii_log(), hv(), Hydcs123(), HydroEinstA(), HydroRecCool(), HyperfineCreate(), hypho(), t_yield::init_yield(), InitEmissivities(), InitGrid(), InitIndexArrays(), InterpolateGff(), InterpolateGridCoStar(), InterpolateModel(), InterpolateRectGrid(), inv_ufunct(), ion_recom_calculate(), ion_solver(), IonCarbo(), ipoint(), iso_level(), iso_radiative_recomb(), iso_recomb_setup(), iso_update_num_levels(), iter_end_check(), IterStart(), lfactorial(), lgCheckAsserts(), lgConvPres(), lgOptimize_do(), ligbar(), LimitSh(), lines(), lines_setup(), main(), MakeDeriv(), makelist(), makeplist(), map_do(), mie_auxiliary(), mie_cs(), mie_cs_size_distr(), mie_next_line(), mie_read_double(), mie_read_long(), mie_read_mix(), mie_read_opc(), mie_read_realnum(), mie_read_rfi(), mie_read_szd(), mie_repair(), mie_write_opc(), molcol(), MyAssert(), MyCalloc(), MyMalloc(), MyRealloc(), Ne10cs123(), Nemala_Start(), NewGrainBin(), newreact(), newspecies(), NoNumb(), oi_level_pops(), OpacityAddTotal(), OpacityCreateAll(), OpacityCreateReilMan(), open_data(), optimize_func(), optimize_phymir(), ParseAbsMag(), ParseAbundances(), ParseAge(), ParseAgn(), ParseAssertResults(), ParseAtomCO(), ParseAtomFeII(), ParseAtomH2(), ParseAtomISO(), ParseBackgrd(), ParseBlackbody(), ParseCMB(), ParseCommands(), ParseCompile(), ParseConstant(), ParseCoronal(), ParseCosmicRays(), ParseCrashDo(), ParseDLaw(), ParseDont(), ParseDrive(), ParseDynaTime(), ParseDynaWind(), ParseElement(), ParseExtinguish(), ParseF_nu(), ParseFluc(), ParseGlobule(), ParseGrain(), ParseGrid(), 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(), 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(), ReadAugerData(), ReadTable(), RT_DestProb(), RT_line_one(), RT_line_static(), RT_OTS_Update(), RT_recom_effic(), RT_tau_init(), SanityCheck(), SanityCheckBegin(), search_limit(), SetLimits(), size_distr(), solveions(), spline_cubic_set(), Split(), state_do(), StuffComment(), t_ADfA::t_ADfA(), t_fe2ovr_la::t_fe2ovr_la(), TeBrent(), TempInterp(), tfidle(), TotalInsanity(), totlin(), uderiv(), ufunct(), vary_input(), XERBLA(), y0b01(), Yfunc(), and zero().

#define DEBUG

to avoid errors introduced by C's infamous double-negative logic, this uses NDEBUG (the ANSI std macro used to tell assert that we are not debugging) to define DEBUG

Definition at line 502 of file cddefines.h.

#define DEBUG_ENTRY (   funcname)    debugtrace<false> DEBUG_ENTRY( funcname )

Definition at line 698 of file cddefines.h.

Referenced by abscf(), abund_starburst(), AbundancesPrt(), AbundancesSet(), AbundancesTable(), AbundancesZero(), addComment(), addentry(), addKeyword_num(), addKeyword_txt(), AddLine2Stack(), AddState2Stack(), advection_set_detault(), AgeCheck(), AGN_He1_CS(), AGN_Hemis(), AngerJ(), anomal(), AnuUnit(), AssertFeIIDep(), AtlasCompile(), AtlasInterpolate(), atmdat_2phot_rate(), atmdat_2phot_shapefunction(), atmdat_3body(), atmdat_Chianti_readin(), atmdat_dielrec_fe(), atmdat_DielSupres(), atmdat_HS_caseB(), atmdat_lamda_readin(), atmdat_outer_shell(), atmdat_readin(), atmol_popsolve(), AtmospheresAvail(), atom_level2(), atom_level3(), atom_levelN(), atom_oi_calc(), atom_pop2(), atom_pop3(), atom_pop5(), AtomCSInterp(), t_fe2ovr_la::atoms_fe2ovr(), AtomSeqBeryllium(), AtomSeqBoron(), aver(), Badnell_DR_rate_eval(), Badnell_rec_init(), Badnell_RR_rate_eval(), BadOpen(), badprt(), BadRead(), BadStart(), bangin(), bessel_i0(), bessel_i0_scaled(), bessel_i1(), bessel_i1_scaled(), bessel_j0(), bessel_j1(), bessel_jn(), bessel_k0(), bessel_k0_scaled(), bessel_k1(), bessel_k1_scaled(), bessel_y0(), bessel_y1(), bessel_yn(), bh(), bh_log(), bhG(), bhg(), bhg_log(), bhG_mx(), bhGm(), bhGm_mx(), bhGp(), bhGp_mx(), bhintegrand(), bhintegrand_log(), bigk(), blkdata1(), broken(), Bruggeman(), C6cs123(), Ca20cs123(), calcc(), cap4(), caps(), caunin(), cdasum(), cdaxpy(), cdB21cm(), cdCautions(), cdClock(), cdClosePunchFiles(), cdColm(), cdcopy(), cdDepth_depth(), cdDLine(), cdDrive(), cdEmis(), cdEmis_ip(), cdErrors(), cdExecTime(), cdgamma(), cdGetLineList(), cdH2_Line(), cdInit(), cdInp(), cdIonFrac(), cdLine(), cdLine_ip(), cdLineListPunch(), cdNoExec(), cdNotes(), cdNwcns(), cdOutp(), cdPressure_depth(), cdPressure_last(), cdPrtWL(), cdRead(), cdReasonGeo(), cdSPEC(), cdSPEC2(), cdSurprises(), cdTalk(), cdTemp(), cdTimescales(), cdWarnings(), ChargTranEval(), ChargTranPun(), ChargTranSumHeat(), ChckFill(), CheckVal(), ChemImportance(), chi2_func(), Chianti_Upsilon(), chIonLbl(), chkCaHeps(), ChkUnits(), chLineLbl(), ClosePunchFiles(), cmshft(), cnewton(), CO_Colden(), CO_create_react(), CO_dissoc_rate(), CO_drive(), CO_findrate(), CO_findrate_s(), CO_findrk(), CO_Init(), co_lnu_c_o_lnu(), CO_OTS(), CO_PopsEmisCool(), CO_punch_mol(), CO_sink_rate(), CO_solve(), CO_source_rate(), CO_step(), CO_update_rks(), CO_update_species_cache(), CO_zero(), CodeReview(), t_ADfA::coll_ion(), collision_strength_VF01(), CollisionJunk(), CollisionZero(), ColStrGBar(), con_pump_op(), cone2(), conorm(), conpmp(), conrec(), ContBandsCreate(), ContCreateMesh(), ContCreatePointers(), ContNegative(), ContRate(), ContSetIntensity(), ConvBase(), ConvEdenIoniz(), ConvFail(), ConvInitSolution(), ConvIoniz(), ConvIterCheck(), ConvPresTempEdenIoniz(), ConvRate2CS(), ConvTempEdenIoniz(), CoolAdd(), CoolAlum(), CoolArgo(), CoolCalc(), CoolCarb(), CoolChlo(), CoolChro(), CoolCoba(), CoolDima(), CoolEvaluate(), CoolFluo(), CoolHeatError(), CoolIron(), CoolMagn(), CoolMang(), CoolNeon(), CoolNick(), CoolNitr(), CoolOxyg(), CoolPhos(), CoolPota(), coolpr(), CoolPunch(), CoolScan(), CoolSili(), CoolSodi(), CoolSulf(), CoolSum(), CoolTita(), CoolVana(), CoolZero(), CoolZinc(), CoStarCompile(), CoStarInterpolate(), CoStarListModels(), CS_l_mixing_PS64(), CS_l_mixing_S62(), CS_l_mixing_VF01(), CS_PercivalRichards78(), CS_ThermAve_PR78(), csphot(), csscal(), d3_np_fs(), da(), database_prep(), database_readin(), dbg_printf(), DebyeDeriv(), dense_fabden(), dense_tabden(), dftori(), dgaunt(), DGEMM(), DGER(), DGETF2(), DGETRF(), DGETRS(), dist(), DLASWP(), dmpary(), do_dump_state(), do_restore_state(), DoFSMixing(), DoSatelliteLines(), dprintf(), Drive_cdLine(), DrvCaseBHS(), DrvContPump(), DrvEscP(), DrvHyas(), DSCAL(), dsexp(), DSWAP(), DTRSM(), DumpLine(), DynaCreateArrays(), DynaEndIter(), DynaEndZone(), DynaFlux(), DynaIonize(), DynaNewStep(), DynaPresChngFactor(), DynaPrtZone(), DynaPunch(), DynaPunchTimeDep(), DynaSaveLast(), DynaStartZone(), DynaZero(), e2(), eden_sum(), ee1(), ee1_safe(), eina(), ellpk(), emergent_line(), emislines_fillredis(), emit_frac(), EmLineJunk(), EmLineZero(), endFindLevLine(), esc_CRDcore(), esc_CRDwing(), esc_CRDwing_1side(), esc_PRD(), esc_PRD_1side(), esca0k2(), esccon(), escConE2(), escmase(), evalf(), exp1(), expn(), extend(), extin(), F21(), F21_mx(), F21i(), F21i_log(), factorial(), Fe11Lev5(), Fe13Lev5(), fe14cs(), Fe26cs123(), Fe2_cooling(), t_fe2ovr_la::fe2par(), Fe3Lev14(), Fe4Lev12(), Fe7Lev8(), Fe_10_11_13_cs(), FeII_Colden(), FeII_LineZero(), FeII_OTS(), FeII_RT_Make(), FeII_RT_Out(), FeII_RT_tau_reset(), FeII_RT_TauInc(), FeIIAccel(), FeIIAddLines(), FeIIBandsCreate(), FeIICollRatesBoltzmann(), FeIIContCreate(), FeIICreate(), FeIIFillLow16(), FeIIIntenZero(), FeIILevelPops(), FeIILyaPump(), FeIIOvrLap(), FeIIPoint(), FeIIPrint(), FeIIPun1Depart(), FeIIPunchColden(), FeIIPunchLevels(), FeIIPunchLines(), FeIIPunchLineStuff(), FeIIPunchOpticalDepth(), FeIIPunData(), FeIIPunDepart(), FeIIPunPop(), FeIIRadPress(), FeIIReset(), FeIISumBand(), FeIIZero(), FFmtRead(), ffun(), ffun1(), fiddle(), fill(), FillExtraLymanLine(), FillGFF(), FillJ(), find_arr(), findelement(), FindHCoStar(), FindIndex(), FindNeg(), findspecies(), FindTempChangeFactor(), FindVCoStar(), fixit(), FndLineHt(), fndneg(), fndstr(), ForbiddenAuls(), FreeGrid(), freehash(), fsff(), fstats(), fudge(), GammaBn(), GammaBnPL(), GammaK(), GammaPrt(), GammaPrtRate(), GammaPrtShells(), gauss_init(), gauss_legendre(), gbar0(), gbar1(), getAtNo(), getbin(), GetElem(), GetFracPop(), GetGF(), GetLineRec(), GetMaxhLine(), GetModel(), GetNextLine(), GetOptColDen(), GetOptLineInt(), GetOptTemp(), GetPotValues(), GetProbDistr_HighLimit(), GetProbDistr_LowLimit(), GetQuote(), GetStandardHeLines(), gett2(), gett2o3(), GrainCharge(), GrainChargeTemp(), GrainChrgTransferRates(), GrainCollHeating(), GrainDrift(), GrainDrive(), GrainElecEmis1(), GrainElecRecomb1(), GrainIonColl(), GrainMakeDiffuse(), GrainRateDr(), GrainRestartIter(), GrainScreen(), GrainsInit(), GrainStartIter(), GrainTemperature(), GrainUpdateRadius1(), GrainUpdateRadius2(), GrainZero(), grid_do(), GridCompile(), GridGatherAfterCloudy(), GridGatherInCloudy(), GridInterpolate(), gridXspec(), grn_abs(), GrnStdDpth(), GrnVryDpth(), H2_Accel(), H2_Colden(), H2_CollidRateEvalAll(), H2_CollidRateEvalOne(), H2_CollidRateRead(), H2_ContPoint(), H2_Cooling(), H2_Create(), H2_gs_rates(), H2_He_coll(), H2_He_coll_init(), H2_Init(), H2_init_coreload(), H2_Level_low_matrix(), H2_LevelPops(), H2_LinesAdd(), H2_LineZero(), H2_ParsePunch(), H2_Prt_column_density(), H2_Prt_line_tau(), H2_Prt_Zone(), H2_Punch_line_data(), H2_PunchDo(), H2_PunchLineStuff(), H2_RadPress(), H2_Read_hminus_distribution(), H2_ReadDissprob(), H2_ReadEnergies(), H2_ReadTransprob(), H2_Reset(), H2_RT_diffuse(), H2_RT_OTS(), H2_RT_tau_inc(), H2_RT_tau_reset(), H2_RTMake(), H2_Solomon_rate(), H2_X_coll_rate_evaluate(), H2_Zero(), H2_zero_pops_too_low(), t_ADfA::h_coll_str(), H_Einstein_A(), H_Einstein_A_lin(), H_Einstein_A_log10(), H_photo_cs(), H_photo_cs_lin(), H_photo_cs_log10(), t_ADfA::H_rad_rec(), hashfunction(), HCoolRatio(), HCSAR_interp(), HCTIon(), HCTRecom(), He2cs123(), he_1trans(), HeatPunch(), HeatSum(), HeatZero(), HeCollidSetup(), HeCSInterp(), helike_energy(), helike_quantum_defect(), helike_transprob(), HelikeTransProbSetup(), highen(), HighestIonStage(), Hion_coll_ioniz_ratecoef(), hmiopc(), hmirat(), hmole(), hmole_init(), hmole_reactions(), hmole_step(), hmrate(), t_ADfA::hpfit(), hri(), hri_log10(), hrii(), hrii_log(), hv(), Hydcs123(), hydro_transprob(), hydro_vs_coll_str(), hydro_vs_deexcit(), hydro_vs_ioniz(), HydroCSInterp(), HydroEinstA(), HydroLevel(), HydroOscilStr(), HydroRecCool(), HydroRenorm(), HydroT2Low(), HyperfineCreate(), HyperfineCS(), hypho(), IDAMAX(), ILAENV(), init_eps(), t_fe2ovr_la::init_pointers(), t_yield::init_yield(), InitBinAugerData(), InitCoreload(), InitCoreloadPostparse(), InitDefaultsPreparse(), InitEmissivities(), InitEnthalpy(), initFindLevLine(), InitGrid(), InitGridCoStar(), InitIndexArrays(), InitSimPostparse(), input_init(), input_readarray(), InterpolateGff(), InterpolateGridCoStar(), InterpolateModel(), InterpolateModelCoStar(), InterpolateRectGrid(), inv_ufunct(), ion_collis(), ion_photo(), ion_recom_calculate(), ion_recomb(), ion_recombAGN(), ion_solver(), ion_trim(), ion_zero(), IonAlumi(), IonArgon(), IonBeryl(), IonBoron(), IonCalci(), IonCarbo(), IonChlor(), IonChrom(), IonCobal(), IonCoppe(), IonCSInterp(), IonFluor(), IonHelium(), IonIron(), IonLithi(), IonMagne(), IonManga(), IonNeon(), IonNicke(), IonNitro(), IonOxyge(), IonPhosi(), IonPotas(), IonScand(), IonSilic(), IonSodiu(), IonSulph(), IonTitan(), IonVanad(), IonZinc(), ipContEnergy(), ipFindLevLine(), ipFineCont(), ipLineEnergy(), ipoint(), ipow(), ipShells(), isactive(), iso_allocate(), iso_assign_quantum_numbers(), iso_cascade(), iso_collapsed_Aul_update(), iso_collapsed_bnl_print(), iso_collapsed_bnl_set(), iso_collapsed_lifetimes_update(), iso_collide(), iso_collisional_ionization(), iso_cool(), iso_create(), iso_dielec_recomb_rate(), iso_error_generation(), iso_get_total_num_levels(), iso_ionize_recombine(), iso_level(), iso_photo(), iso_prt_pops(), iso_put_error(), iso_radiative_recomb(), iso_radiative_recomb_effective(), iso_radrecomb_from_cross_section(), iso_recomb_auxiliary_free(), iso_recomb_check(), iso_recomb_malloc(), iso_recomb_setup(), iso_RRCoef_Te(), iso_satellite(), iso_satellite_update(), iso_solve(), iso_state_lifetime(), iso_suprathermal(), iso_update_num_levels(), iso_zero(), iter_end_check(), IterEnd(), IterRestart(), IterStart(), JIndex(), Kurucz79Compile(), Kurucz79Interpolate(), L_mix_integrand_VF01(), lagrange(), LeidenCollRate(), lfactorial(), lgCheckAsserts(), lgCompileAtmosphere(), lgCompileAtmosphereCoStar(), lgConvPres(), lgConvTemp(), lgCoolHeatCheckConverge(), lgCoolNetConverge(), lgFileReadable(), lgInputComment(), lgIonizConverg(), lgMolecAver(), lgOptimize_do(), lgTauGood(), lgValidAsciiFile(), lgValidBinFile(), lgValidModel(), ligbar(), LimitSh(), linadd(), lindst(), LineConvRate2CS(), lines(), lines_continuum(), lines_general(), lines_grains(), lines_helium(), lines_hydro(), lines_lv1_k_zn(), lines_lv1_li_ne(), lines_lv1_na_ar(), lines_molecules(), lines_setup(), lines_table(), linfit(), linint(), LinterpTable(), LinterpVector(), log10_fsff(), log_integral(), lookup_key(), LSAME(), Magnetic_evaluate(), Magnetic_init(), Magnetic_reinit(), main(), MakeCS(), MakeDeriv(), MakeHCTData(), makelist(), makeplist(), map_do(), maxchain(), MeanInc(), MeanIonRadius(), MeanIonVolume(), MeanZero(), mie_auxiliary(), mie_calc_ial(), mie_cs(), mie_cs_size_distr(), mie_find_slope(), mie_integrate(), mie_next_data(), mie_next_line(), mie_read_double(), mie_read_form(), mie_read_long(), mie_read_mix(), mie_read_opc(), mie_read_realnum(), mie_read_rfi(), mie_read_szd(), mie_read_word(), mie_repair(), mie_write_form(), mie_write_opc(), MihalasCompile(), MihalasInterpolate(), molcol(), mole_H2_form(), mole_H2_LTE(), MyAssert(), MyCalloc(), MyGaussRand(), MyMalloc(), MyRealloc(), Ne10cs123(), Nemala_Start(), NewChargeData(), newelement(), NewGrainBin(), newhash(), newpt(), newreact(), newspecies(), nMatch(), noneq_offset(), NoNumb(), notein(), OccupationNumberLine(), ofit(), oi3Pcs(), oi_level_pops(), Opacity_iso_photo_cs(), opacity_more_memory(), OpacityAdd1Element(), OpacityAdd1Subshell(), OpacityAdd1SubshellInduc(), OpacityAddTotal(), OpacityCreate1Element(), OpacityCreateAll(), OpacityCreatePowerLaw(), OpacityCreateReilMan(), OpacityValenceRescale(), OpacityZero(), OpacityZeroOld(), open_data(), opfun(), optimize_func(), optimize_phymir(), optimize_subplex(), order(), outline(), outsum(), pah1_fun(), ParseAbsMag(), ParseAbundances(), ParseAge(), ParseAgn(), ParseAssertResults(), ParseAtomCO(), ParseAtomFeII(), ParseAtomH2(), ParseAtomISO(), ParseBackgrd(), ParseBlackbody(), ParseCaseB(), ParseCMB(), ParseCommands(), ParseCompile(), ParseConstant(), ParseCoronal(), ParseCosmicRays(), ParseCrashDo(), ParseDLaw(), ParseDont(), ParseDrive(), ParseDynaTime(), ParseDynaWind(), ParseElement(), ParseExtinguish(), ParseF_nu(), ParseFluc(), ParseGlobule(), ParseGrain(), ParseGrid(), ParseHDEN(), ParseInit(), ParseInterp(), ParseIonPar(), ParseMagnet(), ParseMap(), ParseMetal(), ParseNorm(), ParseOptimize(), ParsePlot(), ParsePlotRangeContin(), ParsePlotRangeOption(), ParsePowerlawContinuum(), ParsePrint(), ParsePunch(), ParseRadius(), ParseRangeOption(), ParseRatio(), ParseSet(), ParseSphere(), ParseState(), ParseStop(), ParseTable(), ParseTest(), ParseTLaw(), ParseTrace(), partx(), PE_init(), t_ADfA::phfit(), phygrm(), pintr(), PlanckIntegral(), plankf(), plot(), pltcon(), pltmap(), pltopc(), pltr(), pnegopc(), PntForLine(), powi(), PressureChange(), PressureRadiationLine(), PresTotCurrent(), PrintE71(), PrintE82(), PrintE93(), PrintEfmt(), prme(), prt_constants(), prt_LineLabels(), prt_smooth_predictions(), prt_wl(), PrtAllTau(), PrtColumns(), PrtComment(), PrtContinuum(), PrtElem(), PrtFinal(), PrtHeader(), PrtHydroTrace1(), PrtHydroTrace1a(), PrtLinePres(), PrtLineSum(), PrtMeanIon(), prtmet(), PrtZone(), ptrcer(), Punch1LineData(), punch_average(), punch_colden(), punch_line(), Punch_Line_RT(), punch_opacity(), PunchDo(), PunchFilesInit(), punchFITS_EnergyData(), punchFITS_EnergyHeader(), punchFITS_GenericData(), punchFITS_GenericHeader(), punchFITS_ParamData(), punchFITS_ParamHeader(), punchFITS_PrimaryHeader(), punchFITS_SpectraData(), punchFITS_SpectraHeader(), punchFITSfile(), PunchGaunts(), PunchLineData(), PunchLineStuff(), PunchSpecial(), PunFeII(), PunLineIntensity(), punResults(), PunResults1Line(), PutCS(), PutExtra(), PutHetCol(), PutLine(), qg32(), qheat(), qheat_init(), qintr(), t_ADfA::rad_rec(), radius_first(), radius_increment(), radius_next(), RandGauss(), RauchCompile(), RauchInitializeSub(), RauchInterpolateHCa(), RauchInterpolateHelium(), RauchInterpolateHNi(), RauchInterpolateHpHe(), RauchInterpolateHydr(), RauchInterpolatePG1159(), rayleh(), rd_continue(), read_continuum_mesh(), read_hm05(), read_whole_line(), ReadAugerData(), ReadTable(), RebinAtmosphere(), RebinFind(), RebinQHeatResults(), RebinSingleCell(), t_ADfA::rec_lines(), RefIndex(), ReturnGrainBins(), rfield_opac_malloc(), ritoa(), ritodf(), RT_continuum_shield_fcn(), RT_DestHummer(), RT_DestProb(), RT_diffuse(), RT_line_all(), RT_line_driving(), RT_line_one(), RT_line_one_tau_reset(), RT_line_one_tauinc(), RT_line_static(), RT_LineWidth(), RT_OTS(), RT_OTS_AddCont(), RT_OTS_AddLine(), RT_OTS_ChkSum(), RT_OTS_PrtRate(), RT_OTS_Update(), RT_OTS_Zero(), RT_recom_effic(), RT_stark(), RT_tau_inc(), RT_tau_init(), RT_tau_reset(), RTesc_lya(), RTesc_lya_1side(), S2cs(), S62_Therm_ave_coll_str(), SanityCheck(), SanityCheckBegin(), ScanProbDistr(), scqdri(), search_limit(), SearchModel(), SetLimits(), SetLimitsSub(), SetNChrgStates(), setstp(), sexp(), ShowMe(), simplx(), sinpar(), size_distr(), solveions(), sortd(), Spec_cont(), spldrv_safe(), spline_cubic_set(), spline_cubic_val(), splint_safe(), Split(), sprt_wl(), spsort(), StarburstCompile(), StarburstInitialize(), StarkCollTransProb_VF01(), start(), state_do(), state_get_put(), StateJunk(), states_nelemfill(), states_popfill(), states_propprint(), StateZero(), Stognienko(), StuffComment(), subopt(), sumcon(), t_ADfA::t_ADfA(), t_cpu::t_cpu(), t_fe2ovr_la::t_fe2ovr_la(), t_fe2ovr_la::tau_inc(), tauff(), tbl_fun(), TeBrent(), TempChange(), TempInterp(), TempInterp2(), TestCode(), TexcLine(), tfidle(), th85rate(), Therm_ave_coll_str_int_PR78(), Therm_ave_coll_str_int_VF01(), ThetaNu(), timestep_next(), TlustyCompile(), TlustyInterpolate(), TotalInsanity(), totlin(), TransitionJunk(), TransitionZero(), TryDoubleStep(), uderiv(), ufunct(), uncaps(), UpdatePot(), UpdatePot1(), UpdatePot2(), UpdateRecomZ0(), ValidateGrid(), vary_input(), velset(), vib_evap(), warnin(), WavlenErrorGet(), wcnint(), WernerCompile(), WernerInterpolate(), WMBASICCompile(), WMBASICInterpolate(), wr_continue(), XERBLA(), xinvrs(), xmap(), y0b(), y0b01(), y0psa(), y1psa(), y2pa(), y2s(), Yan_H2_CS(), Yfunc(), zero(), t_fe2ovr_la::zero_opacity(), ZeroContin(), ZoneEnd(), and ZoneStart().

#define EXTERN   extern

define EXTERN as nothing before including cddefines.h to allocate global data

Definition at line 56 of file cddefines.h.

#define float   PLEASE_USE_REALNUM_NOT_FLOAT

Definition at line 74 of file cddefines.h.

#define HMRATE (   a,
  b,
 
)    hmrate4(a,b,c,phycon.te)

Definition at line 935 of file cddefines.h.

Referenced by ChargTranEval(), hmole_step(), and IonCarbo().

#define isnan   MyIsnan
#define MALLOC (   exp)    (MyMalloc(exp,__FILE__, __LINE__))

use special version of malloc - it tests result and dies if cannot allocate space

Definition at line 525 of file cddefines.h.

Referenced by addentry(), AGN_Hemis(), atmdat_Chianti_readin(), atmdat_lamda_readin(), atmdat_readin(), atmol_popsolve(), AtomSeqBoron(), Badnell_rec_init(), cdGetLineList(), cdSPEC(), cdSPEC2(), Chianti_Upsilon(), CO_Colden(), CO_create_react(), CO_Init(), CO_PopsEmisCool(), CO_zero(), ContBandsCreate(), ContCreateMesh(), ConvEdenIoniz(), CoolCarb(), CoolIron(), CoolNitr(), CoolOxyg(), CoolSili(), CoolSulf(), database_readin(), DebyeDeriv(), DynaCreateArrays(), Fe11Lev5(), Fe13Lev5(), Fe2_cooling(), Fe3Lev14(), Fe4Lev12(), Fe7Lev8(), FeIIBandsCreate(), FeIIContCreate(), FeIICreate(), FillGFF(), gauss_legendre(), GetStandardHeLines(), GrainDrift(), GrainMakeDiffuse(), GrainsInit(), GridGatherInCloudy(), gridXspec(), H2_Create(), H2_He_coll_init(), H2_Level_low_matrix(), HelikeTransProbSetup(), hmole_step(), HyperfineCreate(), hypho(), initFindLevLine(), InitGrid(), InitIndexArrays(), InterpolateGridCoStar(), InterpolateModel(), InterpolateModelCoStar(), InterpolateRectGrid(), ion_solver(), iso_cascade(), iso_recomb_malloc(), iso_solve(), IterStart(), lgCompileAtmosphere(), lgCompileAtmosphereCoStar(), lines_helium(), main(), map_do(), MeanZero(), mie_calc_ial(), mie_integrate(), mie_read_mix(), mie_read_opc(), mie_read_rfi(), mie_read_szd(), mie_write_opc(), Nemala_Start(), newelement(), NewGrainBin(), newhash(), newreact(), newreaction(), newspecies(), OpacityAddTotal(), OpacityCreateAll(), ParseAssertResults(), ParseCrashDo(), ParseDynaTime(), ParseInterp(), ParsePunch(), pltcon(), pltopc(), PressureChange(), PrtFinal(), PrtLineSum(), punch_average(), punchFITS_GenericData(), PunchNewContinuum(), qheat(), qheat_init(), RauchInitializeSub(), read_continuum_mesh(), read_hm05(), ReadAugerData(), RebinAtmosphere(), RebinQHeatResults(), rfield_opac_malloc(), RT_diffuse(), RT_OTS_Update(), SanityCheckBegin(), sinpar(), spline_cubic_set(), StarburstInitialize(), ValidateGrid(), and zero().

#define MAX2   max

MAX2 takes two arguments, returns the larger of the two

Definition at line 744 of file cddefines.h.

Referenced by abund_starburst(), AbundancesPrt(), AgeCheck(), AssertFeIIDep(), atmdat_Chianti_readin(), atmdat_DielSupres(), atmdat_lamda_readin(), atmdat_readin(), atom_level3(), atom_levelN(), atom_oi_calc(), atom_pop5(), t_fe2ovr_la::atoms_fe2ovr(), Badnell_rec_init(), badprt(), bhintegrand_log(), C6cs123(), Ca20cs123(), cdColm(), cdTimescales(), ChargTranSumHeat(), chkCaHeps(), CO_PopsEmisCool(), CO_solve(), collision_strength_VF01(), ColStrGBar(), conorm(), ContCreateMesh(), ContCreatePointers(), ContRate(), ContSetIntensity(), ConvBase(), ConvEdenIoniz(), ConvFail(), ConvInitSolution(), ConvPresTempEdenIoniz(), ConvTempEdenIoniz(), CoolAdd(), CoolAlum(), CoolArgo(), CoolCalc(), CoolCarb(), CoolChlo(), CoolEvaluate(), CoolIron(), CoolMagn(), CoolNick(), CoolNitr(), CoolOxyg(), CoolPota(), CoolPunch(), CoolSili(), CoolSodi(), CoolSulf(), CoStarListModels(), cross_section(), da(), DebyeDeriv(), DGEMM(), DGER(), DGETF2(), DGETRF(), DGETRS(), DoBeckert_etal(), DoSutherland(), DrvCaseBHS(), DTRSM(), DynaPresChngFactor(), DynaStartZone(), eden_sum(), F2_1(), fe14cs(), Fe26cs123(), Fe2_cooling(), Fe7Lev8(), Fe_10_11_13_cs(), FeIICollRatesBoltzmann(), FeIILevelPops(), FeIILyaPump(), FeIIPunchLines(), ffun1(), fill(), find_arr(), fstats(), GammaBn(), GammaBnPL(), GammaK(), GetFracPop(), GetModel(), GetPotValues(), GetProbDistr_HighLimit(), GetProbDistr_LowLimit(), GrainCharge(), GrainChrgTransferRates(), GrainCollHeating(), GrainElecEmis1(), GrainElecRecomb1(), GrainMakeDiffuse(), GrainRateDr(), GrainsInit(), GrainTemperature(), H21_cm_pops(), h21_t_lt_10(), H21cm_proton(), H2_CollidRateEvalAll(), H2_CollidRateEvalOne(), H2_Create(), H2_gs_rates(), H2_LevelPops(), H2_PunchDo(), H2_RT_tau_inc(), H_cross_section(), H_photo_cs_log10(), HCTIon(), HCTRecom(), he_1trans(), HeCSInterp(), helike_radrecomb_from_cross_section(), highen(), HighestIonStage(), Hion_coll_ioniz_ratecoef(), hlike_radrecomb_from_cross_section(), hmole_reactions(), hmole_step(), t_ADfA::hpfit(), t_ADfA::hpfit_rel(), Hydcs123(), hydro_vs_coll_str(), HydroEinstA(), HydroLevel(), HydroT2Low(), Hypergeometric2F1(), hypho(), InitBinAugerData(), InterpolateModel(), ion_photo(), ion_recom_calculate(), ion_recomb(), ion_solver(), ion_trim(), IonIron(), IonMagne(), IonOxyge(), iso_allocate(), iso_collapsed_bnl_set(), iso_cool(), iso_level(), iso_radiative_recomb(), iso_radiative_recomb_effective(), iso_recomb_check(), iso_recomb_malloc(), iso_satellite_update(), iso_update_num_levels(), iter_end_check(), IterRestart(), lgCheckAsserts(), lgCoolHeatCheckConverge(), lgIonizConverg(), lgOptimize_do(), lines(), lines_continuum(), lines_general(), lines_grains(), lines_hydro(), lines_lv1_k_zn(), lines_lv1_li_ne(), lines_lv1_na_ar(), lines_molecules(), map_do(), MeanIonRadius(), MeanIonVolume(), MeanZero(), mie_cs(), mie_find_slope(), mie_integrate(), mie_read_mix(), mie_repair(), mie_write_opc(), molcol(), Ne10cs123(), Opacity_iso_photo_cs(), OpacityAdd1Element(), OpacityAdd1SubshellInduc(), OpacityCreate1Element(), optimize_func(), optimize_phymir(), optimize_subplex(), pah1_fun(), ParseAtomISO(), ParseCommands(), ParseGrid(), ParseInterp(), ParsePrint(), ParsePunch(), ParseRangeOption(), ParseStop(), ParseTrace(), pltcon(), pltmap(), pltopc(), pltr(), PressureChange(), PresTotCurrent(), PrtAllTau(), PrtColumns(), PrtComment(), PrtFinal(), PrtHeader(), PrtZone(), punch_colden(), punch_line(), punch_opacity(), PunchDo(), punchFITSfile(), PunchNewContinuum(), qheat(), qheat_init(), qintr(), radius_first(), radius_increment(), radius_next(), rayleh(), RebinQHeatResults(), RT_diffuse(), RT_line_one(), RT_line_one_tau_reset(), RT_line_static(), RT_LineWidth(), RT_OTS(), RT_OTS_Update(), RT_recom_effic(), RT_stark(), RT_tau_init(), RTesc_lya(), RTesc_lya_1side(), S2cs(), SanityCheckBegin(), ScanProbDistr(), search_limit(), SetLimits(), SetLimitsSub(), setstp(), sinpar(), spldrv_safe(), splint_safe(), tauff(), tfidle(), timestep_next(), TryDoubleStep(), uderiv(), UpdatePot(), UpdatePot1(), vary_input(), xNI_coll_stren(), y0b01(), Yan_H2_CS(), and ZoneStart().

#define MAX3 (   a,
  b,
 
)    (max(max(a,b),c))

MAX3 takes 3 arguments, returns the largest of the 3

Definition at line 749 of file cddefines.h.

Referenced by fstats(), GetProbDistr_LowLimit(), pltcon(), pltmap(), and pltopc().

#define MAX4 (   a,
  b,
  c,
 
)    (max(max(a,b),max(c,d)))

MAX2 takes 4 arguments, returns the largest of the 4

Definition at line 754 of file cddefines.h.

Referenced by InterpolateGff(), iso_collapsed_bnl_set(), radius_next(), and sinpar().

#define MIN2   min

MIN2 takes two arguments, returns the smaller of the two

Definition at line 723 of file cddefines.h.

Referenced by abund_starburst(), AgeCheck(), atmdat_3body(), atmdat_DielSupres(), atmdat_readin(), atom_oi_calc(), C6cs123(), Ca20cs123(), ChargTranEval(), ChargTranSumHeat(), chi2_func(), CO_PopsEmisCool(), CO_solve(), ContRate(), ContSetIntensity(), ConvEdenIoniz(), ConvFail(), ConvInitSolution(), ConvIterCheck(), ConvPresTempEdenIoniz(), ConvTempEdenIoniz(), CoolAlum(), CoolArgo(), CoolCalc(), CoolCarb(), CoolChlo(), CoolEvaluate(), CoolFluo(), CoolMagn(), CoolNick(), CoolNitr(), CoolOxyg(), CoolPhos(), CoolPota(), coolpr(), CoolPunch(), CoolSili(), CoolSodi(), CoolSulf(), CS_l_mixing_PS64(), da(), dense_fabden(), DGETF2(), DGETRF(), DoBeckert_etal(), DoSutherland(), DynaStartZone(), esc_CRDcore(), esc_CRDwing(), esc_PRD_1side(), fe14cs(), Fe26cs123(), Fe_10_11_13_cs(), FeIICollRatesBoltzmann(), FeIIPunData(), ffun1(), FillJ(), find_arr(), fstats(), GammaBn(), GammaBnPL(), GammaK(), GammaPrt(), GetProbDistr_HighLimit(), GetProbDistr_LowLimit(), GrainScreen(), GrainTemperature(), h21_t_ge_10(), H21cm_electron(), H21cm_proton(), H2_He_coll(), H2_PunchDo(), H2_RT_tau_inc(), HCTIon(), HCTRecom(), HeatPunch(), helike_radrecomb_from_cross_section(), Hion_coll_ioniz_ratecoef(), hlike_radrecomb_from_cross_section(), hmole_step(), Hydcs123(), HydroEinstA(), Hypergeometric2F1(), hypho(), ILAENV(), InterpolateModel(), ion_collis(), ion_photo(), ion_recomb(), ion_solver(), ion_trim(), IonIron(), IonOxyge(), ipLineEnergy(), ipoint(), iso_assign_quantum_numbers(), iso_collapsed_bnl_set(), iso_continuum_lower(), iso_radiative_recomb(), lgCheckAsserts(), lgOptimize_do(), lines_hydro(), map_do(), mie_auxiliary(), mie_integrate(), mie_read_mix(), mie_read_rfi(), mie_write_opc(), Ne10cs123(), oi3Pcs(), OpacityAdd1Subshell(), OpacityAdd1SubshellInduc(), optimize_func(), optimize_phymir(), pah1_fun(), ParseBlackbody(), ParseCommands(), ParseCosmicRays(), ParseInterp(), ParseRangeOption(), ParseSet(), ParseStop(), partx(), PlanckIntegral(), pltcon(), pltmap(), pltopc(), pltr(), PressureChange(), PressureRadiationLine(), PresTotCurrent(), prt_smooth_predictions(), PrtComment(), PrtFinal(), PrtLinePres(), PrtMeanIon(), punch_opacity(), PunchDo(), PunchLineData(), PunchNewContinuum(), qheat(), qheat_init(), qintr(), radius_first(), radius_increment(), radius_next(), RebinQHeatResults(), RebinSingleCell(), RT_continuum_shield_fcn(), RT_DestProb(), RT_diffuse(), RT_line_all(), RT_line_one(), RT_line_one_tau_reset(), RT_line_one_tauinc(), RT_line_static(), RT_LineWidth(), RT_OTS_Update(), RT_recom_effic(), RT_stark(), RT_tau_init(), RTesc_lya(), RTesc_lya_1side(), S2cs(), SanityCheckBegin(), SetLimits(), SetLimitsSub(), setstp(), simplx(), spldrv_safe(), splint_safe(), subopt(), sumcon(), TeBrent(), timestep_next(), uderiv(), UpdatePot(), vary_input(), writeCloudyDetails(), xinvrs(), xNI_coll_stren(), and ZoneStart().

#define MIN3 (   a,
  b,
 
)    (min(min(a,b),c))

MIN3 takes 3 arguments, returns the smallest of the 3

Definition at line 728 of file cddefines.h.

Referenced by atmdat_3body(), iso_continuum_lower(), ParseCommands(), pltcon(), pltmap(), pltopc(), radius_first(), radius_next(), and RT_line_static().

#define MIN4 (   a,
  b,
  c,
 
)    (min(min(a,b),min(c,d)))

MIN2 takes 4 arguments, returns the smallest of the 4

Definition at line 733 of file cddefines.h.

Referenced by InterpolateGff(), iso_collapsed_bnl_set(), radius_first(), and radius_next().

#define PARALLEL_MODE   false

as the code is developed this should become part of the design for future true parallel processing. This flag should be false if it is not necessary for a given instance of a routine to keep separate memory. This is the case in a serial machine, or an MPI run where there are n instances of the code running on n processors. This should be true if an instance of a routine must have its own unique memory, so that other instances of the routine, which may be running in parallel on another processor, does not share the same memory.

Definition at line 515 of file cddefines.h.

Referenced by ion_solver().

#define POW2   pow2

POW2 takes 1 argument, and squares it

Definition at line 840 of file cddefines.h.

Referenced by abund_starburst(), anomal(), AssertFeIIDep(), atmdat_readin(), Bruggeman(), chi2_func(), cnewton(), collision_strength_VF01(), ColStrGBar(), conorm(), ContSetIntensity(), CoolAlum(), CoolEvaluate(), CoolMagn(), cross_section(), CS_l_mixing_PS64(), CS_l_mixing_S62(), CS_PercivalRichards78(), DebyeDeriv(), dense_fabden(), dist(), DoFSMixing(), DoSutherland(), DrvCaseBHS(), DynaIonize(), DynaNewStep(), DynaPrtZone(), DynaStartZone(), eina(), FeIICollRatesBoltzmann(), FeIICreate(), FillExtraLymanLine(), FreeFreeGaunt(), fstats(), GammaBnPL(), gauss_legendre(), gbar0(), gbar1(), GetGF(), GetProbDistr_HighLimit(), gett2(), gett2o3(), GrainChargeTemp(), GrainCollHeating(), GrainDrift(), GrainMakeDiffuse(), GrainScreen(), GrainsInit(), H2_CollidRateEvalAll(), H2_CollidRateEvalOne(), H2_Cooling(), H2_Create(), H2_vib_dist(), t_ADfA::H_rad_rec(), helike_energy(), helike_transprob(), hmole_reactions(), hmole_step(), t_ADfA::hpfit(), t_ADfA::hpfit_rel(), hydro_vs_coll_str(), HydroEinstA(), HydroOscilStr(), HydroRecCool(), hypho(), InitSimPostparse(), ion_recom_calculate(), ion_recomb(), IonCSInterp(), iso_assign_quantum_numbers(), iso_cool(), iso_create(), iso_state_lifetime(), lgCheckAsserts(), lgCompileAtmosphere(), lgConvPres(), lines_hydro(), lines_lv1_li_ne(), lines_setup(), Magnetic_evaluate(), mie_auxiliary(), mie_cs(), mie_find_slope(), mie_integrate(), mie_read_opc(), mie_read_szd(), noneq_offset(), ofit(), oi3Pcs(), OpacityAddTotal(), OpacityCreateAll(), optimize_phymir(), optimize_subplex(), pah1_fun(), t_ADfA::phfit(), phygrm(), PlanckIntegral(), plankf(), PresTotCurrent(), PrtFinal(), PunchDo(), qheat(), radius_first(), radius_increment(), radius_next(), rayleh(), RT_continuum_shield_fcn(), RT_DestProb(), RT_diffuse(), RT_line_one(), RTesc_lya_1side(), S62_Therm_ave_coll_str(), sinpar(), size_distr(), StarkCollTransProb_VF01(), Stognienko(), tfidle(), ThetaNu(), uderiv(), UpdatePot1(), UpdatePot2(), velset(), y0b01(), and ZoneStart().

#define POW3   pow3
#define POW4 (   X)    (pow2(X)*pow2(X))

POW4 takes 1 argument, and raises it to the power 4

Definition at line 854 of file cddefines.h.

Referenced by hydro_transprob(), iso_state_lifetime(), mie_write_opc(), PressureRadiationLine(), search_limit(), and size_distr().

#define puts (   STR)    Using_puts_before_cdEXIT_is_no_longer_needed

Definition at line 454 of file cddefines.h.

#define REALLOC   MyRealloc

now special version of calloc - it dies if cannot allocate space.

Definition at line 543 of file cddefines.h.

Referenced by ConvEdenIoniz(), extend(), opacity_more_memory(), ParseCommands(), PressureChange(), and StarburstInitialize().

#define STATIC   static

Definition at line 63 of file cddefines.h.

Typedef Documentation

typedef struct t_collision collision

Definition at line 1091 of file cddefines.h.

typedef struct t_emission emission

Definition at line 1090 of file cddefines.h.

typedef struct t_quantumState quantumState

Definition at line 1089 of file cddefines.h.

typedef float realnum

Definition at line 69 of file cddefines.h.

typedef struct t_species species

Definition at line 1092 of file cddefines.h.

typedef float sys_float

Definition at line 72 of file cddefines.h.

typedef struct t_transition transition

Definition at line 1088 of file cddefines.h.

Enumeration Type Documentation

enum collider
Enumerator:
ipELECTRON 
ipPROTON 
ipHE_PLUS 
ipALPHA 
ipNCOLLIDER 

Definition at line 218 of file cddefines.h.

enum split_mode

split_mode defines how the routine Split generates substrings SPM_RELAX: multiple adjacent separators will be coalesced into one this way you can never get an empty substring SPM_KEEP_EMPTY: multiple adjacent separators will result in empty substrings to be added to the list SPM_STRICT: empty substrings are illegal

Enumerator:
SPM_RELAX 
SPM_KEEP_EMPTY 
SPM_STRICT 

Definition at line 1359 of file cddefines.h.

Function Documentation

double AnuUnit ( realnum  energy)

AnuUnit produce continuum energy in arbitrary units, ip is on C scale

Definition at line 168 of file service.cpp.

References cdEXIT, t_punch::chConPunEnr, DEBUG_ENTRY, EVRYD, ioQQQ, t_punch::ipConPun, punch, RYD_INF, RYDLAM, and SPEEDLIGHT.

Referenced by AGN_Hemis(), pun1Line(), punch_opacity(), PunchDo(), and PunchNewContinuum().

NORETURN void BadOpen ( void  )

BadOpen tried to open data files and failed

Definition at line 990 of file service.cpp.

References cdEXIT, DEBUG_ENTRY, ioQQQ, and ShowMe().

Referenced by main().

Here is the call graph for this function:

NORETURN void BadRead ( void  )

BadRead tried to read internal data and failed

Definition at line 976 of file service.cpp.

References cdEXIT, DEBUG_ENTRY, ioQQQ, and ShowMe().

Referenced by H2_Read_hminus_distribution(), H2_ReadDissprob(), H2_ReadEnergies(), H2_ReadTransprob(), and HelikeTransProbSetup().

Here is the call graph for this function:

void broken ( void  )

broken set flag saying that the code is broken

Definition at line 1086 of file service.cpp.

References broke, DEBUG_ENTRY, and t_broke::lgBroke.

Referenced by ion_solver(), IonNitro(), and PresTotCurrent().

void cap4 ( char *  chCAP,
char *  chLab 
)

cap4 convert first 4 char of input line chLab into chCAP all in caps, null termination

Parameters
chCAPoutput string, cap'd first 4 char of chLab,
chLabwith null terminating input string ending with eol

Definition at line 289 of file service.cpp.

References DEBUG_ENTRY.

Referenced by cdDLine(), cdEmis(), cdLine(), GetOptColDen(), lgCheckAsserts(), optimize_func(), ParseDLaw(), ParseElement(), ParseInterp(), ParseNorm(), ParseTLaw(), and PrtFinal().

void caps ( char *  chCard)

caps convert input command line (through eol) to ALL CAPS

Parameters
chCard- line image as string of characters

Definition at line 329 of file service.cpp.

References DEBUG_ENTRY.

Referenced by cdColm(), cdEmis(), cdIonFrac(), cdRead(), cdTemp(), GetOptColDen(), GetOptLineInt(), GetOptTemp(), input_readarray(), Nemala_Start(), ParseAbundances(), ParseCommands(), ParseDynaTime(), ParseElement(), ParseInterp(), PrtFinal(), PrtLineSum(), punch_average(), punch_colden(), punch_line(), Punch_Line_RT(), and punResults().

NORETURN void cdExit ( int  iexit)
the Cloudy exit handler 
Parameters
iexit,EXIT_FAILUREfor failure, EXIT_SUCCESS for success

Definition at line 243 of file cdinit.cpp.

References ClosePunchFiles(), ioQQQ, and lgMPI.

Referenced by main().

Here is the call graph for this function:

void CodeReview ( void  )

CodeReview - placed next to code that needs to be checked

Definition at line 1105 of file service.cpp.

References broke, DEBUG_ENTRY, and t_broke::lgCheckit.

Referenced by iso_level().

double csphot ( long int  inu,
long int  ithr,
long int  iofset 
)

csphot returns photoionization cross section from opacity stage using std pointers

Parameters
inuINU is array index pointing to frequency where opacity is to be evaluated on f not c scale
ithrITHR is pointer to threshold
iofsetIOFSET is offset as defined in opac0

Definition at line 1725 of file service.cpp.

References DEBUG_ENTRY, opac, and t_opac::OpacStack.

Referenced by OpacityAddTotal().

int dbg_printf ( int  debug,
const char *  fmt,
  ... 
)

dbg_printf is a debug print routine that was provided by Peter Teuben, as a component from his NEMO package. It offers run-time specification of the level of debugging

Definition at line 1136 of file service.cpp.

References DEBUG_ENTRY, t_trace::debug_level, ioQQQ, and trace.

int dprintf ( FILE *  fp,
const char *  format,
  ... 
)

dprintf – version of fprintf which prepends DEBUG

Definition at line 1114 of file service.cpp.

References DEBUG_ENTRY.

Referenced by iso_radiative_recomb_effective(), and qheat_init().

double dsexp ( double  x)

dsexp safe exponential function for doubles

Parameters
x

Definition at line 1056 of file service.cpp.

References DEBUG_ENTRY.

Referenced by FeIICollRatesBoltzmann(), Hion_coll_ioniz_ratecoef(), iso_collide(), and iso_satellite_update().

double e2 ( double  t)

e2 second exponential integral

Parameters
toptical depth argument

Definition at line 348 of file service.cpp.

References DEBUG_ENTRY, ee1(), max(), and sexp().

Referenced by DrvCaseBHS(), IterRestart(), IterStart(), MakeHCTData(), ParseDrive(), radius_increment(), RT_tau_reset(), and SanityCheckBegin().

Here is the call graph for this function:

double ee1 ( double  x)

ee1 first exponential integral

Parameters
xoptical depth argument, returns e1(tau)

Definition at line 361 of file service.cpp.

References cdEXIT, DEBUG_ENTRY, and ioQQQ.

Referenced by e2(), Hion_coll_ioniz_ratecoef(), Hydcs123(), ParseDrive(), and SanityCheckBegin().

double ee1_safe ( double  x)

this one same as ee1, except is divided by a factor of exp(x), and is only to be used for x>1.

Parameters
xoptical depth argument, returns e1(tau) * exp(x)

Definition at line 405 of file service.cpp.

References ASSERT, and DEBUG_ENTRY.

double FFmtRead ( const char *  chCard,
long int *  ipnt,
long int  last,
bool *  lgEOL 
)

FFmtRead - the free-format number reader

Parameters
*chCardstring giving the line image
*ipntthe index for the character in the string where we shall start
lastthe number of characters in the string - do not search beyond it
*lgEOLtrue if hit end of line with no number

Definition at line 430 of file service.cpp.

References ASSERT, DEBUG_ENTRY, and min().

Referenced by abund_starburst(), atmdat_Chianti_readin(), atmdat_lamda_readin(), atmdat_readin(), Badnell_rec_init(), cdGetLineList(), ContBandsCreate(), dgaunt(), DrvCaseBHS(), DrvEscP(), DrvHyas(), FeIIBandsCreate(), FillGFF(), GetOptColDen(), GetOptLineInt(), GetOptTemp(), GetStandardHeLines(), H2_ParsePunch(), H2_Read_hminus_distribution(), H2_ReadDissprob(), H2_ReadEnergies(), H2_ReadTransprob(), HeCollidSetup(), HelikeTransProbSetup(), HyperfineCreate(), iso_recomb_setup(), ParseAbsMag(), ParseAbundances(), ParseAge(), ParseAgn(), ParseAssertResults(), ParseAtomCO(), ParseAtomFeII(), ParseAtomH2(), ParseAtomISO(), ParseBackgrd(), ParseBlackbody(), ParseCaseB(), ParseCommands(), ParseCompile(), ParseConstant(), ParseCoronal(), ParseCosmicRays(), ParseCrashDo(), ParseDLaw(), ParseDrive(), ParseDynaTime(), ParseDynaWind(), ParseElement(), ParseExtinguish(), ParseF_nu(), ParseFluc(), ParseGlobule(), ParseGrain(), ParseGrid(), ParseHDEN(), ParseInterp(), ParseIonPar(), ParseMagnet(), ParseMap(), ParseMetal(), ParseNorm(), ParseOptimize(), ParsePlotRangeContin(), ParsePlotRangeOption(), ParsePowerlawContinuum(), ParsePrint(), ParsePunch(), ParseRadius(), ParseRangeOption(), ParseRatio(), ParseSet(), ParseSphere(), ParseStop(), ParseTable(), ParseTLaw(), ParseTrace(), PrtLineSum(), ptrcer(), punch_average(), punch_colden(), punch_line(), Punch_Line_RT(), read_continuum_mesh(), and read_hm05().

Here is the call graph for this function:

bool FindAndErase ( string &  str,
const string &  substr 
)
inline

in string str, erase the first instance of substr returns true if an instance of substr was erased

Definition at line 1381 of file cddefines.h.

References FindAndReplace().

Here is the call graph for this function:

bool FindAndReplace ( string &  str,
const string &  substr,
const string &  newstr 
)
inline

in string str, replace the first instance of substr with newstr returns true if an instance of substr was found and replaced

Definition at line 1369 of file cddefines.h.

Referenced by FindAndErase().

void fixit ( void  )
bool fp_equal ( sys_float  x,
sys_float  y,
int  n = 3 
)
inline
bool fp_equal ( double  x,
double  y,
int  n = 3 
)
inline

Definition at line 797 of file cddefines.h.

References ASSERT, isnan, max(), min(), and sign3().

Here is the call graph for this function:

bool fp_equal_tol ( sys_float  x,
sys_float  y,
sys_float  tol 
)
inline

Definition at line 816 of file cddefines.h.

References ASSERT, isnan, and max().

Here is the call graph for this function:

bool fp_equal_tol ( double  x,
double  y,
double  tol 
)
inline

Definition at line 827 of file cddefines.h.

References ASSERT, isnan, and max().

Here is the call graph for this function:

double fudge ( long int  ipnt)

fudge enter fudge factors, or some arbitrary number, with fudge command return value is the fudge factor fudge(-1) queries the routine for the number of fudge parameters that were entered, zero returned if none

Parameters
ipntinteger saying which of the possible numbers on the fudge command to use - 0 would be the first

Definition at line 530 of file service.cpp.

References cdEXIT, DEBUG_ENTRY, t_fudgec::fudgea, fudgec, ioQQQ, t_fudgec::lgFudgeUsed, and t_fudgec::nfudge.

Referenced by Fe7Lev8(), GrainChargeTemp(), H2_Cooling(), InitEmissivities(), and PresTotCurrent().

long int GetElem ( char *  chCARD_CAPS)

GetElem scans line image, finds element. returns atomic number j, on C scale. Returns , -1 if no hit. chCARD_CAPS must have been converted to all CAPS by caps() to work

Parameters
chCARD_CAPS

Definition at line 558 of file service.cpp.

References t_elementnames::chElementNameShort, DEBUG_ENTRY, elementnames, LIMELM, and nMatch().

Referenced by ParseAssertResults(), ParseAtomISO(), ParseElement(), ParsePrint(), ParsePunch(), ParseSet(), ParseTrace(), and punch_average().

Here is the call graph for this function:

int GetQuote ( char *  chLabel,
char *  chCard,
bool  lgABORT 
)
GetQuote get any name between double quotes off command line

return string as chLabel, is null terminated returns zero for success, 1 for did not find double quotes

Parameters
*chLabelwe will generate a label and stuff it here
*chCardlocal cap'd line, we will blank this out
lgABORTif true then abort if no double quotes found, if false then return null string in this case

Definition at line 584 of file service.cpp.

References cdEXIT, t_input::chOrgCard, DEBUG_ENTRY, input, and ioQQQ.

Referenced by ParseAssertResults(), ParseCompile(), ParseGrain(), ParseInit(), ParseNorm(), ParseOptimize(), ParsePunch(), ParseSet(), ParseState(), ParseStop(), and ParseTable().

double hmrate4 ( double  a,
double  b,
double  c,
double  te 
)
inline

Definition at line 937 of file cddefines.h.

INSTANTIATE_MULTI_ARR ( quantumState  ,
MEM_LAYOUT_VAL  ,
lgBOUNDSCHECKVAL   
)
INSTANTIATE_MULTI_ARR ( transition  ,
MEM_LAYOUT_VAL  ,
lgBOUNDSCHECKVAL   
)
template<class T >
void invalidate_array ( T *  p,
size_t  size 
)
inline
void invalidate_array ( double *  p,
size_t  size 
)
inline

Definition at line 955 of file cddefines.h.

References set_NaN().

Here is the call graph for this function:

void invalidate_array ( sys_float p,
size_t  size 
)
inline

Definition at line 960 of file cddefines.h.

References set_NaN().

Here is the call graph for this function:

long int ipow ( long  ,
long   
)
ipow
Returns
m^n

Definition at line 718 of file service.cpp.

References DEBUG_ENTRY, and is_odd().

Here is the call graph for this function:

bool is_odd ( int  j)
inline

checks whether argument is odd

Definition at line 707 of file cddefines.h.

Referenced by expn(), fsff(), H2_Create(), ipow(), ParsePunch(), powi(), and PunchDo().

bool is_odd ( long  j)
inline

Definition at line 708 of file cddefines.h.

long max ( int  a,
long  b 
)
inline
long max ( long  a,
int  b 
)
inline

Definition at line 738 of file cddefines.h.

double max ( sys_float  a,
double  b 
)
inline

Definition at line 739 of file cddefines.h.

double max ( double  a,
sys_float  b 
)
inline

Definition at line 740 of file cddefines.h.

long min ( int  a,
long  b 
)
inline

Definition at line 716 of file cddefines.h.

Referenced by FFmtRead(), fp_equal(), ParseCommands(), TempInterp(), TempInterp2(), UpdatePot1(), and Yfunc().

long min ( long  a,
int  b 
)
inline

Definition at line 717 of file cddefines.h.

double min ( sys_float  a,
double  b 
)
inline

Definition at line 718 of file cddefines.h.

double min ( double  a,
sys_float  b 
)
inline

Definition at line 719 of file cddefines.h.

void MyAssert ( const char *  file,
int  line 
)
MyAssert a version of assert that fails gracefully
Parameters
*file
line

Definition at line 149 of file service.cpp.

References cdEXIT, conv, DEBUG_ENTRY, fnzone, ioQQQ, iteration, t_conv::lgSearch, nzone, ShowMe(), and TorF().

Referenced by main().

Here is the call graph for this function:

void* MyCalloc ( size_t  num,
size_t  size 
)

MyCalloc wrapper for calloc(). Returns a good pointer or dies.

Parameters
numuse same type as library function CALLOC
size

Definition at line 1652 of file service.cpp.

References ASSERT, cdEXIT, DEBUG_ENTRY, and ioQQQ.

double MyGaussRand ( double  PctUncertainty)

A custom wrapper for RandGauss than truncates at two standard deviations.

Parameters
PctUncertainty

Definition at line 1806 of file service.cpp.

References ASSERT, DEBUG_ENTRY, and RandGauss().

Referenced by iso_error_generation().

Here is the call graph for this function:

void* MyMalloc ( size_t  size,
const char *  file,
int  line 
)

MyMalloc wrapper for malloc(). Returns a good pointer or dies.

Parameters
sizeuse same type as library function malloc
file
line

Definition at line 1571 of file service.cpp.

References ASSERT, cdEXIT, DEBUG_ENTRY, ioQQQ, and set_NaN().

Here is the call graph for this function:

void* MyRealloc ( void *  p,
size_t  size 
)

MyRealloc wrapper for realloc(). Returns a good pointer or dies.

Parameters
numuse same type as library function REALLOC
size

Definition at line 1690 of file service.cpp.

References ASSERT, cdEXIT, DEBUG_ENTRY, and ioQQQ.

long nint ( double  x)
inline

nint rounds to the nearest long int

Definition at line 712 of file cddefines.h.

Referenced by GrainCharge(), GrainsInit(), InitEmissivities(), mie_write_form(), ParseSet(), t_ADfA::phfit(), sinpar(), and size_distr().

long nMatch ( const char *  chKey,
const char *  chCard 
)
NORETURN void NoNumb ( char *  chCard)
NORETURN void OUT_OF_RANGE ( const char *  str)
inline
double plankf ( long int  ip)

plankf evaluate Planck function for any cell at current electron temperature

Parameters
ip

Definition at line 1831 of file service.cpp.

References t_rfield::anu, t_rfield::ContBoltz, DEBUG_ENTRY, FR1RYD, POW2, and rfield.

Referenced by PunchDo().

template<class T >
T pow2 ( a)
inline
template<class T >
T pow3 ( a)
inline

Definition at line 849 of file cddefines.h.

Referenced by elec_esc_length(), H_Einstein_A_lin(), H_Einstein_A_log10(), y1psa(), and y2pa().

double powi ( double  ,
long  int 
)
void PrintE71 ( FILE *  ,
double   
)

print with 1p,e8.1 format onto stream FILE

Definition at line 867 of file service.cpp.

References DEBUG_ENTRY.

Referenced by PrtFinal().

void PrintE82 ( FILE *  ,
double   
)

print with 1p,e8.2 format onto stream FILE all are located in printe82.c

Definition at line 821 of file service.cpp.

References DEBUG_ENTRY.

Referenced by AbundancesSet(), optimize_func(), PrtAllTau(), PrtFinal(), and PrtHeader().

void PrintE93 ( FILE *  ,
double   
)

print with 1p,e9.3 format onto stream FILE

Definition at line 914 of file service.cpp.

References DEBUG_ENTRY.

Referenced by HydroLevel(), PrtAllTau(), PrtFinal(), PrtHeader(), PrtHydroTrace1a(), PrtZone(), and punch_opacity().

char* PrintEfmt ( const char *  fmt,
double  val 
)
create string with val and format, to print with %s,

much faster than above, totally native on non-MS systems

Parameters
*fmt
val

Definition at line 768 of file service.cpp.

References DEBUG_ENTRY.

Referenced by aver(), GammaPrt(), GetModel(), H2_Prt_column_density(), H2_Prt_Zone(), HydroLevel(), InterpolateGridCoStar(), InterpolateRectGrid(), iso_collide(), iso_level(), iso_photo(), iso_radiative_recomb(), map_do(), prme(), PrtAllTau(), PrtFinal(), PrtHeader(), PrtHydroTrace1(), PrtZone(), Punch1LineData(), and RT_tau_init().

double qg32 ( double  ,
double  ,
double(*)(double)   
)

32 point gaussian quadrature integration

Parameters
xllower limit to integration
xu- upper limit to integration
(*fct)- pointer to routine to be integrated, arg is x val

Definition at line 1158 of file service.cpp.

References DEBUG_ENTRY.

Referenced by AngerJ(), collision_strength_VF01(), conpmp(), cont_gaunt_calc(), CS_l_mixing_S62(), CS_l_mixing_VF01(), CS_ThermAve_PR78(), CS_VS80(), DrvContPump(), esccon(), helike_radrecomb_from_cross_section(), hlike_radrecomb_from_cross_section(), and Recomb_Seaton59().

double RandGauss ( double  xMean,
double  s 
)
normal random variate generator 
Parameters
xMeanmean value
sstandard deviation s

Definition at line 1766 of file service.cpp.

References BIGDOUBLE, DEBUG_ENTRY, genrand_real3(), x1, and x2.

Referenced by H2_Create(), ion_recomb(), and MyGaussRand().

Here is the call graph for this function:

char* read_whole_line ( char *  chLine,
int  nChar,
FILE *  ioIN 
)

read_whole_line safe version of fgets - read a line, return null if cannot read line or if input line is too long

Parameters
char*chLine - previously allocated string where the line image will be stored
intnChar size of chLine, we will return NULL if input line is longer than this
FILE*ioIN a previously opened file handle, will read from from here

Definition at line 70 of file service.cpp.

References called, DEBUG_ENTRY, ioQQQ, lgAbort, and t_called::lgTalk.

Referenced by atmdat_Chianti_readin(), atmdat_lamda_readin(), atmdat_readin(), Badnell_rec_init(), cdGetLineList(), ContBandsCreate(), dgaunt(), DrvCaseBHS(), DrvEscP(), DrvHyas(), FeIIBandsCreate(), FeIICreate(), FillGFF(), GetNextLine(), GetStandardHeLines(), H2_CollidRateRead(), H2_He_coll_init(), H2_Read_hminus_distribution(), H2_ReadDissprob(), H2_ReadEnergies(), H2_ReadTransprob(), HeCollidSetup(), HelikeTransProbSetup(), HyperfineCreate(), t_yield::init_yield(), iso_recomb_setup(), lgCompileAtmosphereCoStar(), main(), mie_next_line(), Nemala_Start(), ParseDrive(), ParseInit(), ptrcer(), RauchInitializeSub(), read_continuum_mesh(), read_hm05(), ReadTable(), and StarburstInitialize().

sys_float safe_div ( sys_float  x,
sys_float  y 
)
inline

safe_div( x, y ) - do a really safe division x/y returns +/-FLT_MAX if the division would have overflowed (includes div by 0) returns NaN (i.e. crashes) when x or y are NaN, or when evaluating 0/0

Definition at line 870 of file cddefines.h.

References isnan, and sign3().

Referenced by PunchDo().

Here is the call graph for this function:

double safe_div ( double  x,
double  y 
)
inline

safe_div( x, y ) - do a really safe division x/y returns +/-DBL_MAX if the division would have overflowed (includes div by 0) returns NaN (i.e. crashes) when x or y are NaN, or when evaluating 0/0

Definition at line 901 of file cddefines.h.

References isnan, and sign3().

Here is the call graph for this function:

sys_float SDIV ( sys_float  x)
inline

SDIV safe division - div by SDIV(x) - if abs val of arg >SMALLFLOAT, returns arg, if < SMALLFLOAT, returns SMALLFLOAT - with negative arg return is +SMALLFLOAT so sign changes

Definition at line 861 of file cddefines.h.

References SMALLFLOAT.

Referenced by AbundancesSet(), t_fe2ovr_la::atoms_fe2ovr(), cdTemp(), ChargTranEval(), ChemImportance(), CO_drive(), CO_solve(), ConvBase(), ConvEdenIoniz(), ConvInitSolution(), CoolCarb(), CoolChlo(), CoolDima(), CoolEvaluate(), CoolNitr(), CoolOxyg(), DynaPunchTimeDep(), DynaStartZone(), eden_sum(), Fe2_cooling(), FeIILevelPops(), FeIIPunPop(), GammaPrt(), GrainDrive(), H21_cm_pops(), H2_CollidRateEvalAll(), H2_Cooling(), H2_gs_rates(), H2_Level_low_matrix(), H2_LevelPops(), H2_Prt_column_density(), H2_Prt_Zone(), H2_PunchDo(), H2_RTMake(), H2_Solomon_rate(), H2_X_coll_rate_evaluate(), hmole(), hmole_reactions(), hmole_step(), HydroT2Low(), ion_recom_calculate(), ion_recomb(), ion_solver(), ion_trim(), IonSilic(), iso_cool(), iso_level(), iso_solve(), iter_end_check(), IterEnd(), IterStart(), lgCheckAsserts(), lgConvEden(), lgCoolHeatCheckConverge(), lgMolecAver(), lines_continuum(), lines_grains(), MeanInc(), OccupationNumberLine(), ParseTable(), PresTotCurrent(), prt_smooth_predictions(), PrtColumns(), PrtComment(), PrtFinal(), PrtZone(), PunchDo(), PunchLineData(), radius_first(), radius_increment(), radius_next(), RT_continuum_shield_fcn(), RT_line_all(), RT_line_one_tauinc(), RT_line_static(), RT_OTS_Update(), RT_stark(), and timestep_next().

double SDIV ( double  x)
inline

Definition at line 863 of file cddefines.h.

References SMALLFLOAT.

sys_float sexp ( sys_float  x)
double sexp ( double  x)

Definition at line 1036 of file service.cpp.

References DEBUG_ENTRY, and SEXP_LIMIT.

void ShowMe ( void  )
template<class T >
T sign ( x,
y 
)
inline
FP sign transfer (fortran sign function) - sign of y times abs value of x 
Parameters
x
y

Definition at line 762 of file cddefines.h.

Referenced by bessel_jn(), bessel_yn(), ConvPresTempEdenIoniz(), ConvTempEdenIoniz(), CoolPunch(), DynaPresChngFactor(), qheat_init(), setstp(), TeBrent(), xinvrs(), and ZoneStart().

template<class T >
int sign3 ( x)
inline

sign3 returns -1 for negative arguments, +1 for positive, and 0 for zero (pascal sign function)

Definition at line 770 of file cddefines.h.

Referenced by find_arr(), fp_equal(), mie_read_rfi(), RebinFind(), and safe_div().

void Split ( const string &  str,
const string &  sep,
vector< string > &  lst,
split_mode  mode 
)

Split: split a string into substrings using "sep" as separator

Definition at line 102 of file service.cpp.

References cdEXIT, DEBUG_ENTRY, ioQQQ, SPM_KEEP_EMPTY, and SPM_STRICT.

Referenced by t_cpu::t_cpu(), and t_version::t_version().

void spsort ( realnum  x[],
long int  n,
long int  iperm[],
int  kflag,
int *  ier 
)

spsort netlib routine to sort array returning sorted indices

Parameters
x[]input array to be sorted
nnumber of values in x
iperm[]permutation output array
kflagflag saying what to do - 1 sorts into increasing order, not changing
kflagthe original routine
*iererror condition, should be 0

Definition at line 1223 of file service.cpp.

References DEBUG_ENTRY.

Referenced by atmdat_Chianti_readin(), CoolPunch(), H2_Create(), H2_PunchDo(), HeatPunch(), PrtFinal(), PrtLinePres(), and SanityCheckBegin().

void TestCode ( void  )

TestCode set flag saying that test code is in place

Definition at line 1075 of file service.cpp.

References DEBUG_ENTRY, and lgTestCodeCalled.

char TorF ( bool  l)
inline
NORETURN void TotalInsanity ( void  )

TotalInsanity general error handler for something that cannot happen, exits

Definition at line 959 of file service.cpp.

References cdEXIT, DEBUG_ENTRY, ioQQQ, and ShowMe().

Referenced by AbundancesPrt(), multi_arr< realnum, 3 >::alloc(), atmdat_Chianti_readin(), atmdat_lamda_readin(), atmdat_readin(), atom_level3(), atom_levelN(), AtomCSInterp(), Badnell_rec_init(), cdInit(), cdLine(), cdRead(), Chianti_Upsilon(), CO_solve(), collision_strength_VF01(), conorm(), ContSetIntensity(), ConvInitSolution(), ConvIterCheck(), ConvTempEdenIoniz(), CoolCarb(), CoolEvaluate(), CoolIron(), CoolNitr(), CoolOxyg(), CoolSili(), CoolSulf(), CS_PercivalRichards78(), DebyeDeriv(), dense_fabden(), DynaPunch(), DynaPunchTimeDep(), Fe7Lev8(), Fe_10_11_13_cs(), multi_geom< d, MEM_LAYOUT_VAL, lgBOUNDSCHECKVAL >::finalize(), ForbiddenAuls(), getAtNo(), GrainChargeTemp(), GridGatherAfterCloudy(), GridGatherInCloudy(), GrnStdDpth(), H2_Create(), H2_LevelPops(), he_1trans(), helike_quantum_defect(), hmole_reactions(), hmole_step(), t_yield::init_yield(), InterpolateGridCoStar(), InterpolateModel(), InterpolateRectGrid(), ion_recom_calculate(), IonCSInterp(), iso_assign_quantum_numbers(), iso_collapsed_Aul_update(), iso_collapsed_bnl_set(), iso_collide(), iso_create(), iso_get_total_num_levels(), iso_level(), iso_radrecomb_from_cross_section(), iter_end_check(), lgCheckAsserts(), lgConvPres(), lgInputComment(), lgMolecAver(), lgOptimize_do(), lines(), lines_setup(), Nemala_Start(), Opacity_iso_photo_cs(), open_data(), ParseAssertResults(), ParseAtomFeII(), ParseAtomISO(), ParseGrain(), ParseOptimize(), ParsePunch(), ParseSet(), ParseTable(), PresTotCurrent(), prme(), PrtColumns(), PrtComment(), PrtFinal(), punch_average(), PunchDo(), radius_first(), radius_increment(), radius_next(), read_hm05(), rfield_opac_malloc(), RT_continuum_shield_fcn(), RT_OTS_ChkSum(), sprt_wl(), state_get_put(), tbl_fun(), tfidle(), timestep_next(), TlustyInterpolate(), and ZoneStart().

Here is the call graph for this function:

void uncaps ( char *  chCard)

uncaps convert input command line (through eol) to all lowercase

Parameters
chCard- line image as string of characters

Definition at line 312 of file service.cpp.

References DEBUG_ENTRY.

Referenced by atmdat_Chianti_readin(), and atmdat_lamda_readin().

double vfun ( double  damp,
double  x 
)
inline

Definition at line 1540 of file cddefines.h.

References sexp().

Referenced by con_pump_op(), and opfun().

Here is the call graph for this function:

Variable Documentation

const double DEPTH_OFFSET = 1.e-30

this is used to add to depth to prevent div or log of zero

Definition at line 215 of file cddefines.h.

Referenced by ParseSet(), and zero().

const int FILENAME_PATH_LENGTH = 200

FILENAME_PATH_LENGTH is the size of the string that holds the path. The longest string that can be held is one less than this, due to the end end of string sentinel in C. Increase this is a larger string is needed to hold the path on your system

Definition at line 180 of file cddefines.h.

const int FILENAME_PATH_LENGTH_2 = FILENAME_PATH_LENGTH*2
EXTERN double fnzone
const int INPUT_LINE_LENGTH = 200

this is limit to longest line of information that is scanned in, end of line char is actually at this +1, dim of vector is this + 1 all routines that scan in information should use this to dim vars

Definition at line 188 of file cddefines.h.

Referenced by abund_starburst(), AgeCheck(), atmdat_readin(), Badnell_rec_init(), BadStart(), cdEmis(), cdGetLineList(), cdIonFrac(), cdLine(), cdRead(), cdTemp(), ContBandsCreate(), ConvEdenIoniz(), dgaunt(), DrvCaseBHS(), DrvEscP(), DrvHyas(), FeIIBandsCreate(), FillGFF(), GetOptColDen(), GetOptLineInt(), GetOptTemp(), GetStandardHeLines(), grid_do(), H2_He_coll_init(), H2_ParsePunch(), H2_Read_hminus_distribution(), H2_ReadDissprob(), H2_ReadEnergies(), H2_ReadTransprob(), HeCollidSetup(), HelikeTransProbSetup(), HyperfineCreate(), iso_recomb_setup(), lgCheckAsserts(), lgCompileAtmosphereCoStar(), main(), ParseAbsMag(), ParseAbundances(), ParseAge(), ParseAgn(), ParseAssertResults(), ParseAtomCO(), ParseAtomFeII(), ParseAtomH2(), ParseAtomISO(), ParseBackgrd(), ParseBlackbody(), ParseCaseB(), ParseCommands(), ParseCompile(), ParseConstant(), ParseCoronal(), ParseCosmicRays(), ParseCrashDo(), ParseDLaw(), ParseDrive(), ParseDynaTime(), ParseDynaWind(), ParseElement(), ParseExtinguish(), ParseF_nu(), ParseFluc(), ParseGlobule(), ParseGrain(), ParseGrid(), ParseHDEN(), ParseInterp(), ParseIonPar(), ParseMagnet(), ParseMap(), ParseMetal(), ParseNorm(), ParseOptimize(), ParsePlotRangeContin(), ParsePlotRangeOption(), ParsePowerlawContinuum(), ParsePrint(), ParsePunch(), ParseRadius(), ParseRangeOption(), ParseRatio(), ParseSet(), ParseSphere(), ParseState(), ParseStop(), ParseTable(), ParseTest(), ParseTLaw(), ParseTrace(), prt_smooth_predictions(), PrtComment(), PrtLineSum(), ptrcer(), punch_average(), punch_colden(), punch_line(), Punch_Line_RT(), PunLineIntensity(), punResults(), RauchInitializeSub(), read_continuum_mesh(), ReadTable(), StarburstInitialize(), state_get_put(), and writeCloudyDetails().

FILE* ioMAP

Definition at line 10 of file cdinit.cpp.

Referenced by ClosePunchFiles(), iter_end_check(), ParseMap(), ParsePunch(), and PunchFilesInit().

EXTERN FILE* ioPrnErr

we shall write errors to this file, it is set to stderr in cdInit

Definition at line 131 of file cddefines.h.

Referenced by cdInit(), and zero().

EXTERN FILE* ioQQQ

ioQQQ is the file hand to the output file itself, ioQQQ is set to stdout by default in cdInit, and is reset to anything else by calling cdOutp

Definition at line 123 of file cddefines.h.

Referenced by abund_starburst(), AbundancesPrt(), AbundancesSet(), AbundancesTable(), AGN_Hemis(), AnuUnit(), AtlasCompile(), atmdat_2phot_rate(), atmdat_3body(), atmdat_Chianti_readin(), atmdat_dielrec_fe(), atmdat_lamda_readin(), atmdat_outer_shell(), atmdat_readin(), atmol_popsolve(), AtmospheresAvail(), atom_level3(), atom_levelN(), atom_oi_calc(), atom_pop5(), AtomSeqBeryllium(), aver(), Badnell_rec_init(), BadOpen(), badprt(), BadRead(), bangin(), bessel_k0(), bessel_k0_scaled(), bessel_k1(), bessel_k1_scaled(), bessel_y0(), bessel_y1(), bessel_yn(), C6cs123(), Ca20cs123(), caunin(), cdClock(), cdCO_colden(), cdColm(), cdDrive(), cdExecTime(), cdExit(), cdGetLineList(), cdH2_colden(), cdInit(), cdIonFrac(), cdLine(), cdOutp(), cdRead(), cdSPEC(), cdSPEC2(), cdTemp(), ChargTranPun(), ChargTranSumHeat(), ChckFill(), CheckVal(), ChemImportance(), chi2_func(), ChkUnits(), chMolBranch(), ClosePunchFiles(), cloudy(), cnewton(), CO_Colden(), CO_drive(), CO_PopsEmisCool(), CO_solve(), CO_zero(), conorm(), ContBandsCreate(), ContCreateMesh(), ContCreatePointers(), ContNegative(), ContRate(), ContSetIntensity(), ConvBase(), ConvEdenIoniz(), ConvFail(), ConvInitSolution(), ConvIoniz(), ConvPresTempEdenIoniz(), ConvTempEdenIoniz(), CoolCalc(), CoolCarb(), CoolDima(), CoolEvaluate(), CoolIron(), CoolNitr(), CoolOxyg(), coolpr(), CoolSili(), CoolSulf(), CoolSum(), CoStarCompile(), CoStarListModels(), dbg_printf(), dense_fabden(), dense_tabden(), dgaunt(), dmpary(), do_dump_state(), do_restore_state(), DoFSMixing(), Drive_cdLine(), DrvCaseBHS(), DrvEscP(), DrvHyas(), DumpLine(), DynaEndIter(), DynaEndZone(), DynaIonize(), DynaNewStep(), DynaPresChngFactor(), DynaPrtZone(), DynaStartZone(), eden_sum(), ee1(), ellpk(), endFindLevLine(), escmase(), expn(), F2_1(), factorial(), Fe11Lev5(), Fe13Lev5(), Fe26cs123(), Fe2_cooling(), Fe3Lev14(), Fe4Lev12(), Fe7Lev8(), FeII_Colden(), FeII_RT_Make(), FeIIAddLines(), FeIIBandsCreate(), FeIICollRatesBoltzmann(), FeIIContCreate(), FeIICreate(), FeIILevelPops(), FeIIPunchLines(), FeIIPunData(), FeIIRadPress(), ffun(), ffun1(), fill(), FillExtraLymanLine(), FillGFF(), FillJ(), find_arr(), FindIndex(), fndneg(), fndstr(), FreeFreeGaunt(), fudge(), GammaPrtShells(), gauss_legendre(), GetFracPop(), GetLineRec(), GetModel(), GetNextLine(), GetOptColDen(), GetOptLineInt(), GetOptTemp(), GetPotValues(), GetProbDistr_HighLimit(), GetProbDistr_LowLimit(), GetQuote(), GetStandardHeLines(), GrainCharge(), GrainChargeTemp(), GrainCollHeating(), GrainDrift(), GrainDrive(), GrainMakeDiffuse(), GrainsInit(), GrainTemperature(), grid_do(), GridCompile(), gridXspec(), H2_Colden(), H2_CollidRateEvalAll(), H2_CollidRateEvalOne(), H2_CollidRateRead(), H2_Cooling(), H2_Create(), H2_He_coll(), H2_Level_low_matrix(), H2_LevelPops(), H2_ParsePunch(), H2_Prt_Zone(), H2_Punch_line_data(), H2_RadPress(), H2_Read_hminus_distribution(), H2_ReadDissprob(), H2_ReadEnergies(), H2_ReadTransprob(), H2_Reset(), H2_RTMake(), H2_X_coll_rate_evaluate(), H_Einstein_A_lin(), H_Einstein_A_log10(), H_photo_cs_lin(), H_photo_cs_log10(), HCSAR_interp(), HCTIon(), HCTRecom(), He2cs123(), he_1trans(), HeatPunch(), HeCollidSetup(), HeCSInterp(), HelikeTransProbSetup(), highen(), hmole(), hmole_reactions(), hmole_step(), t_ADfA::hpfit(), hv(), Hydcs123(), HydroEinstA(), HydroLevel(), HydroRecCool(), HydroT2Low(), HyperfineCreate(), t_yield::init_yield(), InitEmissivities(), InitGrid(), InitSimPostparse(), input_readarray(), InterpolateGff(), InterpolateGridCoStar(), InterpolateModel(), InterpolateModelCoStar(), InterpolateRectGrid(), inv_ufunct(), ion_photo(), ion_recom_calculate(), ion_recomb(), ion_recombAGN(), ion_solver(), ion_trim(), IonAlumi(), IonBeryl(), IonBoron(), IonCarbo(), IonHelium(), IonIron(), IonMagne(), IonNeon(), IonNitro(), IonOxyge(), IonSilic(), IonSodiu(), ipContEnergy(), ipFindLevLine(), ipLineEnergy(), ipoint(), ipShells(), iso_cascade(), iso_collapsed_bnl_print(), iso_collide(), iso_continuum_lower(), iso_cool(), iso_ionize_recombine(), iso_level(), iso_photo(), iso_prt_pops(), iso_radiative_recomb(), iso_radiative_recomb_effective(), iso_recomb_setup(), iso_solve(), iso_update_num_levels(), iter_end_check(), IterEnd(), IterRestart(), IterStart(), Kurucz79Compile(), lfactorial(), lgCheckAsserts(), lgCompileAtmosphere(), lgCompileAtmosphereCoStar(), lgConvPres(), lgCoolNetConverge(), lgIonizConverg(), lgMolecAver(), lgOptimize_do(), lgValidModel(), ligbar(), LimitSh(), lines(), lines_continuum(), lines_general(), lines_helium(), lines_hydro(), lines_lv1_k_zn(), lines_lv1_li_ne(), lines_lv1_na_ar(), lines_setup(), lines_table(), main(), MakeDeriv(), makelist(), makeplist(), map_do(), MeanIonRadius(), MeanIonVolume(), mie_auxiliary(), mie_cs(), mie_cs_size_distr(), mie_find_slope(), mie_next_line(), mie_read_double(), mie_read_long(), mie_read_mix(), mie_read_opc(), mie_read_realnum(), mie_read_rfi(), mie_read_szd(), mie_repair(), mie_write_opc(), MihalasCompile(), mole_H2_LTE(), MyAssert(), MyCalloc(), MyMalloc(), MyRealloc(), Ne10cs123(), Nemala_Start(), NewGrainBin(), NoNumb(), notein(), oi_level_pops(), opacity_more_memory(), OpacityAddTotal(), OpacityCreateAll(), OpacityCreateReilMan(), open_data(), optimize_func(), optimize_phymir(), ParseAbsMag(), ParseAbundances(), ParseAge(), ParseAgn(), ParseAssertResults(), ParseAtomCO(), ParseAtomFeII(), ParseAtomH2(), ParseAtomISO(), ParseBackgrd(), ParseBlackbody(), ParseCMB(), ParseCommands(), ParseCompile(), ParseConstant(), ParseCoronal(), ParseCosmicRays(), ParseCrashDo(), ParseDLaw(), ParseDont(), ParseDrive(), ParseDynaTime(), ParseDynaWind(), ParseElement(), ParseExtinguish(), ParseF_nu(), ParseFluc(), ParseGlobule(), ParseGrain(), ParseGrid(), ParseHDEN(), ParseInit(), ParseInterp(), ParseIonPar(), ParseMagnet(), ParseMap(), ParseMetal(), ParseNorm(), ParseOptimize(), ParsePlot(), ParsePlotRangeContin(), ParsePlotRangeOption(), ParsePowerlawContinuum(), ParsePrint(), ParsePunch(), ParseRadius(), ParseRangeOption(), ParseRatio(), ParseSet(), ParseSphere(), ParseState(), ParseStop(), ParseTable(), ParseTest(), ParseTLaw(), ParseTrace(), PlanckIntegral(), plot(), pltcon(), pltmap(), pltopc(), pltr(), PntForLine(), PressureChange(), PresTotCurrent(), t_cpu::printDataPath(), prme(), prt_constants(), prt_smooth_predictions(), PrtAllTau(), PrtComment(), PrtContinuum(), PrtElem(), PrtFinal(), PrtHeader(), PrtHydroTrace1(), PrtHydroTrace1a(), PrtLinePres(), PrtLineSum(), PrtMeanIon(), prtmet(), prtPunOpacSummary(), PrtZone(), ptrcer(), punch_average(), punch_colden(), punch_line(), Punch_Line_RT(), punch_opacity(), PunchDo(), punchFITS_SpectraData(), punchFITSfile(), PunchLineData(), PunchLineStuff(), PunResults1Line(), qheat(), qheat_init(), qintr(), t_ADfA::rad_rec(), radius_first(), radius_increment(), radius_next(), RauchCompile(), RauchInitializeSub(), read_continuum_mesh(), read_hm05(), read_whole_line(), ReadAugerData(), ReadTable(), RebinQHeatResults(), RT_DestProb(), RT_diffuse(), RT_line_all(), RT_line_one(), RT_line_one_tau_reset(), RT_line_static(), RT_OTS(), RT_OTS_AddLine(), RT_OTS_ChkSum(), RT_OTS_PrtRate(), RT_OTS_Update(), RT_recom_effic(), RT_tau_inc(), RT_tau_init(), RT_tau_reset(), RTesc_lya_1side(), SanityCheck(), SanityCheckBegin(), ScanProbDistr(), search_limit(), SetLimits(), ShowMe(), size_distr(), solveions(), spline_cubic_set(), Split(), StarburstCompile(), StarburstInitialize(), state_do(), state_get_put(), StuffComment(), t_ADfA::t_ADfA(), t_fe2ovr_la::t_fe2ovr_la(), t_version::t_version(), TeBrent(), TempChange(), TempInterp(), tfidle(), timestep_next(), TlustyCompile(), TotalInsanity(), totlin(), uderiv(), ufunct(), UpdatePot(), ValidateGrid(), vary_input(), warnin(), WernerCompile(), WMBASICCompile(), wr_continue(), XERBLA(), y0b01(), Yfunc(), zero(), and ZoneStart().

EXTERN FILE* ioStdin

Definition at line 125 of file cddefines.h.

Referenced by cdInit(), cdInp(), dgaunt(), DrvCaseBHS(), DrvEscP(), DrvHyas(), main(), ParseDrive(), and ptrcer().

const int ipALUMINIUM = 12

Definition at line 333 of file cddefines.h.

Referenced by AbundancesZero(), ChargTranEval(), CoolAlum(), getAtNo(), IonAlumi(), PrtZone(), and PunchDo().

const int ipARGON = 17

Definition at line 338 of file cddefines.h.

Referenced by AbundancesZero(), ChargTranEval(), CoolArgo(), ForbiddenAuls(), getAtNo(), and IonArgon().

const int ipB_LIKE = 4

Definition at line 314 of file cddefines.h.

const int ipBE_LIKE = 3

Definition at line 313 of file cddefines.h.

Referenced by atmdat_readin().

const int ipBERYLLIUM = 3

Definition at line 324 of file cddefines.h.

Referenced by AbundancesZero(), IonBeryl(), and PrtZone().

const int ipBORON = 4

Definition at line 325 of file cddefines.h.

Referenced by AbundancesZero(), IonBoron(), and PrtZone().

const int ipC_LIKE = 5

Definition at line 315 of file cddefines.h.

const int ipCALCIUM = 19

Definition at line 340 of file cddefines.h.

Referenced by AbundancesZero(), CoolCalc(), getAtNo(), IonCalci(), and lines_lv1_k_zn().

const int ipCARBON = 5
const int ipCHLORINE = 16

Definition at line 337 of file cddefines.h.

Referenced by AbundancesZero(), ChargTranEval(), CO_Init(), CO_solve(), CoolChlo(), getAtNo(), and IonChlor().

const int ipCHROMIUM = 23

Definition at line 344 of file cddefines.h.

Referenced by AbundancesZero(), CoolChro(), getAtNo(), and IonChrom().

const int ipCOBALT = 26

Definition at line 347 of file cddefines.h.

Referenced by AbundancesZero(), getAtNo(), and IonCobal().

const int ipCOPPER = 28

Definition at line 349 of file cddefines.h.

Referenced by AbundancesZero(), getAtNo(), and IonCoppe().

const int ipCRD = -1
const int ipCRDW = 2
const int ipDEST_INCOM = 2

Definition at line 253 of file cddefines.h.

Referenced by RT_DestProb(), and RT_line_static().

const int ipDEST_K2 = 1

Definition at line 251 of file cddefines.h.

Referenced by RT_DestProb(), and RT_line_static().

const int ipDEST_SIMPL = 3

Definition at line 255 of file cddefines.h.

Referenced by RT_DestProb().

const int ipF_LIKE = 8

Definition at line 318 of file cddefines.h.

Referenced by atmdat_readin().

const int ipFLUORINE = 8

Definition at line 329 of file cddefines.h.

Referenced by AbundancesZero(), and IonFluor().

const int ipH1s = 0
const int ipH2p = 2
const int ipH2s = 1
const int ipH3d = 5
const int ipH3p = 4
const int ipH3s = 3
const int ipH4d = 8

Definition at line 267 of file cddefines.h.

Referenced by lines_general(), OpacityAddTotal(), and SanityCheckBegin().

const int ipH4f = 9

Definition at line 268 of file cddefines.h.

Referenced by OpacityAddTotal(), and SanityCheckBegin().

const int ipH4p = 7

Definition at line 266 of file cddefines.h.

Referenced by lines_general(), lines_hydro(), OpacityAddTotal(), PrtAllTau(), and SanityCheckBegin().

const int ipH4s = 6

Definition at line 265 of file cddefines.h.

Referenced by lines_general(), lines_hydro(), OpacityAddTotal(), PrtAllTau(), and SanityCheckBegin().

const int ipH5d = 12

Definition at line 271 of file cddefines.h.

Referenced by SanityCheckBegin().

const int ipH5f = 13

Definition at line 272 of file cddefines.h.

Referenced by SanityCheckBegin().

const int ipH5g = 14

Definition at line 273 of file cddefines.h.

Referenced by SanityCheckBegin().

const int ipH5p = 11

Definition at line 270 of file cddefines.h.

Referenced by lines_hydro(), PrtAllTau(), and SanityCheckBegin().

const int ipH5s = 10

Definition at line 269 of file cddefines.h.

Referenced by SanityCheckBegin().

const int ipH6s = 15

Definition at line 274 of file cddefines.h.

const int ipH_LIKE = 0

these are array indices for isoelectronic sequences, same as element but used for array addressing to make context totally clear

Definition at line 310 of file cddefines.h.

Referenced by atmdat_2phot_rate(), atmdat_2phot_shapefunction(), atom_oi_calc(), t_fe2ovr_la::atoms_fe2ovr(), cdTemp(), ChargTranSumHeat(), chkCaHeps(), collision_strength_VF01(), ContCreatePointers(), ContRate(), ContSetIntensity(), ConvBase(), ConvIterCheck(), ConvTempEdenIoniz(), CoolCalc(), CoolEvaluate(), CS_l_mixing_PS64(), CS_l_mixing_VF01(), CS_PercivalRichards78(), DynaZero(), Fe2_cooling(), FeIILevelPops(), FeIILyaPump(), FillExtraLymanLine(), GammaBnPL(), GrainRateDr(), GrainTemperature(), H21_cm_pops(), t_ADfA::h_coll_str(), H_cross_section(), hlike_radrecomb_from_cross_section(), hmole_step(), hydro_transprob(), HydroCSInterp(), HydroLevel(), HydroRecCool(), HydroRenorm(), HydroT2Low(), InitCoreload(), InitDefaultsPreparse(), InitSimPostparse(), ion_recomb(), ion_solver(), IonHelium(), IonMagne(), IonOxyge(), ipShells(), iso_allocate(), iso_assign_quantum_numbers(), iso_cascade(), iso_collapsed_Aul_update(), iso_collapsed_bnl_print(), iso_collapsed_bnl_set(), iso_collide(), iso_cool(), iso_create(), iso_get_total_num_levels(), iso_ionize_recombine(), iso_level(), iso_prt_pops(), iso_radrecomb_from_cross_section(), iso_solve(), iso_suprathermal(), iso_zero(), IterRestart(), IterStart(), lgCheckAsserts(), lines(), lines_continuum(), lines_general(), lines_helium(), lines_hydro(), lines_lv1_k_zn(), Opacity_iso_photo_cs(), OpacityAddTotal(), OpacityCreateAll(), ParseAssertResults(), ParseAtomISO(), ParseCommands(), ParseCompile(), ParseDont(), ParseElement(), ParsePrint(), ParseTest(), ParseTrace(), PresTotCurrent(), PrtAllTau(), PrtComment(), PrtContinuum(), PrtFinal(), PrtHeader(), PrtHydroTrace1(), PrtHydroTrace1a(), prtmet(), PrtZone(), punch_opacity(), PunchDo(), PunchLineData(), PunchLineStuff(), PunchSpecial(), radius_first(), radius_increment(), radius_next(), RT_DestProb(), RT_diffuse(), RT_line_all(), RT_line_driving(), RT_OTS(), RT_stark(), RT_tau_inc(), RT_tau_init(), RT_tau_reset(), RTesc_lya(), SanityCheckBegin(), state_get_put(), tfidle(), and zero().

const int ipHe1s1S = 0
const int ipHe2p1P = 6
const int ipHe2p3P0 = 3
const int ipHe2p3P1 = 4
const int ipHe2p3P2 = 5
const int ipHe2s1S = 2
const int ipHe2s3S = 1
const int ipHe3d1D = 11

Definition at line 294 of file cddefines.h.

Referenced by AGN_He1_CS(), and PrtZone().

const int ipHe3d3D = 10

Definition at line 293 of file cddefines.h.

Referenced by AGN_He1_CS(), lines_helium(), PrtAllTau(), and PrtZone().

const int ipHe3p1P = 12

Definition at line 295 of file cddefines.h.

Referenced by PrtAllTau(), and PrtZone().

const int ipHe3p3P = 9

Definition at line 292 of file cddefines.h.

Referenced by AGN_He1_CS(), lines_helium(), PrtAllTau(), and PrtZone().

const int ipHe3s1S = 8

Definition at line 291 of file cddefines.h.

Referenced by PrtZone().

const int ipHe3s3S = 7

Definition at line 290 of file cddefines.h.

Referenced by AGN_He1_CS(), ForbiddenAuls(), he_1trans(), lines_helium(), and PrtZone().

const int ipHe4d1D = 17

Definition at line 302 of file cddefines.h.

const int ipHe4d3D = 16

Definition at line 301 of file cddefines.h.

Referenced by lines_helium().

const int ipHe4f1F = 19

Definition at line 304 of file cddefines.h.

const int ipHe4f3F = 18

Definition at line 303 of file cddefines.h.

const int ipHe4p1P = 20

Definition at line 305 of file cddefines.h.

const int ipHe4p3P = 15

Definition at line 300 of file cddefines.h.

Referenced by lines_helium().

const int ipHe4s1S = 14

Definition at line 299 of file cddefines.h.

const int ipHe4s3S = 13

Definition at line 298 of file cddefines.h.

Referenced by he_1trans(), and lines_helium().

const int ipHE_LIKE = 1
const int ipHELIUM = 1

Definition at line 322 of file cddefines.h.

Referenced by AbundancesSet(), AbundancesZero(), AGN_Hemis(), AtomCSInterp(), Badnell_rec_init(), ChargeTransferUpdate(), ChargTranEval(), ChargTranPun(), ChargTranSumHeat(), CO_Init(), CO_PopsEmisCool(), ContCreatePointers(), ContSetIntensity(), ConvBase(), CoolCarb(), CoolEvaluate(), CoolOxyg(), cross_section(), eden_sum(), FillExtraLymanLine(), ForbiddenAuls(), getAtNo(), GetStandardHeLines(), GrainDrift(), GrainRateDr(), H2_PunchDo(), H2_X_coll_rate_evaluate(), he_1trans(), He_cross_section(), HeCollidSetup(), HeCSInterp(), helike_energy(), helike_quantum_defect(), HelikeTransProbSetup(), hmole_reactions(), hmole_step(), t_yield::init_yield(), InitCoreload(), InitSimPostparse(), ion_recomb(), ion_solver(), ion_trim(), IonCSInterp(), IonHelium(), iso_allocate(), iso_assign_quantum_numbers(), iso_cascade(), iso_collapsed_bnl_set(), iso_collide(), iso_continuum_lower(), iso_create(), iso_ionize_recombine(), iso_level(), iso_radiative_recomb(), iso_solve(), iso_zero(), IterRestart(), lgCheckAsserts(), lines(), lines_general(), lines_helium(), lines_hydro(), lines_lv1_li_ne(), lines_molecules(), map_do(), OpacityAddTotal(), OpacityCreateAll(), ParseAssertResults(), ParseElement(), ParsePrint(), ParsePunch(), PressureChange(), PrtAllTau(), PrtComment(), PrtFinal(), PrtHeader(), PrtMeanIon(), PrtZone(), punch_opacity(), PunchDo(), radius_increment(), radius_next(), RT_diffuse(), RT_OTS(), RT_tau_init(), SanityCheckBegin(), and zero().

const int ipHYDROGEN = 0

these are indices for some elements, on the C scale

Definition at line 321 of file cddefines.h.

Referenced by AbundancesPrt(), AbundancesSet(), AbundancesZero(), AGN_Hemis(), atom_oi_calc(), t_fe2ovr_la::atoms_fe2ovr(), Badnell_rec_init(), cdColm(), cdIonFrac(), cdTemp(), ChargeTransferUpdate(), ChargTranSumHeat(), chkCaHeps(), CO_drive(), CO_Init(), CO_solve(), conorm(), ContCreatePointers(), ContRate(), ContSetIntensity(), ConvBase(), ConvEdenIoniz(), ConvFail(), ConvInitSolution(), ConvPresTempEdenIoniz(), ConvTempEdenIoniz(), CoolCalc(), CoolCarb(), CoolChlo(), CoolEvaluate(), CoolIron(), CoolNick(), CoolOxyg(), CoolSili(), CoolSulf(), crnurate(), DynaCreateArrays(), DynaEndIter(), DynaIonize(), DynaNewStep(), DynaPresChngFactor(), DynaPrtZone(), DynaPunch(), DynaPunchTimeDep(), DynaSaveLast(), DynaStartZone(), eden_sum(), Fe2_cooling(), FeIILevelPops(), FeIILyaPump(), getAtNo(), GrainChargeTemp(), GrainCollHeating(), GrainDrift(), GrainDrive(), GrainMakeDiffuse(), GrainRateDr(), GrainsInit(), GrainTemperature(), GrainUpdateRadius1(), GrnStdDpth(), GrnVryDpth(), H21_cm_pops(), H2_Cooling(), H2_LevelPops(), H2_PunchDo(), H2_X_coll_rate_evaluate(), t_ADfA::h_coll_str(), he_1trans(), helike_quantum_defect(), highen(), hmole(), hmole_step(), Hydcs123(), HydroCSInterp(), HydroLevel(), HydroRenorm(), HydroT2Low(), t_yield::init_yield(), InitBinAugerData(), InitCoreload(), InitDefaultsPreparse(), InitSimPostparse(), ion_recom_calculate(), ion_recomb(), ion_recombAGN(), ion_solver(), ion_trim(), IonMagne(), IonOxyge(), IonSilic(), iso_collapsed_bnl_set(), iso_collide(), iso_continuum_lower(), iso_cool(), iso_ionize_recombine(), iso_level(), iso_photo(), iso_solve(), iso_suprathermal(), iso_zero(), iter_end_check(), IterRestart(), IterStart(), lgCheckAsserts(), lgConvPres(), lgMolecAver(), lines_continuum(), lines_general(), lines_helium(), lines_hydro(), lines_lv1_li_ne(), lines_molecules(), map_do(), MeanInc(), mie_read_form(), mole_H2_form(), newspecies(), OpacityAddTotal(), OpacityCreateAll(), pah1_fun(), ParseAtomISO(), ParseCommands(), ParseDLaw(), ParseElement(), ParseFluc(), ParseGlobule(), ParseHDEN(), ParsePrint(), ParsePunch(), pltopc(), PressureChange(), PresTotCurrent(), prt_smooth_predictions(), PrtAllTau(), PrtColumns(), PrtComment(), PrtContinuum(), PrtFinal(), PrtHeader(), PrtHydroTrace1(), PrtHydroTrace1a(), PrtMeanIon(), PrtZone(), punch_opacity(), PunchDo(), PunchLineData(), PunchSpecial(), radius_first(), radius_increment(), radius_next(), RT_DestProb(), RT_diffuse(), RT_line_all(), RT_OTS(), RT_tau_init(), SanityCheckBegin(), state_get_put(), tfidle(), and zero().

const int ipIRON = 25
const int ipLI_LIKE = 2

Definition at line 312 of file cddefines.h.

Referenced by atmdat_readin().

const int ipLITHIUM = 2
const int ipLY_A = -2
const int ipMAGNESIUM = 11
const int ipMANGANESE = 24

Definition at line 345 of file cddefines.h.

Referenced by AbundancesZero(), ChargTranEval(), getAtNo(), and IonManga().

const int ipN_LIKE = 6

Definition at line 316 of file cddefines.h.

const int ipNEON = 9
const int ipNICKEL = 27

Definition at line 348 of file cddefines.h.

Referenced by AbundancesZero(), ChargTranEval(), getAtNo(), and IonNicke().

const int ipNITROGEN = 6
const int ipO_LIKE = 7

Definition at line 317 of file cddefines.h.

const int ipOXYGEN = 7
const int ipPHOSPHORUS = 14

Definition at line 335 of file cddefines.h.

Referenced by AbundancesZero(), ChargTranEval(), CoolPhos(), getAtNo(), and IonPhosi().

const int ipPOTASSIUM = 18

Definition at line 339 of file cddefines.h.

Referenced by AbundancesZero(), ChargTranEval(), getAtNo(), IonPotas(), and OpacityCreateAll().

const int ipPRD = 1

with the above, the total radiative rec per ion is iso.RadRecomb[ipISO][nelem][n][ipRecRad]* iso.RadRecomb[ipISO][nelem][n][ipRecNetEsc]*dense.eden;

Definition at line 243 of file cddefines.h.

Referenced by emislines_fillredis(), lines_setup(), ParseAtomFeII(), ParseAtomISO(), RT_continuum_shield_fcn(), RT_line_static(), and zero().

const int ipRecEsc = 2
const int ipRecNetEsc = 1
const int ipRecRad = 0
const int ipSCANDIUM = 20

Definition at line 341 of file cddefines.h.

Referenced by AbundancesZero(), CoolScan(), getAtNo(), and IonScand().

const int ipSILICON = 13
const int ipSODIUM = 10

Definition at line 331 of file cddefines.h.

Referenced by AbundancesZero(), ChargTranEval(), CoolSodi(), getAtNo(), IonSodiu(), and PunchDo().

const int ipSULPHUR = 15
const int ipTITANIUM = 21

Definition at line 342 of file cddefines.h.

Referenced by AbundancesZero(), ChargTranEval(), CoolTita(), getAtNo(), and IonTitan().

const int ipVANADIUM = 22

Definition at line 343 of file cddefines.h.

Referenced by AbundancesZero(), CoolVana(), getAtNo(), and IonVanad().

const int ipZINC = 29

Definition at line 350 of file cddefines.h.

Referenced by AbundancesZero(), getAtNo(), helike_energy(), and IonZinc().

EXTERN long int iteration
EXTERN bool lgAbort
EXTERN bool lgPrnErr

this is flag saying whether to print errors to standard error output

Definition at line 146 of file cddefines.h.

Referenced by cdInit(), ParsePrint(), and zero().

EXTERN bool lgTestCodeCalled

flag lgTestIt turned on if routine TestCode ever called, only generates comment that test code is in place

Definition at line 138 of file cddefines.h.

Referenced by PrtComment(), TestCode(), and zero().

EXTERN bool lgTestCodeEnabled

flag lgTestOn set true with SET TEST command for some test code to be run somewhere

Definition at line 142 of file cddefines.h.

Referenced by ParseSet(), and zero().

const int LIMELM = 30

This is the number of elements included in the code, is used to set lengths of many vectors

Definition at line 192 of file cddefines.h.

Referenced by abund_starburst(), AbundancesPrt(), AbundancesSet(), AbundancesZero(), atmdat_3body(), atmdat_DielSupres(), atmdat_readin(), atmol_popsolve(), Badnell_DR_rate_eval(), Badnell_rec_init(), Badnell_RR_rate_eval(), cdColm(), cdIonFrac(), cdTemp(), ChargeTransferUpdate(), ChargTranEval(), ChargTranPun(), ChargTranSumHeat(), chIonLbl(), CO_drive(), CO_Init(), CO_solve(), collision_strength_VF01(), ContCreatePointers(), ContSetIntensity(), ConvBase(), ConvInitSolution(), ConvIterCheck(), CoolEvaluate(), DynaCreateArrays(), DynaIonize(), DynaNewStep(), DynaSaveLast(), DynaStartZone(), eden_sum(), FillGFF(), GammaBnPL(), GetElem(), GetStandardHeLines(), GrainChargeTemp(), GrainChrgTransferRates(), GrainCollHeating(), GrainDrive(), GrainElecEmis1(), GrainElecRecomb1(), GrainScreen(), GrainsInit(), GrainUpdateRadius1(), GrainZero(), H2_Create(), HCTIon(), HCTRecom(), HeatPunch(), HeatSum(), HeatZero(), HeCollidSetup(), helike_quantum_defect(), HelikeTransProbSetup(), highen(), HighestIonStage(), hmole_reactions(), hmole_step(), Hydcs123(), HydroLevel(), HydroT2Low(), t_yield::init_yield(), InitBinAugerData(), InitCoreload(), InitDefaultsPreparse(), InitSimPostparse(), ion_collis(), ion_photo(), ion_recom_calculate(), ion_recomb(), ion_recombAGN(), ion_solver(), ion_trim(), IonCSInterp(), IonIron(), ipFindLevLine(), ipShells(), iso_allocate(), iso_assign_quantum_numbers(), iso_collide(), iso_continuum_lower(), iso_cool(), iso_create(), iso_ionize_recombine(), iso_level(), iso_photo(), iso_put_error(), iso_radiative_recomb(), iso_recomb_malloc(), iso_recomb_setup(), iso_satellite(), iso_satellite_update(), iso_solve(), iso_suprathermal(), iso_zero(), IterRestart(), IterStart(), lgIonizConverg(), lines(), lines_general(), lines_helium(), lines_hydro(), lines_setup(), MakeHCTData(), map_do(), MeanInc(), MeanZero(), mie_read_form(), mie_read_mix(), mie_read_opc(), mie_read_rfi(), mie_write_form(), mie_write_opc(), NewChargeData(), newspecies(), OpacityAdd1Element(), OpacityAddTotal(), OpacityCreate1Element(), OpacityCreateAll(), ParseAbundances(), ParseAtomISO(), ParseCompile(), ParseDrive(), ParseElement(), ParseMetal(), ParsePrint(), ParsePunch(), PressureChange(), PresTotCurrent(), prt_smooth_predictions(), PrtColumns(), PrtComment(), PrtLinePres(), PrtMeanIon(), prtmet(), PrtZone(), punch_opacity(), PunchDo(), PunchGaunts(), PunchLineData(), PunchLineStuff(), punResults(), radius_increment(), radius_next(), ReadAugerData(), ReturnGrainBins(), rfield_opac_malloc(), RT_diffuse(), RT_line_all(), RT_line_driving(), RT_OTS(), RT_stark(), RT_tau_inc(), RT_tau_init(), RT_tau_reset(), RTesc_lya(), SanityCheckBegin(), state_get_put(), t_yield::t_yield(), tfidle(), th85rate_co(), UpdatePot1(), UpdateRecomZ0(), velset(), and zero().

const int N_H_MOLEC = 8
const int NHYDRO_MAX_LEVEL = 401

following is real limit to how many levels can be computed for model hydrogen atom - this has the one extra included, so at most iso.numLevels_max[ipH_LIKE] can be NHYDRO_MAX_LEVEL-1 and vectors should be dim NHYDRO_MAX_LEVEL

Definition at line 200 of file cddefines.h.

Referenced by t_ADfA::H_rad_rec(), t_ADfA::hpfit(), iso_radiative_recomb(), iso_recomb_setup(), Opacity_iso_photo_cs(), ParseAtomISO(), and t_ADfA::t_ADfA().

const int NISO = 2
EXTERN long int nSimThisCoreload

number of simulations done with this coreload - 1 for first sim

Definition at line 160 of file cddefines.h.

Referenced by cdDrive(), InitCoreload(), and ParsePunch().

EXTERN long int nzone

nzone is zone counter, incremented in routine cloudy is zero during search phase, 1 for first zone at illuminated face

Definition at line 150 of file cddefines.h.

Referenced by AgeCheck(), AGN_Hemis(), t_fe2ovr_la::atoms_fe2ovr(), cdDepth_depth(), cdnZone(), cdPressure_depth(), cloudy(), CO_drive(), CO_solve(), ContNegative(), ConvBase(), ConvEdenIoniz(), ConvFail(), ConvIterCheck(), ConvPresTempEdenIoniz(), ConvTempEdenIoniz(), CoolCarb(), CoolDima(), CoolEvaluate(), dmpary(), DynaIonize(), DynaNewStep(), DynaPresChngFactor(), DynaPrtZone(), DynaSaveLast(), DynaStartZone(), eden_sum(), escmase(), Fe2_cooling(), FeIIAddLines(), FeIIRadPress(), fndstr(), GetProbDistr_HighLimit(), GetProbDistr_LowLimit(), gett2(), gett2o3(), GrainChargeTemp(), GrainDrive(), GrainUpdateRadius2(), H2_Cooling(), H2_Level_low_matrix(), H2_LevelPops(), H2_RT_tau_inc(), hmole(), hmole_reactions(), hmole_step(), ion_solver(), ion_trim(), IonHelium(), IonMagne(), IonNitro(), IonOxyge(), IonSilic(), iso_cool(), iso_level(), iso_photo(), iso_solve(), iter_end_check(), lgCheckAsserts(), lgConvPres(), lgMolecAver(), lines_continuum(), lines_hydro(), main(), MakeDeriv(), map_do(), MyAssert(), NewChargeData(), OpacityAddTotal(), pltcon(), PressureChange(), PresTotCurrent(), PrtComment(), PrtFinal(), PrtLineSum(), PrtZone(), punch_line(), PunchDo(), PunLineIntensity(), PutHetCol(), qheat(), radius_first(), radius_increment(), radius_next(), RT_DestProb(), RT_diffuse(), RT_line_all(), RT_line_one(), RT_line_static(), RT_OTS(), RT_OTS_Update(), RT_stark(), zero(), and ZoneStart().

const double SEXP_LIMIT = 84.

this is -ln of smallest number sexp can handle

Definition at line 1500 of file cddefines.h.

Referenced by RT_diffuse(), sexp(), and tfidle().

const double ZeroNum

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

Referenced by ParseCrashDo().


Generated for cloudy by doxygen 1.8.1.2