Cloudy
Spectral Synthesis Code for Astrophysics
|
#include "cddefines.h"
#include "input.h"
#include "conv.h"
#include "optimize.h"
#include "iso.h"
#include "called.h"
#include "atmdat.h"
#include "hcmap.h"
#include "thermal.h"
#include "pressure.h"
#include "struc.h"
#include "wind.h"
#include "h2.h"
#include "colden.h"
#include "dense.h"
#include "lines.h"
#include "secondaries.h"
#include "radius.h"
#include "version.h"
#include "hmi.h"
#include "prt.h"
#include "grainvar.h"
#include "cddrive.h"
#include "elementnames.h"
#include "monitor_results.h"
#include "parser.h"
#include "mole.h"
#include "rfield.h"
#include "lines_service.h"
#include "service.h"
#include "generic_state.h"
Functions | |
void | PrtOneMonitor (FILE *ioMONITOR, const string &chAssertType, const string &chAssertLineLabel, const realnum wavelength, const int iLineType, const double PredQuan, const char chAssertLimit, const double AssertQuantity, const double RelError, const double AssertError, const bool lg1OK, const bool lgQuantityLog, const bool lgFound) |
double | ForcePass (char chAssertLimit1) |
void | InitMonitorResults (void) |
void | ParseMonitorResults (Parser &p) |
double | get_error_ratio (double pred, double assert) |
bool | lgCheckMonitors (FILE *ioMONITOR) |
STATIC void | prtLineType (FILE *ioMONITOR, const int iLineType) |
Variables | |
bool | lgMonitorsOK |
bool | lgBigBotch |
bool | lgPrtSciNot |
t_monitorresults | MonitorResults |
static bool | lgInitDone =false |
static bool | lgSpaceAllocated =false |
static const int | NASSERTS = 450 |
static realnum | ErrorDefault |
static realnum | ErrorDefaultPerformance |
static vector< string > | chAssertLineLabel |
static vector< LineID > | lineids |
static vector< int > | iLineType |
static vector< vector< TransitionProxy > * > | assertBlends |
static vector< char > | chAssertLimit |
static vector< string > | chAssertType |
static vector< double > | AssertQuantity |
static vector< double > | AssertQuantity2 |
static vector< double > | AssertError |
static multi_arr< double, 2 > | Param |
static vector< bool > | lgQuantityLog |
static long | nAsserts =0 |
static vector< realnum > | wavelength |
static vector< string > | strAssertSpecies |
|
inline |
References TotalInsanity().
Referenced by lgCheckMonitors().
|
inline |
void InitMonitorResults | ( | void | ) |
must be called before rest, initializes assert variables
References ErrorDefault, ErrorDefaultPerformance, lgInitDone, and nAsserts.
Referenced by ParseCommands().
bool lgCheckMonitors | ( | FILE * | ioMONITORS | ) |
lgCheckMonitors
*ioMONITORS | this is unit we will write output to |
References ASSERT, AssertError, AssertQuantity, AssertQuantity2, atmdat, called, cap4(), caps(), cdColm(), cdEXIT, cdH2_colden(), cdIonFrac(), cdLine(), cdLine_ip(), cdTemp(), chAssertLimit, chAssertLineLabel, chAssertType, chIonLbl(), colden, conv, cpu, DEBUG_ENTRY, dense, qStateConstProxy::DepartCoef(), EXIT_FAILURE, ForcePass(), fp_equal(), fprintf(), get_error_ratio(), getLevelsGeneric(), gv, h2, hcmap, hmi, iLineType, Singleton< t_version >::Inst(), ioQQQ, ipCOL_HTOT, ipH_LIKE, ipHE_LIKE, ipHELIUM, ipHYDROGEN, ipLine, iso_sp, iteration, LEVEL_INACTIVE, molezone::levels, lgBigBotch, lgMonitorsOK, lgPrtSciNot, lgQuantityLog, lineids, lines_table(), LineSave, max(), MAX2, MIN2, MonitorResults, NASSERTS, nAsserts, NCHLAB, NULL, null_molezone, nzone, optimize, Param, POW2, powpq(), pressure, prt, prt_line_err(), t_wavl::prt_wl(), PrtOneMonitor(), radius, rfield, SDIV(), secondaries, ShowMe(), qList::size(), qStateConstProxy::status(), strAssertSpecies, struc, t_vac(), thermal, TotalInsanity(), wavelength, WavlenErrorGet(), t_wavl::wavlVac(), and wind.
Referenced by cloudy(), and SaveDo().
void ParseMonitorResults | ( | Parser & | p | ) |
References ASSERT, assertBlends, AssertError, AssertQuantity, AssertQuantity2, blends, cdEXIT, chAssertLimit, chAssertLineLabel, chAssertType, LineID::chLabel(), DEBUG_ENTRY, elementnames, ErrorDefault, ErrorDefaultPerformance, EXIT_FAILURE, exp10(), Parser::FFmtRead(), fprintf(), Parser::GetElem(), Parser::getLineID(), Parser::GetParam(), Parser::GetQuote(), Parser::GetRange(), iLineType, input_readvector(), ioQQQ, ipH_LIKE, ipHE_LIKE, ipHELIUM, Parser::lgEOL(), lgInitDone, lgQuantityLog, lgSpaceAllocated, lineids, NASSERTS, nAsserts, NCHLAB, Parser::nMatch(), Parser::nMatchErase(), Parser::NoNumb(), NULL, optimize, Param, Parser::PrintLine(), SMALLDOUBLE, SMALLFLOAT, strAssertSpecies, Parser::StringError(), trimTrailingWhiteSpace(), wavelength, LineID::wavlVac(), and t_wavl::wavlVac().
Referenced by ParseCommands(), and ParseTest().
STATIC void prtLineType | ( | FILE * | ioMONITOR, |
const int | iLineType ) |
References cdEXIT, EXIT_FAILURE, fprintf(), iLineType, and STATIC.
Referenced by PrtOneMonitor().
void PrtOneMonitor | ( | FILE * | ioMONITOR, |
const string & | chAssertType, | ||
const string & | chAssertLineLabel, | ||
const realnum | wavelength, | ||
const int | iLineType, | ||
const double | PredQuan, | ||
const char | chAssertLimit, | ||
const double | AssertQuantity, | ||
const double | RelError, | ||
const double | AssertError, | ||
const bool | lg1OK, | ||
const bool | lgQuantityLog, | ||
const bool | lgFound ) |
References AssertError, AssertQuantity, chAssertLimit, chAssertLineLabel, chAssertType, DEBUG_ENTRY, fprintf(), iLineType, lgBigBotch, lgPrtSciNot, lgQuantityLog, LineSave, MAX2, NCHLAB, t_wavl::prt_wl(), prtLineType(), SDIV(), SMALLDOUBLE, t_vac(), and wavelength.
Referenced by lgCheckMonitors().
|
static |
Referenced by ParseMonitorResults().
|
static |
Referenced by lgCheckMonitors(), ParseMonitorResults(), and PrtOneMonitor().
|
static |
Referenced by lgCheckMonitors(), ParseMonitorResults(), and PrtOneMonitor().
|
static |
Referenced by lgCheckMonitors(), and ParseMonitorResults().
|
static |
Referenced by lgCheckMonitors(), ParseMonitorResults(), and PrtOneMonitor().
|
static |
Referenced by lgCheckMonitors(), ParseMonitorResults(), and PrtOneMonitor().
|
static |
Referenced by lgCheckMonitors(), ParseMonitorResults(), and PrtOneMonitor().
|
static |
Referenced by InitMonitorResults(), and ParseMonitorResults().
|
static |
Referenced by InitMonitorResults(), and ParseMonitorResults().
|
static |
Referenced by lgCheckMonitors(), ParseMonitorResults(), prtLineType(), and PrtOneMonitor().
bool lgBigBotch |
Referenced by cdInit(), cdMain(), lgCheckMonitors(), and PrtOneMonitor().
|
static |
Referenced by InitMonitorResults(), and ParseMonitorResults().
bool lgMonitorsOK |
these flags are set in lgCheckMonitors
Referenced by cdInit(), cdMain(), and lgCheckMonitors().
bool lgPrtSciNot |
Referenced by cdInit(), lgCheckMonitors(), ParseSet(), and PrtOneMonitor().
|
static |
Referenced by lgCheckMonitors(), ParseMonitorResults(), and PrtOneMonitor().
|
static |
Referenced by ParseMonitorResults().
|
static |
Referenced by cdColm(), cdGetLineList(), lgCheckMonitors(), lines_table(), parse_save_line(), ParseMonitorResults(), ParsePrtLineSum(), PrtLineSum(), and save_line().
t_monitorresults MonitorResults |
Referenced by InitSimPostparse(), and lgCheckMonitors().
|
static |
Referenced by lgCheckMonitors(), and ParseMonitorResults().
|
static |
Referenced by InitMonitorResults(), lgCheckMonitors(), and ParseMonitorResults().
|
static |
Referenced by lgCheckMonitors(), and ParseMonitorResults().
|
static |
Referenced by lgCheckMonitors(), and ParseMonitorResults().
|
static |