Cloudy
Spectral Synthesis Code for Astrophysics
|
#include "cddefines.h"
#include "parse.h"
#include "stopcalc.h"
#include "abund.h"
#include "geometry.h"
#include "dense.h"
#include "grid.h"
#include "grainvar.h"
#include "dynamics.h"
#include "magnetic.h"
#include "trace.h"
#include "atmdat.h"
#include "h2.h"
#include "rt.h"
#include "thermal.h"
#include "opacity.h"
#include "called.h"
#include "wind.h"
#include "hextra.h"
#include "iterations.h"
#include "radius.h"
#include "input.h"
#include "monitor_results.h"
#include "phycon.h"
#include "fudgec.h"
#include "version.h"
#include "conv.h"
#include "cosmology.h"
#include "pressure.h"
#include "parser.h"
#include "dark_matter.h"
#include "iso.h"
#include "mole.h"
#include "parse_species.h"
#include "doppvel.h"
#include "rfield.h"
#include "prt.h"
#include "ran.h"
void ParseAperture | ( | Parser & | p | ) |
References cdEXIT, t_geometry::covaper, DEBUG_ENTRY, EXIT_FAILURE, Parser::FFmtRead(), fprintf(), geometry, t_geometry::iEmissPower, ioQQQ, Parser::lgEOL(), t_geometry::lgSizeSet, Parser::nMatch(), Parser::NoNumb(), and t_geometry::size.
Referenced by ParseCommands().
void ParseBremsstrahlung | ( | Parser & | p | ) |
References cdEXIT, t_rfield::chSpType, t_optimize::chVarFmt, t_rfield::cutoff, DEBUG_ENTRY, EXIT_FAILURE, exp10(), Parser::FFmtRead(), fprintf(), input, ioQQQ, Parser::lgEOL(), t_optimize::lgVarOn, LIMSPC, Parser::nMatch(), Parser::NoNumb(), t_optimize::nparm, t_input::nRead, t_rfield::nShape, t_optimize::nvarxt, t_optimize::nvfpnt, optimize, rfield, t_rfield::slope, t_optimize::vincr, and t_optimize::vparm.
Referenced by ParseCommands().
void ParseCExtra | ( | Parser & | p | ) |
References t_thermal::cextpw, t_thermal::CoolExtra, exp10(), Parser::FFmtRead(), t_thermal::lgCExtraOn, Parser::lgEOL(), Parser::NoNumb(), and thermal.
Referenced by ParseCommands().
void ParseCMBOuter | ( | Parser & | p | ) |
References cosmology, Parser::FFmtRead(), GetDensity(), Parser::lgEOL(), t_rfield::lgTimeVary, Parser::m_nqh, Parser::nMatch(), ParseCMB(), ParseHDEN(), t_cosmology::redshift_current, t_cosmology::redshift_start, rfield, Parser::set_point(), and Parser::setline().
Referenced by ParseCommands().
void ParseCommands | ( | void | ) |
ParseCommands main command line parser, called by Cloudy to decode commands, it then call other routines to parse specific commands
References abund, CloudyCommand::action, called, cdEXIT, t_dense::chDenseLaw, t_rfield::chRSpec, t_StopCalc::col_h2, t_StopCalc::col_h2_nut, t_StopCalc::colnut, t_StopCalc::colpls, COLUMN_INIT, Parser::Command(), Parser::CommandError(), t_thermal::ConstGrainTemp, t_thermal::ConstTemp, conv, t_geometry::covaper, t_geometry::covgeo, cpu, t_input::crd, t_hextra::cryden, DEBUG_ENTRY, dense, dense_fabden(), dense_parametric_wind(), t_dense::DensityPower, t_radius::depth, t_dense::DLW, Parser::doSetVar(), Parser::echo(), Wind::emdot, EXIT_FAILURE, t_pressure::external_mass, t_geometry::FillFac, fprintf(), t_dense::gas_phase, geometry, Parser::getline(), t_pressure::gravity_symmetry, grid, gv, h2, t_StopCalc::HColStop, hextra, t_cpu::i(), t_geometry::iEmissPower, t_input::init(), InitMonitorResults(), input, Singleton< t_version >::Inst(), ioQQQ, ipHYDROGEN, Parser::isComment(), Parser::isVar(), t_iterations::iter_alloc, iterations, t_iterations::itermx, Parser::last(), t_abund::lgAbnReference, t_conv::lgAutoIt, Wind::lgBallistic(), t_rfield::lgBlockHIon, t_opac::lgCaseB, t_iterations::lgConverge_set, GrainVar::lgDColOn, t_rfield::lgDoLineTrans, diatomics::lgEnabled, t_grid::lgGrid, t_rfield::lgIonizReevaluate, t_cpu_i::lgMPI_talk(), t_rfield::lgMustBlockHIon, t_grid::lgNegativeIncrements, t_mole_global::lgNoMole, t_optimize::lgNoVary, t_rfield::lgOpacityFine, t_rfield::lgOpacityReevaluate, t_radius::lgPredLumin, t_prt::lgPrintHTML, t_prt::lgPrintTime, t_radius::lgRadiusKnown, t_grid::lgSaveXspec, t_rfield::lgSphericalDilution, Wind::lgStatic(), t_called::lgTalk, t_trace::lgTrace, t_optimize::lgTrOpt, t_trace::lgTrOvrd, t_optimize::lgVarOn, t_input::lgVisibilityStatus, t_iterations::lim_iter, t_iterations::lim_zone, LIMPAR, LIMSPC, Parser::m_lgDSet, Parser::m_lgEOF, Parser::m_nqh, min(), MIN2, MIN3, mole_global, CloudyCommand::name, t_iterations::nend, t_grid::nGridCommands, Parser::nMatch(), t_optimize::nOptimiz, t_optimize::nparm, t_rfield::nShape, t_optimize::nTrOpt, NULL, opac, optimize, ParseAbsMag(), ParseAbundances(), ParseAge(), ParseAgn(), ParseAperture(), ParseBackgrd(), ParseBlackbody(), ParseBremsstrahlung(), ParseCaseB(), ParseCExtra(), ParseChemistry(), ParseCMBOuter(), ParseCompile(), ParseConstant(), ParseConvHighT(), ParseCoronal(), ParseCosmicRays(), ParseCosmology(), ParseCovering(), ParseCrashDo(), ParseCylinder(), ParseDarkMatter(), ParseDatabase(), ParseDielectronic(), ParseDiffuse(), ParseDistance(), ParseDLaw(), ParseDont(), ParseDoubleTau(), ParseDynaTime(), ParseDynaWind(), ParseEden(), ParseElement(), ParseEnergy(), ParseExtinguish(), ParseF_nuSpecific(), ParseFail(), ParseFill(), ParseFluc(), ParseForceTemperature(), ParseFudge(), ParseGlobule(), ParseGrain(), ParseGravity(), ParseGrid(), ParseHDEN(), ParseHeLike(), ParseHelp(), ParseHExtra(), ParseHydrogen(), ParseIlluminate(), ParseInitCount(), ParseIntensity(), ParseInterp(), ParseIonParI(), ParseIonParX(), ParseIterations(), ParseL_nu(), ParseLaser(), ParseLuminosity(), ParseMagnet(), ParseMap(), ParseMetal(), ParseMonitorResults(), ParseNeutrons(), ParseNorm(), ParseNuF_nu(), ParseNuL_nu(), ParseOptimize(), ParsePGrains(), ParsePhi(), ParsePowerlawContinuum(), ParsePrint(), ParseQH(), ParseRadius(), ParseRatio(), ParseRoberto(), ParseSave(), ParseSet(), ParseSpecial(), ParseSpecies(), ParseSphere(), ParseStop(), ParseTable(), ParseTauMin(), ParseTest(), ParseTitle(), ParseTLaw(), ParseTolerance(), ParseTrace(), ParseTurbulence(), ParseVLaw(), phycon, pressure, t_ran::print_seed(), prt, radius, t_radius::Radius, ran, t_radius::rdfalt, rfield, t_radius::rinner, t_dense::SetGasPhaseDensity(), Parser::setline(), StopCalc, t_iterations::StopThickness, t_rfield::TableRadius, DepthTable::tabval(), t_StopCalc::tauend, t_phycon::TEMP_STOP_DEFAULT, t_StopCalc::TempLoStopZone, thermal, t_rfield::totpow, trace, t_hextra::TurbHeat, wind, and Wind::windv0.
void ParseConvHighT | ( | Parser & | ) |
References t_thermal::lgTeHigh, and thermal.
Referenced by ParseCommands().
void ParseCovering | ( | Parser & | p | ) |
References cdEXIT, t_geometry::covgeo, t_geometry::covrt, DEBUG_ENTRY, EXIT_FAILURE, exp10(), Parser::FFmtRead(), fprintf(), geometry, ioQQQ, Parser::lgEOL(), and Parser::NoNumb().
Referenced by ParseCommands().
void ParseCylinder | ( | Parser & | p | ) |
References t_radius::CylindHigh, exp10(), Parser::FFmtRead(), t_radius::lgCylnOn, Parser::lgEOL(), Parser::NoNumb(), and radius.
Referenced by ParseCommands().
void ParseDarkMatter | ( | Parser & | p | ) |
References cdEXIT, t_optimize::chVarFmt, dark, DEBUG_ENTRY, EXIT_FAILURE, fprintf(), Parser::getNumberCheckAlwaysLog(), Parser::getNumberDefaultAlwaysLog(), input, ioQQQ, t_dark_matter::lgNFW_Set, t_optimize::lgVarOn, Parser::nMatch(), t_optimize::nparm, t_input::nRead, t_optimize::nvarxt, t_optimize::nvfpnt, optimize, t_dark_matter::r_200, t_dark_matter::r_s, t_optimize::vincr, and t_optimize::vparm.
Referenced by ParseCommands().
void ParseDatabase | ( | Parser & | p | ) |
References atmdat, cdEXIT, t_atmdat::chCloudyChiantiFile, t_atmdat::chLamdaFile, t_atmdat::chStoutFile, DEBUG_ENTRY, EXIT_FAILURE, Parser::FFmtRead(), fprintf(), Parser::GetQuote(), ioQQQ, ipH_LIKE, ipHE_LIKE, iso_ctrl, t_atmdat::lgChiantiExp, t_atmdat::lgChiantiLevelsSet, t_atmdat::lgChiantiLvl2Hybrid, t_atmdat::lgChiantiOn, t_atmdat::lgChiantiPrint, Parser::lgEOL(), t_atmdat::lgLamdaLevelsSet, t_atmdat::lgLamdaOn, t_atmdat::lgLamdaPrint, t_isoCTRL::lgPrintNumberOfLevels, t_atmdat::lgStoutLevelsSet, t_atmdat::lgStoutLvl2Hybrid, t_atmdat::lgStoutOn, t_atmdat::lgStoutPrint, t_atmdat::nChiantiMaxLevels, t_atmdat::nChiantiMaxLevelsFe, t_atmdat::nLamdaMaxLevels, Parser::nMatch(), Parser::NoNumb(), t_atmdat::nStoutMaxLevels, t_atmdat::nStoutMaxLevelsFe, ParseDatabaseH2(), and ParseDatabaseISO().
Referenced by ParseCommands().
void ParseDielectronic | ( | Parser & | ) |
References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, fprintf(), and ioQQQ.
Referenced by ParseCommands().
void ParseDiffuse | ( | Parser & | p | ) |
References cdEXIT, t_rfield::chDffTrns, DEBUG_ENTRY, EXIT_FAILURE, Parser::FFmtRead(), fprintf(), ioQQQ, Parser::lgEOL(), t_rfield::lgOutOnly, Parser::nMatch(), and rfield.
Referenced by ParseCommands().
void ParseDistance | ( | Parser & | p | ) |
References t_optimize::chVarFmt, t_radius::distance, exp10(), Parser::FFmtRead(), input, Parser::lgEOL(), t_optimize::lgVarOn, Parser::nMatch(), Parser::NoNumb(), t_optimize::nparm, t_input::nRead, t_optimize::nvarxt, t_optimize::nvfpnt, optimize, radius, t_optimize::vincr, and t_optimize::vparm.
Referenced by ParseCommands().
void ParseDoubleTau | ( | Parser & | ) |
References t_rt::DoubleTau, and rt.
Referenced by ParseCommands().
void ParseEden | ( | Parser & | p | ) |
References t_optimize::chVarFmt, dense, t_dense::EdenExtra, exp10(), Parser::FFmtRead(), input, Parser::lgEOL(), t_phycon::lgPhysOK, t_optimize::lgVarOn, Parser::NoNumb(), t_optimize::nparm, t_input::nRead, t_optimize::nvarxt, t_optimize::nvfpnt, optimize, phycon, t_optimize::varang, t_optimize::vincr, and t_optimize::vparm.
Referenced by ParseCommands().
void ParseEnergy | ( | Parser & | p | ) |
References ASSERT, cdEXIT, t_rfield::chRSpec, t_rfield::chSpNorm, t_optimize::chVarFmt, DEBUG_ENTRY, t_mesh::egamry(), t_mesh::emm(), EXIT_FAILURE, Parser::FFmtRead(), fprintf(), input, ioQQQ, Parser::lgEOL(), t_rfield::lgTimeVary, t_optimize::lgVarOn, LIMSPC, Parser::m_nqh, Parser::nMatch(), Parser::NoNumb(), t_optimize::nparm, t_input::nRead, t_optimize::nvarxt, t_optimize::nvfpnt, optimize, t_rfield::range, rfield, t_rfield::totpow, t_optimize::vincr, and t_optimize::vparm.
Referenced by ParseCommands().
void ParseF_nuSpecific | ( | Parser & | p | ) |
void ParseFail | ( | Parser & | p | ) |
References conv, Parser::FFmtRead(), fprintf(), ioQQQ, Parser::lgEOL(), t_conv::lgMap, t_conv::LimFail, Parser::nMatch(), and Parser::NoNumb().
Referenced by ParseCommands().
void ParseFill | ( | Parser & | p | ) |
References called, t_optimize::chVarFmt, exp10(), Parser::FFmtRead(), t_geometry::FillFac, t_geometry::filpow, t_geometry::fiscal, fprintf(), geometry, input, ioQQQ, Parser::lgEOL(), t_called::lgTalk, t_optimize::lgVarOn, Parser::nMatch(), Parser::NoNumb(), t_optimize::nparm, t_input::nRead, t_optimize::nvarxt, t_optimize::nvfpnt, optimize, t_optimize::varang, t_optimize::vincr, and t_optimize::vparm.
Referenced by ParseCommands().
void ParseForceTemperature | ( | Parser & | p | ) |
References t_thermal::ConstTemp, exp10(), Parser::FFmtRead(), fprintf(), ioQQQ, Parser::lgEOL(), Parser::nMatch(), Parser::NoNumb(), and thermal.
Referenced by ParseCommands().
void ParseFudge | ( | Parser & | p | ) |
References t_optimize::chVarFmt, Parser::FFmtRead(), t_fudgec::fudgea, fudgec, input, Parser::lgEOL(), t_optimize::lgOptimizeAsLinear, t_optimize::lgVarOn, NFUDGC, t_fudgec::nfudge, Parser::NoNumb(), t_optimize::nparm, t_input::nRead, t_optimize::nvarxt, t_optimize::nvfpnt, optimize, t_optimize::vincr, and t_optimize::vparm.
Referenced by ParseCommands().
void ParseGravity | ( | Parser & | p | ) |
References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, exp10(), t_pressure::external_mass, Parser::FFmtRead(), fprintf(), t_pressure::gravity_symmetry, ioQQQ, Parser::lgEOL(), Parser::nMatch(), pressure, and t_pressure::self_mass_factor.
Referenced by ParseCommands().
void ParseHeLike | ( | Parser & | ) |
References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, fprintf(), and ioQQQ.
Referenced by ParseCommands().
void ParseHelp | ( | Parser & | p | ) |
References DEBUG_ENTRY, Parser::help(), and ioQQQ.
Referenced by ParseCommands().
void ParseHExtra | ( | Parser & | p | ) |
References cdEXIT, t_optimize::chVarFmt, DEBUG_ENTRY, EXIT_FAILURE, exp10(), Parser::FFmtRead(), fprintf(), hextra, t_hextra::HextraScaleDensity, t_hextra::HextraSS_M, t_hextra::HextraSSalpha, t_hextra::HextraSSradius, input, ioQQQ, Parser::lgEOL(), t_hextra::lgHextraDensity, t_hextra::lgHextraDepth, t_hextra::lgHextraSS, t_hextra::lgTurbHeatVaryTime, t_optimize::lgVarOn, Parser::nMatch(), Parser::NoNumb(), t_optimize::nparm, t_input::nRead, t_optimize::nvarxt, t_optimize::nvfpnt, optimize, t_hextra::turback, t_hextra::TurbHeat, t_hextra::TurbHeatSave, t_hextra::turrad, t_optimize::vincr, and t_optimize::vparm.
Referenced by ParseCommands().
void ParseHydrogen | ( | Parser & | ) |
References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, fprintf(), and ioQQQ.
Referenced by ParseCommands().
void ParseInitCount | ( | Parser & | p | ) |
Referenced by ParseCommands().
void ParseIntensity | ( | Parser & | p | ) |
References ASSERT, cdEXIT, t_rfield::chRSpec, t_rfield::chSpNorm, t_optimize::chVarFmt, DEBUG_ENTRY, EXIT_FAILURE, Parser::FFmtRead(), fprintf(), input, ioQQQ, Parser::lgEOL(), t_rfield::lgTimeVary, t_optimize::lgVarOn, LIMSPC, Parser::m_nqh, Parser::nMatch(), Parser::NoNumb(), t_optimize::nparm, t_input::nRead, t_optimize::nvarxt, t_optimize::nvfpnt, optimize, ParseRangeOption(), t_rfield::range, rfield, t_rfield::totpow, t_optimize::vincr, and t_optimize::vparm.
Referenced by ParseCommands().
void ParseIterations | ( | Parser & | p | ) |
References t_conv::autocv, conv, Parser::FFmtRead(), t_iterations::iter_alloc, iterations, t_iterations::itermx, t_iterations::IterPrnt, t_conv::lgAllTransitions, t_conv::lgAutoIt, Parser::lgEOL(), MAX2, t_iterations::nend, Parser::nMatch(), t_iterations::StopRadius, and t_iterations::StopThickness.
Referenced by ParseCommands().
void ParseL_nu | ( | Parser & | p | ) |
void ParseLaser | ( | Parser & | p | ) |
References cdEXIT, t_rfield::chSpType, t_rfield::cutoff, DEBUG_ENTRY, EXIT_FAILURE, exp10(), Parser::FFmtRead(), fprintf(), ioQQQ, Parser::lgEOL(), LIMSPC, Parser::NoNumb(), t_rfield::nShape, rfield, and t_rfield::slope.
Referenced by ParseCommands().
void ParseLuminosity | ( | Parser & | p | ) |
References cdEXIT, t_rfield::chRSpec, t_rfield::chSpNorm, t_optimize::chVarFmt, DEBUG_ENTRY, t_mesh::egamry(), t_mesh::emm(), EXIT_FAILURE, Parser::FFmtRead(), fprintf(), input, ioQQQ, Parser::lgEOL(), t_rfield::lgTimeVary, t_optimize::lgVarOn, LIMSPC, Parser::m_nqh, Parser::nMatch(), Parser::NoNumb(), t_optimize::nparm, t_input::nRead, t_optimize::nvarxt, t_optimize::nvfpnt, optimize, ParseRangeOption(), t_rfield::range, rfield, t_rfield::totpow, t_optimize::vincr, and t_optimize::vparm.
Referenced by ParseCommands().
void ParseNeutrons | ( | Parser & | p | ) |
References t_hextra::effneu, exp10(), Parser::FFmtRead(), t_hextra::frcneu, hextra, Parser::lgEOL(), t_hextra::lgNeutrnHeatOn, and Parser::NoNumb().
Referenced by ParseCommands().
void ParseNuF_nu | ( | Parser & | p | ) |
void ParseNuL_nu | ( | Parser & | p | ) |
void ParsePGrains | ( | Parser & | ) |
References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, fprintf(), and ioQQQ.
Referenced by ParseCommands().
void ParsePhi | ( | Parser & | p | ) |
References ASSERT, cdEXIT, t_rfield::chRSpec, t_rfield::chSpNorm, t_optimize::chVarFmt, DEBUG_ENTRY, EXIT_FAILURE, Parser::FFmtRead(), fprintf(), input, ioQQQ, Parser::lgEOL(), t_rfield::lgTimeVary, t_optimize::lgVarOn, LIMSPC, Parser::m_nqh, Parser::nMatch(), Parser::NoNumb(), t_optimize::nparm, t_input::nRead, t_optimize::nvarxt, t_optimize::nvfpnt, optimize, ParseRangeOption(), t_rfield::range, rfield, t_rfield::totpow, t_optimize::vincr, and t_optimize::vparm.
Referenced by ParseCommands().
void ParseQH | ( | Parser & | p | ) |
References ASSERT, called, cdEXIT, t_rfield::chRSpec, t_rfield::chSpNorm, t_optimize::chVarFmt, DEBUG_ENTRY, EXIT_FAILURE, Parser::FFmtRead(), fprintf(), input, ioQQQ, Parser::lgEOL(), t_called::lgTalk, t_rfield::lgTimeVary, t_optimize::lgVarOn, LIMSPC, Parser::m_nqh, Parser::nMatch(), Parser::NoNumb(), t_optimize::nparm, t_input::nRead, t_optimize::nvarxt, t_optimize::nvfpnt, optimize, ParseRangeOption(), t_rfield::range, rfield, t_rfield::totpow, t_optimize::vincr, and t_optimize::vparm.
Referenced by ParseCommands().
void ParseRoberto | ( | Parser & | ) |
References t_radius::dRadSign, and radius.
Referenced by ParseCommands().
void ParseSpecial | ( | Parser & | ) |
References cdEXIT, DEBUG_ENTRY, and EXIT_FAILURE.
Referenced by ParseCommands().
void ParseTauMin | ( | Parser & | p | ) |
References exp10(), Parser::FFmtRead(), Parser::lgEOL(), Parser::NoNumb(), opac, and t_opac::taumin.
Referenced by ParseCommands().
void ParseTitle | ( | Parser & | p | ) |
References t_input::chTitle, Parser::GetQuote(), Parser::getRawTail(), and input.
Referenced by ParseCommands().
void ParseTolerance | ( | Parser & | ) |
References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, fprintf(), and ioQQQ.
Referenced by ParseCommands().
void ParseTurbulence | ( | Parser & | p | ) |
References cdEXIT, t_optimize::chVarFmt, DEBUG_ENTRY, t_DoppVel::DispScale, DoppVel, EXIT_FAILURE, exp10(), Parser::FFmtRead(), fprintf(), t_DoppVel::Heiles_Troland_F, input, ioQQQ, Parser::lgEOL(), t_DoppVel::lgTurb_pressure, t_DoppVel::lgTurbEquiMag, t_optimize::lgVarOn, Parser::nMatch(), Parser::NoNumb(), t_optimize::nparm, t_input::nRead, t_optimize::nvarxt, t_optimize::nvfpnt, optimize, Parser::PrintLine(), t_DoppVel::TurbVel, t_DoppVel::TurbVelZero, t_optimize::vincr, and t_optimize::vparm.
Referenced by ParseCommands().
void ParseVLaw | ( | Parser & | p | ) |
References ASSERT, DoppVel, Parser::FFmtRead(), t_DoppVel::lgTurbLawOn, and t_DoppVel::TurbVelLaw.
Referenced by ParseCommands().