cloudy  trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Data Structures | Typedefs | Functions
parser.h File Reference
#include <cstdio>
#include <map>
#include "count_ptr.h"
#include "input.h"
Include dependency graph for parser.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  CloudyCommand
 
class  Symbol
 
class  Parser
 
class  KeyAction< V >
 
class  UnitConverter
 
class  Option
 
class  Properties
 

Typedefs

typedef void(* OptionParser )(Parser &)
 

Functions

const char * nWord (const char *chKey, const char *chCard)
 
bool isBoundaryChar (char c)
 
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 ParseState (Parser &p)
 
void ParseBlackbody (Parser &p)
 
void ParseCompile (Parser &p)
 
void ParseConstant (Parser &p)
 
void ParseDLaw (Parser &p)
 
void ParseTLaw (Parser &p)
 
void ParseDrive (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 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 ParseIlluminate (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 ParsePrtLineSum (Parser &p)
 
void ParsePlot (Parser &p)
 
void ParsePowerlawContinuum (Parser &p)
 
void ParseRatio (Parser &p)
 
void ParseSphere (Parser &p)
 
void ParseStop (Parser &p)
 
void ParseCrashDo (Parser &p)
 

Typedef Documentation

typedef void(* OptionParser)(Parser &)

Definition at line 25 of file parser.h.

Function Documentation

bool isBoundaryChar ( char  c)

Definition at line 130 of file parser.cpp.

Referenced by Parser::nMatch1(), and nWord().

template<typename V >
KeyAction<V> MakeKeyAction ( const char *  keyword,
const V &  action 
)
inline

Helper template to make it easier to generate KeyActions

Definition at line 252 of file parser.h.

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

Parameters
*chKey
*chCard

Definition at line 62 of file parser.cpp.

References ASSERT, DEBUG_ENTRY, and isBoundaryChar().

Referenced by Parser::nWord().

Here is the call graph for this function:

void parse_save_average ( Parser p,
long int  ipPun,
ostringstream &  chHeader 
)
void parse_save_colden ( Parser p,
ostringstream &  chHeader 
)
void parse_save_line ( Parser p,
bool  lgLog3,
ostringstream &  chHeader,
long int  ipPun 
)

Referenced by ParseSave().

void Parse_Save_Line_RT ( Parser p)
void ParseAbsMag ( Parser p)

ParseAbsMag parse the absolute magnitude command

Definition at line 9 of file parse_absmag.cpp.

References called, cdEXIT, t_rfield::chRSpec, t_rfield::chSpNorm, DEBUG_ENTRY, t_mesh::egamry(), t_mesh::emm(), EXIT_FAILURE, Parser::FFmtRead(), fprintf(), ioQQQ, Parser::lgEOL(), t_called::lgTalk, t_rfield::lgTimeVary, LIMSPC, Parser::m_nqh, Parser::nMatch(), t_rfield::range, rfield, and t_rfield::totpow.

Referenced by ParseCommands().

Here is the call graph for this function:

void ParseAbundances ( Parser p)
void ParseAbundancesNonSolar ( Parser p)

ParseAbundances parse and read in composition as set by abundances command

Parameters
*chCard
lgDSet
void ParseAge ( Parser p)

ParseAge - parse the age command

Definition at line 38 of file parse_age.cpp.

References cdEXIT, t_timesc::CloudAgeSet, DEBUG_ENTRY, EXIT_FAILURE, exp10(), Parser::FFmtRead(), fprintf(), ioQQQ, Parser::lgEOL(), NUMBEROF, Parser::nWord(), parserProcess(), timesc, and Time::TimeUnits.

Referenced by ParseCommands().

Here is the call graph for this function:

void ParseAgn ( Parser p)
void ParseBackgrd ( Parser p)
void ParseBlackbody ( Parser p)
void ParseCaseB ( Parser p)
void ParseCMB ( double  z,
long int *  nqh 
)
void ParseCompile ( Parser p)
void ParseConstant ( Parser p)
void ParseCoronal ( Parser p)
void ParseCosmicRays ( Parser p)
void ParseCosmology ( Parser p)

ParseCosmology parse the cosmology command

Parameters
*chCard

Definition at line 9 of file parse_cosmology.cpp.

References t_rfield::chDffTrns, cosmology, DEBUG_ENTRY, Parser::FFmtRead(), fixit, fprintf(), t_cosmology::h, ioQQQ, t_cosmology::lgDo, Parser::nMatch(), t_cosmology::omega_baryon, t_cosmology::omega_k, t_cosmology::omega_lambda, t_cosmology::omega_matter, t_cosmology::omega_rad, rfield, and TotalInsanity().

Referenced by ParseCommands().

Here is the call graph for this function:

void ParseCrashDo ( Parser p)
void ParseDatabaseH2 ( Parser p)
void ParseDatabaseISO ( long  ipISO,
Parser p 
)

ParseDatabaseISO parse the atom XX-like command, to set options for iso sequences

Parameters
ipISO
*chCard

Definition at line 16 of file parse_atom_iso.cpp.

References ASSERT, cdEXIT, t_elementnames::chElementSym, t_optimize::chVarFmt, t_hydro::DampOnFac, DEBUG_ENTRY, elementnames, t_mesh::emm(), EXIT_FAILURE, exp10(), Parser::FFmtRead(), fprintf(), Parser::GetElem(), hydro, init_genrand(), input, ioQQQ, ipCRD, ipCRDW, ipH_LIKE, ipHE_LIKE, ipHYDROGEN, ipLY_A, t_isoCTRL::ipLyaRedist, ipPRD, t_isoCTRL::ipResoRedist, t_isoCTRL::ipSubRedist, iso_ctrl, iso_sp, iso_update_num_levels(), t_isoCTRL::lgColl_excite, t_isoCTRL::lgColl_ionize, t_isoCTRL::lgColl_l_mixing, t_isoCTRL::lgContinuumLoweringEnabled, t_isoCTRL::lgCS_B72, t_isoCTRL::lgCS_None, t_isoCTRL::lgCS_PS64, t_isoCTRL::lgCS_PSClassic, t_isoCTRL::lgCS_PSdeg, t_isoCTRL::lgCS_Seaton, t_isoCTRL::lgCS_therm_ave, t_isoCTRL::lgCS_VOS12, t_isoCTRL::lgCS_VOS12QM, t_isoCTRL::lgCS_Vriens, t_isoCTRL::lgCS_Vrinceanu, t_isoCTRL::lgDielRecom, Parser::lgEOL(), t_isoCTRL::lgFSM, lgHydroMalloc, t_isoCTRL::lgLTE_levels, t_hydro::lgLymanPumping, t_isoCTRL::lgNoRecombInterp, t_isoCTRL::lgPessimisticErrors, t_phycon::lgPhysOK, t_isoCTRL::lgPrintNumberOfLevels, t_isoCTRL::lgRandErrGen, t_isoCTRL::lgTopoff, t_optimize::lgVarOn, LIMELM, MAX2, MIN2, t_isoCTRL::modelRank, t_iso_sp::n_HighestResolved_max, t_iso_sp::nCollapsed_max, t_isoCTRL::nCS_new, NHYDRO_MAX_LEVEL, t_isoCTRL::nLyman, t_isoCTRL::nLyman_max, Parser::nMatch(), Parser::NoNumb(), t_optimize::nparm, t_input::nRead, t_optimize::nvarxt, t_optimize::nvfpnt, optimize, phycon, POW3, rfield, RREC_MAXN, TotalInsanity(), t_optimize::vincr, t_optimize::vparm, and t_hydro::xLymanPumpingScaleFactor.

Referenced by ParseDatabase(), and ParseTest().

Here is the call graph for this function:

void ParseDLaw ( Parser p)
void ParseDont ( Parser p)

ParseDont parse the dont command

Definition at line 28 of file parse_dont.cpp.

References atmdat, cdEXIT, t_save::chOutputFile, continuum, CoolHeavy, DEBUG_ENTRY, t_rfield::DiffPumpOn, dynamics, EXIT_FAILURE, fprintf(), gv, t_atmdat::HCharHeatOn, hydro, hyperfine, Singleton< t_yield >::Inst(), ionbal, ioQQQ, ipH_LIKE, ipHE_LIKE, t_yield::kill_yield(), t_atmdat::lgCollIonOn, t_ionbal::lgCompRecoil, t_rfield::lgComptonOn, t_dynamics::lgCoolHeat, t_atmdat::lgCTOn, GrainVar::lgDColOn, t_rfield::lgDoLineTrans, t_rt::lgElecScatEscape, t_CoolHeavy::lgFreeOn, t_rt::lgFstOn, t_mole_global::lgGrain_mole_deplete, GrainVar::lgGrainElectrons, t_ionbal::lgGrainIonRecom, GrainVar::lgGrainPhysicsOn, t_rfield::lgHeIIOTS, t_rfield::lgInducProcess, t_rfield::lgIonizReevaluate, t_dynamics::lgISO, t_rfield::lgKillOTSLine, t_rfield::lgKillOutCont, t_rfield::lgKillOutLine, t_pressure::lgLineRadPresOn, t_hyperfine::lgLya_pump_21cm, t_hydro::lgLyaFeIIPumpOn, t_rfield::lgLyaOTS, t_dynamics::lgMETALS, t_ionbal::lgNoCota, t_mole_global::lgNoHeavyMole, t_mole_global::lgNoMole, t_rfield::lgOpacityFine, t_rfield::lgOpacityReevaluate, t_opac::lgOpacStatic, t_ionbal::lgPhotoIoniz_On, t_phycon::lgPhysOK, t_thermal::lgPredNextTe, t_prt::lgPrintTime, t_continuum::lgPrtIsotropicCont, GrainVar::lgQHeatOn, t_opac::lgScatON, t_secondaries::lgSecOFF, t_rt::lgStarkON, t_save::lgSubtrCont, t_opac::lgUseFileOpac, GrainVar::lgWD01, mole_global, Parser::nMatch(), nWindLine, opac, t_opac::otsmin, phycon, pressure, Parser::PrintLine(), prt, rfield, rt, save, secondaries, and thermal.

Referenced by ParseCommands().

Here is the call graph for this function:

void ParseDrive ( Parser p)
void ParseElement ( Parser p)
void ParseExtinguish ( Parser p)
void ParseF_nu ( Parser p,
const char *  chType,
bool  lgNU2 
)

ParseF_nu parse intensity command parameters

Parameters
*chCard
*nqh
*ar1
*chType
lgNU2

Definition at line 9 of file parse_f_nu.cpp.

References cdEXIT, t_rfield::chRSpec, t_rfield::chSpNorm, DEBUG_ENTRY, EXIT_FAILURE, exp10(), Parser::FFmtRead(), fprintf(), ioQQQ, Parser::lgEOL(), t_rfield::lgTimeVary, LIMSPC, Parser::m_nqh, Parser::nMatch(), Parser::NoNumb(), t_rfield::range, rfield, and t_rfield::totpow.

Referenced by ParseF_nuSpecific(), ParseL_nu(), ParseNuF_nu(), and ParseNuL_nu().

Here is the call graph for this function:

void ParseFluc ( Parser p)
void ParseGlobule ( Parser p)
void ParseGrain ( Parser p)
void ParseGrid ( Parser p)
void ParseHDEN ( Parser p)
void ParseIlluminate ( Parser p)
void ParseInit ( Parser p)

ParseInit parse the init command

Definition at line 10 of file parse_init.cpp.

References AS_LOCAL_DATA, cdRead(), t_input::curInclLevel, DEBUG_ENTRY, fprintf(), Parser::GetQuote(), input, INPUT_LINE_LENGTH, ioQQQ, lgInputEOF(), Parser::nMatch(), open_data(), read_whole_line(), and Parser::StringError().

Referenced by cdRead().

Here is the call graph for this function:

void ParseInterp ( Parser p)
void ParseIonPar ( Parser p,
char  chType 
)
void ParseIonParI ( Parser p)

ParseIonParI parse the ionization parameter command (IONI variant)

Parameters
*nqh
*chCard
*chType

Definition at line 11 of file parse_ionpar.cpp.

References ParseIonPar().

Referenced by ParseCommands(), and ParseTest().

Here is the call graph for this function:

void ParseIonParX ( Parser p)

ParseIonParX parse the ionization parameter command (XI variant)

Parameters
*nqh
*chCard
*chType

Definition at line 15 of file parse_ionpar.cpp.

References ParseIonPar().

Referenced by ParseCommands().

Here is the call graph for this function:

void ParseMap ( Parser p)

ParseMap parse map command to produce map of heating and cooling

Definition at line 9 of file parse_map.cpp.

References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, exp10(), Parser::FFmtRead(), fprintf(), hcmap, ioMAP, ioQQQ, Parser::lgEOL(), t_hcmap::MapZone, Parser::nMatch(), and t_hcmap::RangeMap.

Referenced by ParseCommands().

Here is the call graph for this function:

void ParseMetal ( Parser p)
void ParseNorm ( Parser p)
void ParseOptimize ( Parser p)
void ParsePlot ( Parser p)

ParsePlot parse the plot command

Definition at line 16 of file parse_plot.cpp.

References cdEXIT, t_plotCom::chPType, DEBUG_ENTRY, EXIT_FAILURE, fprintf(), ioQQQ, t_plotCom::lgPlotON, t_plotCom::lgPltTrace, NDPLOT, Parser::nMatch(), t_plotCom::nplot, ParsePlotRangeContin(), ParsePlotRangeOption(), and plotCom.

Referenced by ParseCommands().

Here is the call graph for this function:

void ParsePowerlawContinuum ( Parser p)
void ParsePrint ( Parser p)

ParsePrint parse the print command

Parameters
*chCard

Definition at line 116 of file parse_print.cpp.

References broke, cdEXIT, t_elementnames::chElementName, cpu, DEBUG_ENTRY, elementnames, EXIT_FAILURE, exp10(), Parser::FFmtRead(), fprintf(), Parser::GetElem(), Parser::GetQuote(), Parser::getWave(), h2, t_cpu::i(), Singleton< module_list >::Inst(), ioQQQ, ipH_LIKE, ipHE_LIKE, ipHELIUM, ipHYDROGEN, iso_sp, Parser::lgEOL(), t_prt::lgFaintOn, t_prt::lgFntSet, t_prt::lgOnlyHead, t_prt::lgOnlyZone, t_prt::lgPrintBlock, t_prt::lgPrintBlockEmergent, t_prt::lgPrintBlockIntrinsic, t_prt::lgPrintColumns, t_broke::lgPrintFixits, t_prt::lgPrintFluxEarth, t_prt::lgPrintHeating, t_prt::lgPrintLineAirWavelengths, t_prt::lgPrintLineCumulative, t_prt::lgPrnAges, t_prt::lgPrnColl, lgPrnErr, t_prt::lgPrnHeat, t_prt::lgPrnInwd, t_prt::lgPrnIsoCollapsed, t_prt::lgPrnLineCell, t_prt::lgPrnPump, t_prt::lgPrtArry, t_prt::lgPrtCitations, t_iso_sp::lgPrtDepartCoef, t_prt::lgPrtLastIt, t_iso_sp::lgPrtLevelPops, t_prt::lgPrtLineArray, t_prt::lgPrtLineLog, t_prt::lgPrtMaser, t_prt::lgPrtTau, t_prt::lgSortLineIntensity, t_prt::lgSortLines, t_prt::lgSortLineWavelength, t_prt::lgSurfaceBrightness, t_prt::lgSurfaceBrightness_SR, LIMELM, LineSave, module_list::m_l, t_prt::matrix, MAX2, diatomics::nElecLevelOutput, Parser::nMatch(), Parser::NoNumb(), t_prt::nPrnLineCell, ParsePrtLineSum(), t_cpu_i::printDataPath(), prt, prt_constants(), t_prt::PrtTauFnt, t_prt_matrix::setSpecies(), t_LineSave::sig_figs, t_LineSave::sig_figs_max, t_prt::TooFaint, t_prt::wlSort1, and t_prt::wlSort2.

Referenced by ParseCommands().

Here is the call graph for this function:

void ParsePrtLineSum ( Parser p)
void ParseRadius ( Parser p)
void ParseRangeOption ( Parser p)

ParseRangeOption parse the range option on the luminosity command

Definition at line 8 of file parse_rangeoption.cpp.

References cdEXIT, DEBUG_ENTRY, t_mesh::egamry(), t_mesh::emm(), EXIT_FAILURE, exp10(), Parser::FFmtRead(), fprintf(), ioQQQ, Parser::lgEOL(), Parser::m_nqh, MAX2, MIN2, Parser::nMatch(), t_rfield::range, rfield, and Parser::set_point().

Referenced by ParseIntensity(), ParseLuminosity(), ParsePhi(), and ParseQH().

Here is the call graph for this function:

void ParseRatio ( Parser p)
template<typename T , typename V >
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

Definition at line 273 of file parser.h.

References Parser::nWord().

Referenced by ParseAge().

Here is the call graph for this function:

void ParseSave ( Parser p)

ParseSave parse the save command

Parameters
*chCard

code printed log quantities, historically. Maintain backwards compatibility

Definition at line 85 of file parse_save.cpp.

References cdEXIT, cdGetLineList(), t_save::chConSavEnr, t_elementnames::chElementNameShort, t_elementnames::chElementSym, t_save::chFileName, t_save::chFilenamePrefix, t_save::chGridPrefix, ChkUnits(), t_save::chLineListLabel, t_save::chOpcTyp, t_save::chPunRltType, t_save::chSave, t_save::chSaveArgs, t_save::chSaveSpecies, t_save::chSpeciesDominantRates, t_input::chTitle, t_save::contSaveSpeciesLabel, DEBUG_ENTRY, t_mesh::egamry(), elementnames, t_save::emisfreq, t_mesh::emm(), EXIT_FAILURE, exp10(), Parser::FFmtRead(), save_species_bands::filename, t_save::FITStype, fprintf(), Parser::GetElem(), Parser::GetQuote(), grid, h2, diatomics::H2_ParseSave(), hcmap, hd, input, INPUT_LINE_LENGTH, Singleton< t_version >::Inst(), ioQQQ, ipCARBON, ipHELIUM, ipHYDROGEN, ipOXYGEN, SaveParams::ipPnunit, t_save::ipSaveGrid, is_odd(), iterations, t_save::lgCumulative, t_save::lgEmergent, Parser::lgEOL(), t_save::lgFITS, t_save::lgHashEndIter, t_grid::lgInsideGrid, t_save::lgLineListRatio, t_save::lgLinEvery, t_save::lgNoClobber, t_save::lgPrtIsotropicCont, t_save::lgPrtOldStyleLogs, t_save::lgPunContinuum, t_save::lgPunLstIter, t_save::lgSaveEveryZone, t_rfield::lgSaveOpacityFine, t_save::lgSaveToSeparateFiles, LIMELM, LIMPUN, t_save::LinEvery, makeChemical(), t_hcmap::MapZone, MAX2, MIN2, t_iterations::nend, t_save::nLineList, Parser::nMatch(), Parser::nMatchErase(), Parser::NoNumb(), t_save::nsave, t_save::nSaveEveryZone, NUM_OUTPUT_TYPES, t_save::optname, t_save::params, parse_save_average(), parse_save_line(), Parse_Save_Line_RT(), t_save::punarg, t_hcmap::RangeMap, rfield, Energy::Ryd(), save, t_save::SaveLineListFree(), Energy::set(), sncatf(), t_save::specBands, specBandsExists(), t_save::SpeciesBandFile, save_species_bands::speciesLabel, sprt_wl(), Parser::StandardEnergyUnit(), Parser::StringError(), trimTrailingWhiteSpace(), and t_save::wlLineList.

Referenced by ParseCommands().

Here is the call graph for this function:

void ParseSet ( Parser p)

ParseSet parse the set command

Definition at line 38 of file parse_set.cpp.

References t_dynamics::AdvecLengthInit, atmdat, cdEXIT, t_rfield::chCumuType, t_save::chFilenamePrefix, t_hmi::chGrainFormPump, t_hmi::chH2_small_model_type, t_save::chHashString, t_hmi::chJura, GrainVar::chPAH_abundance, t_dynamics::chPresMode, t_conv::chSolverEden, t_optimize::chVarFmt, t_atmdat::CIRCData, t_atmdat::collstrDefault, t_hyperfine::CONSTANT, continuum, conv, cpu, DEBUG_ENTRY, dense, DEPTH_OFFSET, t_atmdat::DIMA, t_ionbal::DR_mean_scale, t_radius::drChange, dynamics, t_conv::EdenErrorAllowed, t_dense::EdenFraction, t_dense::EdenSet, t_mesh::egamry(), t_mesh::emm(), energy(), t_continuum::EnergyKshell, t_hyperfine::EXCITATION, EXIT_FAILURE, exp10(), Parser::FFmtRead(), t_rfield::fine_ener_hi, t_rfield::fine_ener_lo, t_rfield::fine_opac_nelem, t_rfield::fine_opac_nresolv, t_rfield::FluxFaint, fprintf(), t_conv::GasPhaseAbundErrorAllowed, Parser::GetElem(), Parser::GetQuote(), GrainVar::GrainHeatScaleFactor, t_ionbal::guess_noise, gv, t_hmi::H2_frac_abund_set, hcmap, t_dense::HCorrFac, t_atmdat::HCTAlex, t_conv::HeatCoolRelErrorAllowed, hmi, t_atmdat::HYBRID, hyperfine, t_cpu::i(), init_genrand(), input, Singleton< t_ADfA >::Inst(), Singleton< T >::Inst(), ionbal, t_conv::IonizErrorAllowed, ioQQQ, iso_ctrl, t_iterations::iter_malloc, iterations, t_hyperfine::KINETIC, GrainVar::lgBakesPAH_heat, t_continuum::lgCheckEnergyEveryZone, t_isoCTRL::lgCollStrenThermAver, t_iterations::lgConverge_set, t_secondaries::lgCSetOn, t_prt::lgDiffuseInward, t_prt::lgDiffuseOutward, t_ionbal::lgDRsup, t_iterations::lgEndDflt, Parser::lgEOL(), t_dynamics::lgEquilibrium, t_mole_global::lgFederman, t_radius::lgFixed, t_save::lgFLUSH, t_atmdat::lgGbarOn, t_isoCTRL::lgInd2nu_On, t_atmdat::lgInnerShell_Kisielius, t_atmdat::lgInnerShellLine_on, t_hmi::lgLeiden_Keep_ipMH2s, t_hmi::lgLeidenCRHack, t_mole_global::lgLeidenHack, t_save::lgLuminosityOld, t_opac::lgNegOpacIO, t_mole_global::lgNeutrals, t_ionbal::lgNewTrim, t_mole_global::lgNonEquilChem, t_NumDeriv::lgNumDeriv, t_phycon::lgPhysOK, t_mole_global::lgProtElim, lgPrtSciNot, t_radius::lgSdrmaxRel, t_radius::lgSdrminRel, t_dynamics::lgSetPresMode, t_radius::lgSMinON, t_prt::lgSourceReflected, t_prt::lgSourceTransmitted, t_mole_global::lgStancil, lgTestCodeEnabled, t_ionbal::lgTrimhiOn, t_ionbal::lgTrimloOn, t_conv::lgUpdateCouplings, t_optimize::lgVarOn, t_iterations::lim_iter, t_iterations::lim_zone, LIMELM, t_conv::limPres2Ioniz, 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, t_hyperfine::LyaSourceFunctionShape_assumed, MAX2, MIN2, mole_global, t_dynamics::n_initial_relax, adjPseudoCont::nBins, NCHU, t_save::ncSaveSkip, t_iterations::nend, t_iterations::nEndDflt, nint(), t_rt::nLineContShield, t_hcmap::nMapStep, Parser::nMatch(), Parser::NoNumb(), t_optimize::nparm, t_input::nRead, t_save::nsave, NumDeriv, t_optimize::nvarxt, t_optimize::nvfpnt, opac, optimize, peimbt, PHFIT95, PHFIT96, phycon, t_conv::PressureErrorAllowed, Parser::PrintLine(), prt, radius, t_hmi::rate_h2_form_grains_set, t_save::Resolution, t_save::ResolutionAbs, rfield, rt, save, t_hmi::ScaleJura, t_radius::sdrmax, t_radius::sdrmin, t_radius::sdrmin_rel_depth, secondaries, t_ADfA::set_version(), t_cpu_i::setAssertAbort(), t_secondaries::SetCsupra, Parser::setEOL(), SetNChrgStates(), t_save::setPseudoCont, t_dynamics::ShockDepth, t_dynamics::ShockMach, SMALLFLOAT, adjPseudoCont::speciesLabel, Parser::StandardEnergyUnit(), StopCalc, t_hmi::Tad, t_StopCalc::TeFloor, t_phycon::TEMP_LIMIT_HIGH, t_phycon::TEMP_LIMIT_LOW, t_ionbal::trimhi, t_ionbal::trimlo, trimTrailingWhiteSpace(), t_peimbt::tsqden, t_optimize::varang, t_optimize::vincr, t_optimize::vparm, t_save::WeakHeatCool, adjPseudoCont::wlHi, and adjPseudoCont::wlLo.

Referenced by ParseCommands(), and ParseTest().

Here is the call graph for this function:

void ParseSphere ( Parser p)

ParseSphere parse the sphere command

Definition at line 9 of file parse_sphere.cpp.

References t_geometry::covgeo, t_geometry::covrt, DEBUG_ENTRY, Parser::FFmtRead(), fprintf(), geometry, ioQQQ, Parser::lgEOL(), t_opac::lgScatON, t_geometry::lgSphere, t_geometry::lgStatic, t_geometry::lgStaticNoIt, Parser::nMatch(), and opac.

Referenced by ParseCommands().

Here is the call graph for this function:

void ParseState ( Parser p)

ParseState save or recover previous state of the code

Parameters
*chCard

Definition at line 9 of file parse_state.cpp.

References AS_LOCAL_ONLY, cdEXIT, t_state::chGetFilename, t_state::chPutFilename, DEBUG_ENTRY, EXIT_FAILURE, fprintf(), Parser::GetQuote(), ioQQQ, t_state::lgGet_state, t_state::lgPut_state, t_state::lgPutAll, t_state::lgState_print, Parser::nMatch(), open_data(), state, and Parser::StringError().

Referenced by ParseCommands().

Here is the call graph for this function:

void ParseStop ( Parser p)

ParseStop parse the stop command

Definition at line 17 of file parse_stop.cpp.

References t_StopCalc::AV_extended, t_StopCalc::AV_point, cdEXIT, species::chLabel, t_StopCalc::chSpeciesColumn, t_StopCalc::chStopLabel1, t_StopCalc::chStopLabel2, t_optimize::chVarFmt, t_StopCalc::col_H0_ov_Tspin, t_StopCalc::col_h2, t_StopCalc::col_h2_nut, t_StopCalc::col_monoxco, t_StopCalc::col_species, t_StopCalc::colnut, t_StopCalc::colpls, t_StopCalc::ContIndex, t_StopCalc::ContNFnu, DEBUG_ENTRY, t_mesh::egamry(), t_mesh::emm(), energy(), EXIT_FAILURE, exp10(), Parser::FFmtRead(), fprintf(), geometry, Parser::GetQuote(), Parser::getWave(), Parser::getWaveOpt(), t_StopCalc::HColStop, input, Singleton< T >::Inst(), ioQQQ, t_iterations::iter_malloc, iterations, t_iterations::lgEndDflt, Parser::lgEOL(), t_StopCalc::lgStop21cm, t_StopCalc::lgStopSpeciesColumn, t_optimize::lgVarOn, t_geometry::lgZoneSet, max(), MAX2, MIN2, MXSTPL, NCHLAB, t_StopCalc::nEmergent, t_iterations::nend, Parser::nMatch(), Parser::NoNumb(), t_optimize::nparm, t_input::nRead, t_StopCalc::nstpl, t_StopCalc::nTotalIonizStop, t_optimize::nvarxt, t_optimize::nvfpnt, optimize, phycon, Parser::PrintLine(), rfield, SMALLFLOAT, Parser::StandardEnergyUnit(), Parser::StandardFluxUnit(), StopCalc, t_StopCalc::StopDepleteFrac, t_StopCalc::StopElecDensity, t_StopCalc::StopElecFrac, t_StopCalc::StopH2MoleFrac, t_StopCalc::StopHPlusFrac, t_StopCalc::StopLineWl1, t_StopCalc::StopLineWl2, t_iterations::StopRadius, t_iterations::StopThickness, t_StopCalc::StopVelocity, t_StopCalc::stpint, Parser::StringError(), t_StopCalc::tauend, t_StopCalc::taunu, t_phycon::TEMP_LIMIT_HIGH, t_phycon::TEMP_LIMIT_LOW, t_StopCalc::TempHiStopIteration, t_StopCalc::TempHiStopZone, t_StopCalc::TempLoStopIteration, t_StopCalc::TempLoStopZone, trimTrailingWhiteSpace(), t_optimize::vincr, t_optimize::vparm, and t_StopCalc::xMass.

Referenced by ParseCommands(), and ParseTest().

Here is the call graph for this function:

void ParseTable ( Parser p)

ParseTable parse the table read command

Parameters
*nqh
*chCard
*ar1

Definition at line 94 of file parse_table.cpp.

References AS_LOCAL_DATA_TRY, AS_LOCAL_ONLY_TRY, ASSERT, AtlasInterpolate(), AtmospheresAvail(), BIGDOUBLE, caps(), cdEXIT, t_input::chDelimiter, chLINE_LIST, t_rfield::chRSpec, t_rfield::chSpNorm, t_rfield::chSpType, t_optimize::chVarFmt, CoStarInterpolate(), DEBUG_ENTRY, t_mesh::egamry(), t_mesh::emm(), EXIT_FAILURE, EXIT_SUCCESS, exp10(), Parser::FFmtRead(), FFmtRead(), FILENAME_PATH_LENGTH_2, fnuHM96, fnuism, fprintf(), get_ptr(), Parser::GetQuote(), GridInterpolate(), HaardtMadauInterpolate(), t_rfield::Illumination, IM_COSTAR_AGE_MZAMS, IM_COSTAR_MZAMS_AGE, IM_COSTAR_TEFF_LOGG, IM_COSTAR_TEFF_MODID, IM_ILLEGAL_MODE, input, INPUT_LINE_LENGTH, ioQQQ, t_mesh::ipointC(), Illuminate::ISOTROPIC, KhaireSrianandInterpolate(), Kurucz79Interpolate(), t_rfield::lgBeamed, lgCalled, t_trace::lgConBug, Parser::lgEOL(), t_rfield::lgMustBlockHIon, t_rfield::lgSphericalDilution, t_rfield::lgTimeVary, t_trace::lgTrace, t_optimize::lgVarOn, LIMEXT, LIMSPC, Parser::m_nqh, MDIM, MihalasInterpolate(), NAGN, t_rfield::ncont, NDRAINE, NHM96, NISM, Parser::nMatch(), nMatch(), Parser::nMatchErase(), Parser::NoNumb(), t_optimize::nparm, t_input::nRead, t_rfield::nShape, t_optimize::nvarxt, t_optimize::nvfpnt, open_data(), optimize, t_rfield::range, RauchInterpolateCOWD(), RauchInterpolateHCa(), RauchInterpolateHelium(), RauchInterpolateHNi(), RauchInterpolateHpHe(), RauchInterpolateHydr(), RauchInterpolatePG1159(), read_whole_line(), ReadTable(), resetBltin(), rfield, Energy::Ryd(), Energy::set(), StandardEnergyUnit(), t_rfield::tFluxLog, TL_BSTAR, TL_OBSTAR, TL_OSTAR, TlustyInterpolate(), t_rfield::tNu, tnudrn, tnuHM96, tnuism, TotalInsanity(), t_rfield::totpow, trace, tslagn, tsldrn, t_rfield::tslop, UNUSED, t_optimize::varang, t_optimize::vincr, t_optimize::vparm, WernerInterpolate(), WMBASICInterpolate(), and ZeroContin().

Referenced by ParseBackgrd(), ParseCommands(), and ParseTest().

Here is the call graph for this function:

void ParseTest ( Parser p)
void ParseTLaw ( Parser p)
void ParseTrace ( Parser p)