cloudy
trunk
|
#include "cddefines.h"
#include "dense.h"
#include "elementnames.h"
#include "continuum.h"
#include "rfield.h"
#include "iso.h"
#include "opacity.h"
#include "hydro_bauman.h"
#include "heavy.h"
#include "trace.h"
#include "freebound.h"
#include "integrate.h"
#include "atmdat_gaunt.h"
#include "cloudy.h"
Go to the source code of this file.
Functions | |
STATIC void | SanityCheckBegin () |
STATIC void | SanityCheckFinal () |
STATIC void | SanityCheckGaunt (long Z, double loggam2, double logu, double refval, double relerr) |
void | SanityCheck (const char *chJob) |
void SanityCheck | ( | const char * | chJob | ) |
SanityCheck confirm that various parts of the code still work
*chJob | is either "begin" or "final" begin is before code starts up final is after model is complete |
Definition at line 52 of file sanity_check.cpp.
References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, fprintf(), ioQQQ, SanityCheckBegin(), and SanityCheckFinal().
Referenced by cloudy().
STATIC void SanityCheckBegin | ( | ) |
Definition at line 76 of file sanity_check.cpp.
References t_mesh::anu(), ASSERT, EmissionProxy::Aul(), t_iso_sp::BranchRatio, cdEXIT, t_mesh::CheckMesh(), t_elementnames::chElementSym, t_isoCTRL::chISO, continuum, DEBUG_ENTRY, dense, e1(), e2(), elementnames, TransitionProxy::Emis(), EXIT_FAILURE, expn(), t_iso_sp::fb, fp_equal(), fprintf(), getrf_wrapper(), getrs_wrapper(), H_Einstein_A(), H_photo_cs(), Heavy, ioQQQ, t_opac::ipElement, ipH1s, ipH2p, ipH_LIKE, ipHe1s1S, ipHE_LIKE, t_Heavy::ipHeavy, ipHELIUM, ipHYDROGEN, iso_ctrl, iso_recomb_check(), iso_sp, iso_state_lifetime(), t_continuum::KshellLimit, L_, t_opac::lgCaseB, t_dense::lgElmtOn, t_isoCTRL::lgNoRecombInterp, t_opac::lgRedoStatic, t_trace::lgTrace, LIMELM, MALLOC, max(), MAX2, MIN2, N_, t_iso_sp::n_HighestResolved_max, t_iso_sp::nCollapsed_max, t_rfield::nflux, NISO, t_Heavy::nsShells, t_iso_sp::numLevels_max, opac, t_opac::opacity_abs, OpacityAdd1Element(), OpacityZero(), t_opac::OpacStack, t_opac::OpacStatic, phycon, qg32(), t_iso_sp::QuantumNumbers2Index, rfield, S, safe_div(), SanityCheckGaunt(), ShowMe(), spsort(), t_phycon::sqrte, t_iso_sp::st, Integrator< Integrand, Method >::sum(), t_phycon::te, trace, t_iso_sp::trans(), t_mesh::ValidateEdges(), and t_dense::xIonDense.
Referenced by SanityCheck().
STATIC void SanityCheckFinal | ( | ) |
Definition at line 71 of file sanity_check.cpp.
Referenced by SanityCheck().
STATIC void SanityCheckGaunt | ( | long | Z, |
double | loggam2, | ||
double | logu, | ||
double | refval, | ||
double | relerr | ||
) |
Definition at line 811 of file sanity_check.cpp.
References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, exp10(), fprintf(), t_gaunt::gauntff(), Singleton< t_gaunt >::Inst(), ioQQQ, and pow2().
Referenced by SanityCheckBegin().