cloudy  trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions | Variables
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:

Go to the source code of this file.

Functions

void PrtOneMonitor (FILE *ioMONITOR, const char *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< int > iLineType
 
static vector< std::vector
< TransitionProxy > * > 
assertBlends
 
static vector< char > chAssertLimit
 
static char ** 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

Definition at line 84 of file monitor_results.cpp.

References TotalInsanity().

Referenced by lgCheckMonitors().

Here is the call graph for this function:

double get_error_ratio ( double  pred,
double  assert 
)
inline

Definition at line 1696 of file monitor_results.cpp.

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

Definition at line 99 of file monitor_results.cpp.

References ErrorDefault, ErrorDefaultPerformance, lgInitDone, and nAsserts.

Referenced by ParseCommands().

bool lgCheckMonitors ( FILE *  ioMONITORS)

lgCheckMonitors

Parameters
*ioMONITORSthis is unit we will write output to

Definition at line 1703 of file monitor_results.cpp.

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_version::lgReleaseBranch, t_called::lgTalk, 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_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:

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

Definition at line 2980 of file monitor_results.cpp.

References cdEXIT, EXIT_FAILURE, and fprintf().

Referenced by PrtOneMonitor().

Here is the call graph for this function:

void PrtOneMonitor ( FILE *  ioMONITOR,
const char *  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 
)

Definition at line 3008 of file monitor_results.cpp.

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<std::vector<TransitionProxy>* > assertBlends
static

Definition at line 61 of file monitor_results.cpp.

Referenced by ParseMonitorResults().

vector<double> AssertError
static

Definition at line 70 of file monitor_results.cpp.

Referenced by lgCheckMonitors(), and ParseMonitorResults().

vector<double> AssertQuantity
static

Definition at line 70 of file monitor_results.cpp.

Referenced by lgCheckMonitors(), ParseMonitorResults(), and PrtOneMonitor().

vector<double> AssertQuantity2
static

Definition at line 70 of file monitor_results.cpp.

Referenced by lgCheckMonitors(), and ParseMonitorResults().

vector<char> chAssertLimit
static

Definition at line 64 of file monitor_results.cpp.

Referenced by lgCheckMonitors(), and ParseMonitorResults().

vector<string> chAssertLineLabel
static

Definition at line 55 of file monitor_results.cpp.

Referenced by lgCheckMonitors(), and ParseMonitorResults().

char** chAssertType
static

Definition at line 67 of file monitor_results.cpp.

Referenced by lgCheckMonitors(), and ParseMonitorResults().

realnum ErrorDefault
static

Definition at line 50 of file monitor_results.cpp.

Referenced by InitMonitorResults(), and ParseMonitorResults().

realnum ErrorDefaultPerformance
static

Definition at line 53 of file monitor_results.cpp.

Referenced by InitMonitorResults(), and ParseMonitorResults().

vector<int> iLineType
static

Definition at line 59 of file monitor_results.cpp.

Referenced by lgCheckMonitors(), and ParseMonitorResults().

bool lgBigBotch

Definition at line 38 of file monitor_results.cpp.

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

bool lgInitDone =false
static

Definition at line 42 of file monitor_results.cpp.

Referenced by InitMonitorResults(), and ParseMonitorResults().

bool lgMonitorsOK

these flags are set in lgCheckMonitors

Definition at line 38 of file monitor_results.cpp.

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

bool lgPrtSciNot

Definition at line 38 of file monitor_results.cpp.

Referenced by cdInit(), lgCheckMonitors(), ParseSet(), and PrtOneMonitor().

vector<bool> lgQuantityLog
static

Definition at line 74 of file monitor_results.cpp.

Referenced by lgCheckMonitors(), and ParseMonitorResults().

bool lgSpaceAllocated =false
static

Definition at line 44 of file monitor_results.cpp.

Referenced by ParseMonitorResults().

t_monitorresults MonitorResults

Definition at line 39 of file monitor_results.cpp.

Referenced by InitSimPostparse().

const int NASSERTS = 450
static

Definition at line 47 of file monitor_results.cpp.

Referenced by lgCheckMonitors(), and ParseMonitorResults().

long nAsserts =0
static

Definition at line 75 of file monitor_results.cpp.

Referenced by InitMonitorResults(), lgCheckMonitors(), and ParseMonitorResults().

multi_arr<double,2> Param
static

Definition at line 71 of file monitor_results.cpp.

vector<string> strAssertSpecies
static

Definition at line 78 of file monitor_results.cpp.

Referenced by lgCheckMonitors(), and ParseMonitorResults().

vector<realnum> wavelength
static