Cloudy
Spectral Synthesis Code for Astrophysics
|
Go to the source code of this file.
Classes | |
struct | CloudyCommand |
class | Symbol |
class | Parser |
class | DataParser |
class | KeyAction< V > |
class | UnitConverter |
class | Option |
class | Properties |
Typedefs | |
typedef void(* | OptionParser) (Parser &) |
Enumerations | |
enum | eod_style { ES_INVALID , ES_NONE , ES_STARS_ONLY , ES_STARS_AND_BLANKS } |
Functions | |
const char * | nWord (const char *chKey, const char *chCard) |
bool | isBoundaryChar (char c) |
bool | isSeparatorChar (char c) |
template<typename T> | |
void | getTokenOptionalImpl (istringstream &iss, const string &, T &var) |
template<> | |
void | getTokenOptionalImpl (istringstream &iss, const string &s, double &var) |
template<> | |
void | getTokenOptionalImpl (istringstream &iss, const string &s, sys_float &var) |
template<> | |
void | getTokenOptionalImpl (istringstream &iss, const string &s, long long &var) |
template<> | |
void | getTokenOptionalImpl (istringstream &iss, const string &s, unsigned long long &var) |
template<> | |
void | getTokenOptionalImpl (istringstream &iss, const string &s, long &var) |
template<> | |
void | getTokenOptionalImpl (istringstream &iss, const string &s, unsigned long &var) |
template<> | |
void | getTokenOptionalImpl (istringstream &iss, const string &s, int &var) |
template<> | |
void | getTokenOptionalImpl (istringstream &iss, const string &s, unsigned int &var) |
template<typename V> | |
KeyAction< V > | MakeKeyAction (const char *keyword, const V &action) |
template<typename T, typename V> | |
bool | parserProcess (Parser &p, T *list, unsigned long nlist, V *value) |
void | ParseCosmicRays (Parser &p) |
void | ParseCosmology (Parser &p) |
void | ParseAbundancesNonSolar (Parser &p) |
void | ParseAbundances (Parser &p) |
void | ParseDont (Parser &p) |
void | ParseSave (Parser &p) |
void | parse_save_line (Parser &p, bool lgLog3, ostringstream &chHeader, long int ipPun) |
void | parse_save_average (Parser &p, long int ipPun, ostringstream &chHeader) |
void | parse_save_colden (Parser &p, ostringstream &chHeader) |
void | Parse_Save_Line_RT (Parser &p) |
void | ParseAge (Parser &p) |
void | ParseAgn (Parser &p) |
void | ParseBlackbody (Parser &p) |
void | ParseCompile (Parser &p) |
void | ParseConstant (Parser &p) |
void | ParseDLaw (Parser &p) |
void | ParseTLaw (Parser &p) |
void | ParseGrain (Parser &p) |
void | ParseFluc (Parser &p) |
void | ParseHDEN (Parser &p) |
void | ParseDatabaseISO (long ipISO, Parser &p) |
void | ParseDatabaseH2 (Parser &p) |
void | ParseGrid (Parser &p) |
void | ParseInit (Parser &p) |
void | ParseInitFile (const string &chName) |
void | ParseInterp (Parser &p) |
void | ParseIonParI (Parser &p) |
void | ParseIonParX (Parser &p) |
void | ParseIonPar (Parser &p, char chType) |
void | ParseNorm (Parser &p) |
void | ParseOptimize (Parser &p) |
void | ParsePrint (Parser &p) |
void | ParseRadius (Parser &p) |
void | ParseSet (Parser &p) |
void | ParseTable (Parser &p) |
void | ParseTrace (Parser &p) |
void | ParseExtinguish (Parser &p) |
void | ParseIllumination (Parser &p) |
void | ParseCaseB (Parser &p) |
void | ParseTest (Parser &p) |
void | ParseAbsMag (Parser &p) |
void | ParseBackgrd (Parser &p) |
void | ParseCoronal (Parser &p) |
void | ParseElement (Parser &p) |
void | ParseCMB (double z, long int *nqh) |
void | ParseF_nu (Parser &p, const char *chType, bool lgNU2) |
void | ParseGlobule (Parser &p) |
void | ParseRangeOption (Parser &p) |
void | ParseMap (Parser &p) |
void | ParseMetal (Parser &p) |
void | ParseLineList (Parser &p, vector< LineID > &lines) |
void | ParsePrtLineSum (Parser &p) |
void | ParsePowerlawContinuum (Parser &p) |
void | ParseRatio (Parser &p) |
void | ParseSphere (Parser &p) |
void | ParseStop (Parser &p) |
void | ParseCrashDo (Parser &p) |
typedef void(* OptionParser) (Parser &) |
enum eod_style |
ES_NONE means that neither blank lines nor a field of stars are end-of-data (EOD) markers a blank line is considered a comment and a field of stars is ignored ES_STARS_ONLY means that a field of stars is an EOD marker a blank line is considered a comment ES_STARS_AND_BLANKS means that both blank lines and a field of stars are EOD markers
Enumerator | |
---|---|
ES_INVALID | |
ES_NONE | |
ES_STARS_ONLY | |
ES_STARS_AND_BLANKS |
|
inline |
Referenced by DataParser::getTokenOptional().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool isBoundaryChar | ( | char | c | ) |
Referenced by Parser::nMatch1(), and nWord().
bool isSeparatorChar | ( | char | c | ) |
Referenced by Parser::nMatchSkip().
|
inline |
Helper template to make it easier to generate KeyActions
const char * nWord | ( | const char * | chKey, |
const char * | chCard ) |
nWord determine whether match to a keyword occurs on command line, return value is 0 if no match, and position of match within string if hit
*chKey | |
*chCard |
References ASSERT, DEBUG_ENTRY, isBoundaryChar(), and NULL.
void parse_save_average | ( | Parser & | p, |
long int | ipPun, | ||
ostringstream & | chHeader ) |
References ASSERT, cdEXIT, DEBUG_ENTRY, elementnames, EXIT_FAILURE, Parser::FFmtRead(), fprintf(), Parser::GetElem(), Parser::getline(), Parser::hasCommand(), ioQQQ, ipPun, Parser::lgEOL(), Parser::m_lgEOF, nLine, Parser::nMatch(), Parser::NoNumb(), Parser::PrintLine(), save, and sncatf().
Referenced by ParseSave().
void parse_save_colden | ( | Parser & | p, |
ostringstream & | chHeader ) |
void parse_save_line | ( | Parser & | p, |
bool | lgLog3, | ||
ostringstream & | chHeader, | ||
long int | ipPun ) |
References ipPun.
Referenced by ParseSave().
void Parse_Save_Line_RT | ( | Parser & | p | ) |
References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, Parser::FFmtRead(), fprintf(), Parser::getline(), ioQQQ, Parser::lgEOL(), lgMustPrintHeader, LIMLINE, line_RT_ipHi, line_RT_ipISO, line_RT_ipLo, line_RT_nelem, line_RT_type, Parser::m_lgEOF, nLine, Parser::nMatch(), and Parser::PrintLine().
Referenced by ParseSave().
void ParseAbsMag | ( | Parser & | p | ) |
ParseAbsMag parse the absolute magnitude command
References called, cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, Parser::FFmtRead(), fprintf(), ioQQQ, Parser::lgEOL(), LIMSPC, Parser::m_nqh, Parser::nMatch(), and rfield.
Referenced by ParseCommands().
void ParseAbundances | ( | Parser & | p | ) |
References abund, abund_starburst(), ASSERT, caps(), cdEXIT, DEBUG_ENTRY, dense, elem_symbol_to_index(), elementnames, Symbol::EOSTAT, EXIT_FAILURE, exp10(), FFmtRead(), Parser::FFmtRead(), fprintf(), Parser::getline(), Parser::GetQuote(), Parser::getSymbol(), Parser::hasCommand(), ioQQQ, ipHYDROGEN, Parser::lgEOL(), LIMELM, Parser::m_lgDSet, Symbol::NAME, Parser::nMatch(), Parser::NoNumb(), Symbol::NUMBER, open_abn_file(), Symbol::OPERATOR, ParseElement(), ParseGrain(), Parser::peekNextCommand(), read_whole_line(), SDIV(), Parser::setline(), Parser::showLocation(), Symbol::toktype, and Symbol::value.
Referenced by ParseCommands(), and ParseTest().
void ParseAbundancesNonSolar | ( | Parser & | p | ) |
ParseAbundances parse and read in composition as set by abundances command
*chCard | |
lgDSet |
void ParseAge | ( | Parser & | p | ) |
ParseAge - parse the age command
References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, exp10(), Parser::FFmtRead(), fprintf(), ioQQQ, Parser::lgEOL(), NUMBEROF, Parser::nWord(), parserProcess(), timesc, and Time::TimeUnits.
Referenced by ParseCommands().
void ParseAgn | ( | Parser & | p | ) |
ParseAgn parse parameters for the AGN continuum shape command
*chCard |
References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, exp10(), Parser::FFmtRead(), fprintf(), input, ioQQQ, Parser::lgEOL(), LIMSPC, Parser::nMatch(), optimize, pow(), rfield, and sexp().
Referenced by ParseCommands().
void ParseBackgrd | ( | Parser & | p | ) |
ParseBackgrd parse the background continuum command
References cdEXIT, CMB_TEMP, DEBUG_ENTRY, EXIT_FAILURE, Parser::FFmtRead(), fprintf(), Parser::getRawTail(), ioQQQ, Parser::lgEOL(), LIMSPC, Parser::m_nqh, Parser::nMatch(), ParseTable(), powi(), rfield, Parser::set_point(), Parser::setline(), and Illumination::SYMMETRIC.
Referenced by ParseCommands().
void ParseBlackbody | ( | Parser & | p | ) |
parse the blackbody command
*chCard | input command line, already changed to caps |
*nqh | counter for which continuum source this is |
*ar1 | optional area that might be set here |
References BIGFLOAT, cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, exp10(), Parser::FFmtRead(), fprintf(), input, ioQQQ, Parser::lgEOL(), LIMSPC, Parser::m_nqh, Parser::nMatch(), Parser::NoNumb(), optimize, rfield, set_NaN(), Illumination::SYMMETRIC, and TotalInsanity().
Referenced by ParseCommands().
void ParseCaseB | ( | Parser & | p | ) |
References DEBUG_ENTRY, exp10(), Parser::FFmtRead(), Parser::lgEOL(), Parser::nMatch(), and opac.
Referenced by ParseCommands(), and ParseTest().
void ParseCMB | ( | double | z, |
long int * | nqh ) |
ParseCMB parse parameters from fireball command
z | |
*nqh | |
*ar1 |
References cdEXIT, CMB_TEMP, DEBUG_ENTRY, EXIT_FAILURE, fprintf(), ioQQQ, LIMSPC, rfield, and Illumination::SYMMETRIC.
Referenced by ParseCMBOuter().
void ParseCompile | ( | Parser & | p | ) |
ParseCompile compile werner or kurucz model atmospheres into cloudy format, by K Volk
*chCard |
References ASSERT, AtlasCompile(), atmdat_readin(), Badnell_rec_init(), cdEXIT, ContCreateMesh(), ContCreatePointers(), CoStarCompile(), DEBUG_ENTRY, dense, ES_FAILURE, ES_SUCCESS, EXIT_FAILURE, EXIT_SUCCESS, Parser::FFmtRead(), fprintf(), Parser::GetQuote(), GridCompile(), HaardtMadauCompile(), ioQQQ, ipH_LIKE, ipHE_LIKE, iso_ctrl, iso_sp, iso_update_num_levels(), KhaireSrianandCompile(), Kurucz79Compile(), Parser::lgEOL(), LIKE_RREC_MAXN(), LIMELM, mie_write_opc(), MihalasCompile(), process_counter::nFail, process_counter::nFound, Parser::nMatch(), Parser::nMatchErase(), process_counter::nOK, process_counter::notProcessed, opac, OpacityCreateAll(), RauchCompile(), rfield, RREC_MAXN, SB_NEBULAR, SB_STELLAR, SB_TOTAL, StarburstCompile(), StarburstInitialize(), Parser::StringError(), TlustyCompile(), WernerCompile(), and WMBASICCompile().
Referenced by ParseCommands().
void ParseConstant | ( | Parser & | p | ) |
ParseConstant parse the constant ... command
References BIGFLOAT, cdEXIT, DEBUG_ENTRY, dense, EXIT_FAILURE, exp10(), Parser::FFmtRead(), fprintf(), input, ioQQQ, Parser::lgEOL(), Parser::nMatch(), Parser::NoNumb(), optimize, phycon, pressure, SMALLFLOAT, TempChange(), and thermal.
Referenced by ParseCommands(), and ParseTest().
void ParseCoronal | ( | Parser & | p | ) |
ParseCoronal parse the cronal equilibrum command
References atmdat, cdEXIT, DEBUG_ENTRY, dynamics, EXIT_FAILURE, exp10(), Parser::FFmtRead(), fprintf(), input, ioQQQ, Parser::lgEOL(), Parser::nMatch(), optimize, phycon, and thermal.
Referenced by ParseCommands().
void ParseCosmicRays | ( | Parser & | p | ) |
ParseCosmicRays parse the cosmic rays command
*chCard |
References ASSERT, cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, exp10(), Parser::FFmtRead(), fprintf(), hextra, input, ionbal, ioQQQ, Parser::lgEOL(), MIN2, Parser::nMatch(), Parser::NoNumb(), optimize, and SMALLFLOAT.
Referenced by ParseCommands(), and ParseTest().
void ParseCosmology | ( | Parser & | p | ) |
ParseCosmology parse the cosmology command
*chCard |
References cosmology, DEBUG_ENTRY, Parser::FFmtRead(), fixit, fprintf(), ioQQQ, Parser::nMatch(), rfield, and TotalInsanity().
Referenced by ParseCommands().
void ParseCrashDo | ( | Parser & | p | ) |
ParseCrashDo any of several tests to check that the code can crash
*chCard |
References multi_arr< T, d, ALLOC, lgBC >::alloc(), ar2, ARR_SIZE, ASSERT, cdEXIT, multi_arr< T, d, ALLOC, lgBC >::clear(), DEBUG_ENTRY, EXIT_FAILURE, Parser::FFmtRead(), fprintf(), grid, ioQQQ, isnan, Parser::lgEOL(), Parser::nMatch(), multi_arr< T, d, ALLOC, lgBC >::ptr(), multi_arr< T, d, ALLOC, lgBC >::reserve(), set_NaN(), TotalInsanity(), vhypot(), x1, x2, ZeroNum, and ZeroPtr.
Referenced by ParseCommands().
void ParseDatabaseH2 | ( | Parser & | p | ) |
ParseDatabaseH2 parse information from the rotor command line
*chCard |
References cdEXIT, diatomics::coll_source, DEBUG_ENTRY, EXIT_FAILURE, exp10(), Parser::FFmtRead(), t_coll_source::filename, fixit, fprintf(), h2, diatomics::H2_to_H_limit, hmi, ioQQQ, diatomics::lgColl_deexec_Calc, diatomics::lgColl_dissoc_coll, diatomics::lgColl_gbar, diatomics::lgEnabled, Parser::lgEOL(), diatomics::lgH2_grain_deexcitation, diatomics::lgH2_He_ORNL, diatomics::lgH2_NOISE, diatomics::lgH2_NOISECOSMIC, diatomics::lgH2_ORH2_ORNL, diatomics::lgH2_ortho_para_coll_on, diatomics::lgH2_PAH2_ORNL, diatomics::lgLTE, diatomics::lgREAD_DATA, N_ELEC, diatomics::n_elec_states, diatomics::n_trace_final, diatomics::n_trace_full, diatomics::n_trace_iterations, diatomics::n_trace_matrix, Parser::nMatch(), Parser::NoNumb(), diatomics::nTRACE, NULL, diatomics::set_numLevelsMatrix(), TotalInsanity(), diatomics::xMeanNoise, and diatomics::xSTDNoise.
Referenced by ParseDatabase(), and ParseTest().
void ParseDatabaseISO | ( | long | ipISO, |
Parser & | p ) |
ParseDatabaseISO parse the atom XX-like command, to set options for iso sequences
ipISO | |
*chCard |
References ASSERT, cdEXIT, DEBUG_ENTRY, elementnames, EXIT_FAILURE, exp10(), Parser::FFmtRead(), fprintf(), Parser::GetElem(), hydro, input, ioQQQ, ipCRD, ipCRDW, ipH_LIKE, ipHE_LIKE, ipHYDROGEN, ipLY_A, ipPRD, iso_ctrl, iso_sp, iso_update_num_levels(), Parser::lgEOL(), lgHydroAlloc, LIMELM, max(), min(), MIN2, NHYDRO_MAX_LEVEL, Parser::nMatch(), Parser::NoNumb(), optimize, phycon, POW3, rfield, RREC_MAXN, and TotalInsanity().
Referenced by ParseDatabase(), and ParseTest().
void ParseDLaw | ( | Parser & | p | ) |
ParseDLaw parse parameters on the dlaw command so set some density vs depth law
*chCard |
References cdEXIT, DEBUG_ENTRY, dense, EXIT_FAILURE, Parser::FFmtRead(), fprintf(), input, ioQQQ, ipHYDROGEN, Parser::lgEOL(), Parser::nMatch(), Parser::NoNumb(), optimize, and Parser::readLaw().
Referenced by ParseCommands().
void ParseDont | ( | Parser & | p | ) |
ParseDont parse the dont command
References atmdat, cdEXIT, continuum, CoolHeavy, DEBUG_ENTRY, dynamics, EXIT_FAILURE, fprintf(), gv, hydro, hyperfine, Singleton< t_yield >::Inst(), ionbal, ioQQQ, ipH_LIKE, ipHE_LIKE, t_yield::kill_yield(), mole_global, Parser::nMatch(), nWindLine, opac, phycon, pressure, Parser::PrintLine(), prt, rfield, rt, save, secondaries, and thermal.
Referenced by ParseCommands().
void ParseElement | ( | Parser & | p | ) |
ParseElement parse options on element command
References abund, ASSERT, BIGFLOAT, called, cdEXIT, DEBUG_ENTRY, dense, deut, elementnames, EXIT_FAILURE, exp10(), Parser::FFmtRead(), fprintf(), Parser::GetElem(), input, ioQQQ, ipH_LIKE, ipHE_LIKE, ipHELIUM, ipHYDROGEN, iso_sp, levels(), Parser::lgEOL(), LIMELM, LIMPAR, mole_global, NISO, Parser::nMatch(), Parser::NoNumb(), optimize, Parser::PrintLine(), and Parser::readLaw().
Referenced by ParseAbundances(), and ParseCommands().
void ParseExtinguish | ( | Parser & | p | ) |
References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, exp10(), Parser::FFmtRead(), fprintf(), ioQQQ, Parser::lgEOL(), Parser::nMatch(), Parser::NoNumb(), pow(), and rfield.
Referenced by ParseCommands(), and ParseTest().
void ParseF_nu | ( | Parser & | p, |
const char * | chType, | ||
bool | lgNU2 ) |
ParseF_nu parse intensity command parameters
*chCard | |
*nqh | |
*ar1 | |
*chType | |
lgNU2 |
References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, exp10(), Parser::FFmtRead(), fprintf(), ioQQQ, Parser::lgEOL(), LIMSPC, Parser::m_nqh, Parser::nMatch(), Parser::NoNumb(), and rfield.
Referenced by ParseF_nuSpecific(), ParseL_nu(), ParseNuF_nu(), and ParseNuL_nu().
void ParseFluc | ( | Parser & | p | ) |
ParseFluc parse the fluctuations command
References ASSERT, cdEXIT, DEBUG_ENTRY, dense, EXIT_FAILURE, exp10(), Parser::FFmtRead(), fprintf(), ioQQQ, ipHYDROGEN, Parser::lgEOL(), and Parser::nMatch().
Referenced by ParseCommands().
void ParseGlobule | ( | Parser & | p | ) |
ParseGlobule parse parameters off the globule command
*chCard |
References cdEXIT, DEBUG_ENTRY, dense, EXIT_FAILURE, exp10(), Parser::FFmtRead(), fprintf(), input, ioQQQ, ipHYDROGEN, Parser::lgEOL(), optimize, and radius.
Referenced by ParseCommands().
void ParseGrain | ( | Parser & | p | ) |
ParseGrain parse parameters on Peter's version of the grains command
*chCard | |
*lgDset |
References cdEXIT, DEBUG_ENTRY, GrainPar::dep, DF_STANDARD, DF_SUBLIMATION, DF_USER_FUNCTION, EXIT_FAILURE, exp10(), Parser::FFmtRead(), FILENAME_PATH_LENGTH_2, fprintf(), Parser::GetQuote(), gv, input, ioQQQ, GrainPar::lgForbidQHeating, GrainPar::lgGreyGrain, GrainPar::lgRequestQHeating, Parser::m_lgDSet, mie_read_opc(), GrainPar::nDustFunc, nMatch(), Parser::nMatch(), Parser::nMatchErase(), NULL, optimize, phycon, Parser::StringError(), and TotalInsanity().
Referenced by ParseAbundances(), and ParseCommands().
void ParseGrid | ( | Parser & | p | ) |
ParseGrid parse the grid command
*chCard |
References ASSERT, cdEXIT, cpu, DEBUG_ENTRY, EXIT_FAILURE, Parser::FFmtRead(), fp_equal(), fprintf(), Parser::GetQuote(), grid, input_readvector(), ioQQQ, Parser::lgEOL(), LIMPAR, max(), MAX2, nint(), Parser::nMatch(), optimize, safe_div(), and Parser::StringError().
Referenced by ParseCommands().
void ParseHDEN | ( | Parser & | p | ) |
ParseHDEN parse the HDEN command
References cdEXIT, DEBUG_ENTRY, dense, EXIT_FAILURE, exp10(), Parser::FFmtRead(), fprintf(), input, ioQQQ, ipHYDROGEN, Parser::lgEOL(), MAX_DENSITY, Parser::nMatch(), and optimize.
Referenced by ParseCMBOuter(), ParseCommands(), and ParseTest().
void ParseIllumination | ( | Parser & | p | ) |
References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, Parser::FFmtRead(), Illumination::FORWARD, fprintf(), geometry, input, ioQQQ, Parser::lgEOL(), Parser::nMatch(), Parser::NoNumb(), optimize, Illumination::REVERSE, rfield, and Illumination::SYMMETRIC.
Referenced by ParseCommands().
void ParseInit | ( | Parser & | p | ) |
ParseInit parse the init command
References DEBUG_ENTRY, fprintf(), Parser::GetQuote(), ioQQQ, Parser::nMatch(), ParseInitFile(), and Parser::StringError().
Referenced by cdRead().
void ParseInitFile | ( | const string & | chName | ) |
ParseInitFile helper routine for ParseInit
References cdRead(), DEBUG_ENTRY, input, lgInputEOF(), open_data(), and read_whole_line().
Referenced by cdDrive(), and ParseInit().
void ParseInterp | ( | Parser & | p | ) |
ParseInterp parse parameters on interpolate command
*chCard | |
*lgEOF |
References ASSERT, called, cdEXIT, DEBUG_ENTRY, Parser::echo(), EXIT_FAILURE, EXIT_SUCCESS, exp10(), Parser::FFmtRead(), fprintf(), Parser::getline(), Parser::hasCommand(), input, ioQQQ, Parser::isComment(), Parser::last(), Parser::lgEOL(), LIMSPC, Parser::m_lgEOF, max(), rfield, and trace.
Referenced by ParseCommands().
void ParseIonPar | ( | Parser & | p, |
char | chType ) |
ParseIonPar parse the ionization parameter command
*nqh | |
*chCard | |
*chType |
References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, Parser::FFmtRead(), fprintf(), input, ioQQQ, Parser::lgEOL(), LIMSPC, Parser::m_nqh, Parser::nMatch(), Parser::NoNumb(), optimize, and rfield.
Referenced by ParseIonParI(), and ParseIonParX().
void ParseIonParI | ( | Parser & | p | ) |
ParseIonParI parse the ionization parameter command (IONI variant)
*nqh | |
*chCard | |
*chType |
References ParseIonPar().
Referenced by ParseCommands(), and ParseTest().
void ParseIonParX | ( | Parser & | p | ) |
ParseIonParX parse the ionization parameter command (XI variant)
*nqh | |
*chCard | |
*chType |
References ParseIonPar().
Referenced by ParseCommands().
References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, fprintf(), Parser::getline(), Parser::getLineID(), Parser::hasCommand(), ioQQQ, Parser::lgReachedEnd(), lines(), Parser::m_lgEOF, and Parser::showLocation().
Referenced by parse_save_line(), ParsePrtLineSum(), and ParseSet().
void ParseMap | ( | Parser & | p | ) |
ParseMap parse map command to produce map of heating and cooling
References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, exp10(), Parser::FFmtRead(), fprintf(), hcmap, ioMAP, ioQQQ, Parser::lgEOL(), Parser::nMatch(), and NULL.
Referenced by ParseCommands().
void ParseMetal | ( | Parser & | p | ) |
ParseMetal parse parameters on metal command
References abund, cdEXIT, DEBUG_ENTRY, elementnames, EXIT_FAILURE, exp10(), Parser::FFmtRead(), fprintf(), GetJenkins09(), GetMetalsDeplete(), gv, input, ioQQQ, Parser::lgEOL(), LIMELM, MAX2, Parser::nMatch(), Parser::NoNumb(), and optimize.
Referenced by ParseCommands().
void ParseNorm | ( | Parser & | p | ) |
ParseNorm parse parameters on the normalize command
*chCard |
References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, Parser::FFmtRead(), fprintf(), Parser::getLineID(), ioQQQ, Parser::lgEOL(), LineSave, and Parser::nMatch().
Referenced by ParseCommands().
void ParseOptimize | ( | Parser & | p | ) |
ParseOptimize parse the optimize command
*chCard |
References t_PredCont::add(), cdEXIT, chOptimFileName, cpu, DEBUG_ENTRY, DEFERR, energy(), EXIT_FAILURE, exp10(), Parser::FFmtRead(), fprintf(), GetOptColDen(), GetOptLineInt(), GetOptTemp(), Parser::GetQuote(), Singleton< t_PredCont >::Inst(), ioQQQ, Parser::lgEOL(), MS_DEFAULT, Parser::nMatch(), Parser::NoNumb(), optimize, Parser::PrintLine(), Parser::StandardEnergyUnit(), Parser::StandardFluxUnit(), and Parser::StringError().
Referenced by ParseCommands().
void ParsePowerlawContinuum | ( | Parser & | p | ) |
ParsePowerlawContinuum parse the power law continuum command
References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, exp10(), Parser::FFmtRead(), fprintf(), input, ioQQQ, Parser::lgEOL(), LIMSPC, Parser::nMatch(), optimize, and rfield.
Referenced by ParseCommands().
void ParsePrint | ( | Parser & | p | ) |
ParsePrint parse the print command
*chCard |
References atmdat, broke, called, cdEXIT, cpu, DEBUG_ENTRY, EXIT_FAILURE, exp10(), Parser::FFmtRead(), fprintf(), Parser::GetElem(), Parser::GetQuote(), Parser::GetRange(), h2, input, Singleton< module_list >::Inst(), Singleton< t_version >::Inst(), ionbal, ioQQQ, ipH_LIKE, ipHE_LIKE, ipHYDROGEN, iterations, Parser::lgEOL(), lgPrnErr, t_iso_sp::lgPrtDepartCoef, t_iso_sp::lgPrtLevelPops, t_iso_sp::lgPrtNCrit, LIMELM, LineSave, module_list::m_l, MAX2, Parser::nMatch(), Parser::NoNumb(), ParsePrtLineSum(), Parser::PrintLine(), prt, prt_constants(), PrtMacros(), rfield, and setIsoNelemFlag().
Referenced by ParseCommands().
void ParsePrtLineSum | ( | Parser & | p | ) |
References DEBUG_ENTRY, ipLine, lineids, and ParseLineList().
Referenced by ParsePrint().
void ParseRadius | ( | Parser & | p | ) |
ParseRadius parse the radius command
References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, exp10(), Parser::FFmtRead(), fprintf(), input, ioQQQ, iterations, Parser::lgEOL(), Parser::nMatch(), Parser::NoNumb(), optimize, and radius.
Referenced by ParseCommands().
void ParseRangeOption | ( | Parser & | p | ) |
ParseRangeOption parse the range option on the luminosity command
References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, exp10(), Parser::FFmtRead(), fprintf(), ioQQQ, Parser::lgEOL(), Parser::m_nqh, MAX2, MIN2, Parser::nMatch(), rfield, and Parser::set_point().
Referenced by ParseIntensity(), ParseLuminosity(), ParsePhi(), and ParseQH().
void ParseRatio | ( | Parser & | p | ) |
ParseRatio parse the ratio command
References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, exp10(), Parser::FFmtRead(), fprintf(), input, ioQQQ, Parser::lgEOL(), LIMSPC, Parser::m_nqh, Parser::nMatch(), Parser::NoNumb(), optimize, pow(), and rfield.
Referenced by ParseCommands().
bool parserProcess | ( | Parser & | p, |
T * | list, | ||
unsigned long | nlist, | ||
V * | value ) |
Interate through a list of KeyActions: apply the first which matches and then quit
References Parser::nWord().
Referenced by ParseAge().
void ParseSave | ( | Parser & | p | ) |
ParseSave parse the save command
*chCard |
code printed log quantities, historically. Maintain backwards compatibility
References addUniqueSpeciesBand(), cdEXIT, cdGetLineList(), ChkUnits(), DEBUG_ENTRY, elementnames, EXIT_FAILURE, exp10(), Parser::FFmtRead(), fprintf(), Parser::GetElem(), Parser::getNumberCheck(), Parser::GetQuote(), grid, gv, h2, hcmap, hd, input, Singleton< t_version >::Inst(), ioMAP, ioQQQ, ipCARBON, ipHELIUM, ipHYDROGEN, ipOXYGEN, is_odd(), iterations, Parser::lgEOL(), LIMELM, LIMPUN, makeChemical(), MAX2, MIN2, Parser::nMatch(), Parser::nMatchErase(), Parser::NoNumb(), NULL, NUM_OUTPUT_TYPES, open_data(), parse_save_average(), parse_save_line(), Parse_Save_Line_RT(), prt, Parser::readList(), rfield, Energy::Ryd(), save, saveXSPEC(), Energy::set(), sncatf(), Parser::StandardEnergyUnit(), Parser::StringError(), and trimTrailingWhiteSpace().
Referenced by ParseCommands().
void ParseSet | ( | Parser & | p | ) |
ParseSet parse the set command
References t_PredCont::add(), atmdat, cdEXIT, t_blend::chLabel, t_blend::component, t_hyperfine::CONSTANT, continuum, conv, DEBUG_ENTRY, dense, DEPTH_OFFSET, t_atmdat::DIMA, dynamics, energy(), t_hyperfine::EXCITATION, EXIT_FAILURE, exp10(), Parser::FFmtRead(), fprintf(), Parser::GetElem(), Parser::GetQuote(), Parser::getWave(), gv, hcmap, hmi, t_atmdat::HYBRID, hyperfine, input, Singleton< t_ADfA >::Inst(), Singleton< t_PredCont >::Inst(), ionbal, ioQQQ, iso_ctrl, iterations, t_hyperfine::KINETIC, Parser::lgEOL(), lgPrtSciNot, t_blend::lgQuiet, lgTestCodeEnabled, LIMELM, LINE_CONT_SHIELD_FEDERMAN, LINE_CONT_SHIELD_FEDERMAN_BUG, LINE_CONT_SHIELD_FERLAND, LINE_CONT_SHIELD_INTEGRAL, LINE_CONT_SHIELD_PESC, LINE_CONT_SHIELD_RODGERS, MAX2, MIN2, mole_global, adjPseudoCont::nBins, NCHLAB, NCHU, nint(), Parser::nMatch(), Parser::NoNumb(), opac, optimize, ParseLineList(), peimbt, PHFIT95, PHFIT96, phycon, Parser::PrintLine(), prt, radius, rfield, rt, save, secondaries, t_ADfA::set_version(), Parser::setEOL(), SetNChrgStates(), SMALLFLOAT, adjPseudoCont::speciesLabel, Parser::StandardEnergyUnit(), StopCalc, trimTrailingWhiteSpace(), t_blend::wave, t_wavl::wavlVac(), adjPseudoCont::wlHi, and adjPseudoCont::wlLo.
Referenced by ParseCommands(), and ParseTest().
void ParseSphere | ( | Parser & | p | ) |
ParseSphere parse the sphere command
References DEBUG_ENTRY, Parser::FFmtRead(), fprintf(), geometry, ioQQQ, Parser::lgEOL(), Parser::nMatch(), and opac.
Referenced by ParseCommands().
void ParseStop | ( | Parser & | p | ) |
ParseStop parse the stop command
References t_PredCont::add(), cdEXIT, DEBUG_ENTRY, energy(), EXIT_FAILURE, exp10(), Parser::FFmtRead(), fprintf(), geometry, Parser::getLineID(), Parser::GetQuote(), Parser::getRawTail(), Hbeta_WavLen, input, Singleton< t_PredCont >::Inst(), ioQQQ, iterations, Parser::lgEOL(), StopLineEntry::line1, StopLineEntry::line2, max(), MAX2, StopLineEntry::nEmergent, Parser::nMatch(), Parser::NoNumb(), optimize, phycon, Parser::PrintLine(), rfield, SMALLFLOAT, Parser::StandardEnergyUnit(), Parser::StandardFluxUnit(), StopCalc, StopLineEntry::StopRatio, and trimTrailingWhiteSpace().
Referenced by ParseCommands(), and ParseTest().
void ParseTable | ( | Parser & | p | ) |
ParseTable parse the table read command
*nqh | |
*chCard | |
*ar1 |
References AS_TRY, ASSERT, AtlasInterpolate(), AtmospheresAvail(), BIGDOUBLE, cdEXIT, chLINE_LIST, CoStarInterpolate(), cpu, DEBUG_ENTRY, DataParser::errorAbort(), ES_STARS_ONLY, EXIT_FAILURE, EXIT_SUCCESS, exp10(), Parser::FFmtRead(), fnuHM96, fnuism, fprintf(), DataParser::getKeyword(), DataParser::getKeywordOptional(), DataParser::getline(), Parser::GetQuote(), DataParser::getToken(), GridInterpolate(), HaardtMadauInterpolate(), IM_COSTAR_AGE_MZAMS, IM_COSTAR_MZAMS_AGE, IM_COSTAR_TEFF_LOGG, IM_COSTAR_TEFF_MODID, IM_ILLEGAL_MODE, input, ioQQQ, KhaireSrianandInterpolate(), Kurucz79Interpolate(), lgCalled, DataParser::lgEODMarker(), Parser::lgEOL(), LIMEXT, LIMSPC, Parser::m_nqh, MDIM, MihalasInterpolate(), NAGN, NDRAINE, NHM96, NISM, Parser::nMatch(), Parser::nMatchErase(), Parser::NoNumb(), NULL, open_data(), optimize, RauchInterpolateCOWD(), RauchInterpolateHCa(), RauchInterpolateHelium(), RauchInterpolateHNi(), RauchInterpolateHpHe(), RauchInterpolateHydr(), RauchInterpolatePG1159(), ReadTable(), resetBltin(), rfield, Energy::Ryd(), Energy::set(), StandardEnergyUnitNoAbort(), Illumination::SYMMETRIC, TL_BSTAR, TL_OBSTAR, TL_OSTAR, TlustyInterpolate(), tnuagn, tnudrn, tnuHM96, tnuism, TotalInsanity(), trace, tslagn, tsldrn, UNUSED, DataParser::warning(), WernerInterpolate(), WMBASICInterpolate(), and ZeroContin().
Referenced by ParseBackgrd(), ParseCommands(), and ParseTest().
void ParseTest | ( | Parser & | p | ) |
ParseTest parse the test command
References DEBUG_ENTRY, Hbeta_WavLen, ipH_LIKE, Parser::nMatch(), ParseAbundances(), ParseCaseB(), ParseConstant(), ParseCosmicRays(), ParseDatabaseH2(), ParseDatabaseISO(), ParseExtinguish(), ParseHDEN(), ParseIonParI(), ParseMonitorResults(), ParseSet(), ParseStop(), ParseTable(), ParseTrace(), t_wavl::sprt_wl(), and StuffCommand().
Referenced by ParseCommands().
void ParseTLaw | ( | Parser & | p | ) |
ParseTLaw parse parameters on the tlaw command to set some temperature vs depth
*chCard |
References cdEXIT, DEBUG_ENTRY, dense, EXIT_FAILURE, Parser::FFmtRead(), fprintf(), input, ioQQQ, LIMEXT, Parser::nMatch(), optimize, Parser::readLaw(), and thermal.
Referenced by ParseCommands().
void ParseTrace | ( | Parser & | p | ) |
ParseTrace parse the trace command
References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, Parser::FFmtRead(), fprintf(), geometry, Parser::GetElem(), ioQQQ, ipH_LIKE, ipHE_LIKE, iterations, Parser::lgEOL(), MAX2, Parser::nMatch(), and trace.
Referenced by ParseCommands(), and ParseTest().