Cloudy
Spectral Synthesis Code for Astrophysics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
monitor_results.cpp File Reference
#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"
Include dependency graph for monitor_results.cpp:

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< LineIDlineids
 
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< realnumwavelength
 
static vector< string > strAssertSpecies
 

Function Documentation

double ForcePass ( char  chAssertLimit1)
inline

References TotalInsanity().

Referenced by lgCheckMonitors().

Here is the call graph for this function:

double get_error_ratio ( double  pred,
double  assert 
)
inline

References safe_div().

Referenced by lgCheckMonitors().

Here is the call graph for this function:

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

Parameters
*ioMONITORSthis is unit we will write output to

References ASSERT, AssertError, AssertQuantity, AssertQuantity2, atmdat, GrainVar::bin, called, cap4(), caps(), t_atmdat::CaseBWlHeI, cdColm(), cdEXIT, cdH2_colden(), cdIonFrac(), cdLine(), cdLine_ip(), cdTemp(), chAssertLimit, chAssertLineLabel, chAssertType, chIonLbl(), t_hcmap::cmap, colden, t_colden::colden, conv, cpu, t_secondaries::csupra, t_thermal::ctot, DEBUG_ENTRY, dense, qStateConstProxy::DepartCoef(), t_radius::depth, t_radius::depth_x_fillfac, t_dense::eden, t_rfield::EnergyDiffCont, t_rfield::EnergyIncidCont, EXIT_FAILURE, ForcePass(), fp_equal(), fprintf(), get_error_ratio(), getLevelsGeneric(), gv, h2, hcmap, t_hcmap::hmap, hmi, t_hmi::hmidep, t_thermal::htot, t_cpu::i(), iLineType, Singleton< t_version >::Inst(), ioQQQ, ipCOL_HTOT, ipH_LIKE, ipHE_LIKE, ipHELIUM, ipHYDROGEN, ipLine, iso_sp, iteration, LEVEL_INACTIVE, molezone::levels, lgBigBotch, t_dense::lgElmtOn, lgMonitorsOK, t_cpu_i::lgMPI(), t_optimize::lgOptimize, t_prt::lgPrintTime, lgPrtSciNot, lgQuantityLog, t_version::lgRelease, t_called::lgTalk, lineids, t_LineSave::lines, lines_table(), LineSave, MAX2, MIN2, t_iso_sp::n_HighestResolved_max, NASSERTS, nAsserts, NCHLAB, t_hcmap::nmap, t_hcmap::nMapAlloc, t_LineSave::nsum, t_monitorresults::nSumErrorCaseMonitor, t_conv::nTotalIoniz, t_conv::nTotalIoniz_start, NULL, null_molezone, t_iso_sp::numLevels_local, nzone, optimize, diatomics::ortho_density, diatomics::para_density, POW2, powpq(), pressure, t_struc::pressure, prt, prt_line_err(), prt_wl(), PrtOneMonitor(), t_pressure::RadBetaMax, radius, t_radius::Radius, GrainVar::rate_h2_form_grains_used_total, rfield, SDIV(), secondaries, ShowMe(), t_LineSave::sig_figs, t_LineSave::sig_figs_max, qList::size(), t_iso_sp::st, qStateConstProxy::status(), strAssertSpecies, struc, t_monitorresults::SumErrorCaseMonitor, t_hcmap::temap, t_struc::testr, thermal, TotalInsanity(), wavelength, t_atmdat::WaveLengthCaseB, WavlenErrorGet(), wind, Wind::windv, t_LineSave::wl_length, and t_dense::xIonDense.

Referenced by cloudy(), and SaveDo().

Here is the call graph for this function:

STATIC void prtLineType ( FILE *  ioMONITOR,
const int  iLineType 
)

References cdEXIT, EXIT_FAILURE, and fprintf().

Referenced by PrtOneMonitor().

Here is the call graph for this function:

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 AssertQuantity, DEBUG_ENTRY, fprintf(), lgBigBotch, lgPrtSciNot, LineSave, MAX2, NCHLAB, prt_wl(), prtLineType(), SDIV(), SMALLDOUBLE, and t_LineSave::wl_length.

Referenced by lgCheckMonitors().

Here is the call graph for this function:

Variable Documentation

vector<vector<TransitionProxy>*> assertBlends
static

Referenced by ParseMonitorResults().

vector<double> AssertError
static
vector<double> AssertQuantity
static
vector<double> AssertQuantity2
static
vector<char> chAssertLimit
static
vector<string> chAssertLineLabel
static
vector<string> chAssertType
static
realnum ErrorDefault
static
realnum ErrorDefaultPerformance
static
vector<int> iLineType
static
bool lgBigBotch
bool lgInitDone =false
static
bool lgMonitorsOK

these flags are set in lgCheckMonitors

Referenced by cdInit(), cdMain(), and lgCheckMonitors().

bool lgPrtSciNot
vector<bool> lgQuantityLog
static
bool lgSpaceAllocated =false
static

Referenced by ParseMonitorResults().

t_monitorresults MonitorResults

Referenced by InitSimPostparse().

const int NASSERTS = 450
static
long nAsserts =0
static
multi_arr<double,2> Param
static
vector<string> strAssertSpecies
static