Cloudy
Spectral Synthesis Code for Astrophysics
Loading...
Searching...
No Matches
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

◆ ForcePass()

double ForcePass ( char chAssertLimit1)
inline

References TotalInsanity().

Referenced by lgCheckMonitors().

Here is the call graph for this function:

◆ get_error_ratio()

double get_error_ratio ( double pred,
double assert )
inline

References safe_div().

Referenced by lgCheckMonitors().

Here is the call graph for this function:

◆ InitMonitorResults()

void InitMonitorResults ( void )

must be called before rest, initializes assert variables

References ErrorDefault, ErrorDefaultPerformance, lgInitDone, and nAsserts.

Referenced by ParseCommands().

◆ lgCheckMonitors()

◆ ParseMonitorResults()

◆ prtLineType()

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

References cdEXIT, EXIT_FAILURE, fprintf(), iLineType, and STATIC.

Referenced by PrtOneMonitor().

Here is the call graph for this function:

◆ 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 )

Variable Documentation

◆ assertBlends

vector<vector<TransitionProxy>*> assertBlends
static

Referenced by ParseMonitorResults().

◆ AssertError

vector<double> AssertError
static

◆ AssertQuantity

vector<double> AssertQuantity
static

◆ AssertQuantity2

vector<double> AssertQuantity2
static

◆ chAssertLimit

vector<char> chAssertLimit
static

◆ chAssertLineLabel

vector<string> chAssertLineLabel
static

◆ chAssertType

vector<string> chAssertType
static

◆ ErrorDefault

realnum ErrorDefault
static

◆ ErrorDefaultPerformance

realnum ErrorDefaultPerformance
static

◆ iLineType

vector<int> iLineType
static

◆ lgBigBotch

bool lgBigBotch

◆ lgInitDone

bool lgInitDone =false
static

◆ lgMonitorsOK

bool lgMonitorsOK

these flags are set in lgCheckMonitors

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

◆ lgPrtSciNot

bool lgPrtSciNot

◆ lgQuantityLog

vector<bool> lgQuantityLog
static

◆ lgSpaceAllocated

bool lgSpaceAllocated =false
static

Referenced by ParseMonitorResults().

◆ lineids

◆ MonitorResults

t_monitorresults MonitorResults

◆ NASSERTS

const int NASSERTS = 450
static

◆ nAsserts

long nAsserts =0
static

◆ Param

multi_arr<double,2> Param
static

◆ strAssertSpecies

vector<string> strAssertSpecies
static

◆ wavelength