cloudy trunk
Loading...
Searching...
No Matches
Functions
parse_commands.cpp File Reference
#include "cddefines.h"
#include "physconst.h"
#include "optimize.h"
#include "doppvel.h"
#include "stopcalc.h"
#include "abund.h"
#include "geometry.h"
#include "dense.h"
#include "plot.h"
#include "grid.h"
#include "rfield.h"
#include "grainvar.h"
#include "dynamics.h"
#include "magnetic.h"
#include "trace.h"
#include "atmdat.h"
#include "h2.h"
#include "mole.h"
#include "hmi.h"
#include "rt.h"
#include "thermal.h"
#include "opacity.h"
#include "atomfeii.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 "parse.h"
#include "cosmology.h"
#include "pressure.h"
#include "parser.h"
#include "dark_matter.h"
Include dependency graph for parse_commands.cpp:

Go to the source code of this file.

Functions

void ParseAperture (Parser &p)
 
void ParseAtom (Parser &p)
 
void ParseBremsstrahlung (Parser &p)
 
void ParseCExtra (Parser &p)
 
void ParseCMBOuter (Parser &p)
 
void ParseCosm (Parser &p)
 
void ParseCovering (Parser &p)
 
void ParseCylinder (Parser &p)
 
void ParseDarkMatter (Parser &p)
 
void ParseDielectronic (Parser &)
 
void ParseDiffuse (Parser &p)
 
void ParseDistance (Parser &p)
 
void ParseDoubleTau (Parser &)
 
void ParseEden (Parser &p)
 
void ParseEnergy (Parser &p)
 
void ParseFail (Parser &p)
 
void ParseFill (Parser &p)
 
void ParseF_nuSpecific (Parser &p)
 
void ParseForceTemperature (Parser &p)
 
void ParseFudge (Parser &p)
 
void ParsePGrains (Parser &)
 
void ParseGravity (Parser &p)
 
void ParseHeLike (Parser &)
 
void ParseHelp (Parser &)
 
void ParseHExtra (Parser &p)
 
void ParseConvHighT (Parser &)
 
void ParseHydrogen (Parser &)
 
void ParseInitCount (Parser &p)
 
void ParseIntensity (Parser &p)
 
void ParseIterations (Parser &p)
 
void ParseL_nu (Parser &p)
 
void ParseLaser (Parser &p)
 
void ParseLuminosity (Parser &p)
 
void ParseNeutrons (Parser &p)
 
void ParseNuF_nu (Parser &p)
 
void ParseNuL_nu (Parser &p)
 
void ParsePhi (Parser &p)
 
void ParseQH (Parser &p)
 
void ParseRoberto (Parser &)
 
void ParseSpecial (Parser &)
 
void ParseTauMin (Parser &p)
 
void ParseTitle (Parser &)
 
void ParseTolerance (Parser &)
 
void ParseVLaw (Parser &p)
 
void ParseTurbulence (Parser &p)
 
void ParseCommands (void)
 
void ParseAbundancesNonSolar (Parser &p)
 

Function Documentation

◆ ParseAbundancesNonSolar()

void ParseAbundancesNonSolar ( Parser p)

ParseAbundances parse and read in composition as set by abundances command

Parameters
*chCard
lgDSet

Definition at line 810 of file parse_commands.cpp.

References abund, t_abund::lgAbnSolar, and ParseAbundances().

Referenced by ParseCommands().

Here is the call graph for this function:

◆ ParseAperture()

void ParseAperture ( Parser p)

◆ ParseAtom()

void ParseAtom ( Parser p)

◆ ParseBremsstrahlung()

void ParseBremsstrahlung ( Parser p)

◆ ParseCExtra()

void ParseCExtra ( Parser p)

Definition at line 1100 of file parse_commands.cpp.

References t_thermal::cextpw, t_thermal::CoolExtra, Parser::FFmtRead(), t_thermal::lgCExtraOn, Parser::lgEOL(), Parser::NoNumb(), and thermal.

Referenced by ParseCommands().

Here is the call graph for this function:

◆ ParseCMBOuter()

void ParseCMBOuter ( Parser p)

◆ ParseCommands()

void ParseCommands ( void  )

ParseCommands main command line parser, called by Cloudy to decode commands, it then call other routines to parse specific commands

Definition at line 90 of file parse_commands.cpp.

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_hextra::cryden, DEBUG_ENTRY, dense, dense_fabden(), dense_parametric_wind(), dense_tabden(), t_dense::DensityPower, t_radius::depth, Parser::doSetVar(), Parser::echo(), Wind::emdot, EXIT_FAILURE, t_pressure::external_mass, t_geometry::FillFac, 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, t_input::iReadWay, Parser::isCommandComment(), Parser::isVar(), t_iterations::iter_malloc, iterations, t_iterations::itermx, Parser::last(), t_abund::lgAbnSolar, 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_plotCom::lgPlotON, t_grid::lgSaveXspec, t_input::lgSetNoBuffering, Wind::lgStatic(), t_called::lgTalk, t_trace::lgTrace, t_optimize::lgTrOpt, t_trace::lgTrOvrd, t_optimize::lgVarOn, t_iterations::lim_iter, t_iterations::lim_zone, LIMPAR, LIMSPC, Parser::m_lgDSet, Parser::m_lgEOF, Parser::m_nInitFile, Parser::m_nqh, min(), MIN2, MIN3, mole_global, CloudyCommand::name, t_geometry::nend, t_grid::nGridCommands, Parser::nMatch(), t_optimize::nOptimiz, t_optimize::nparm, t_plotCom::nplot, t_input::nSave, t_rfield::nShape, t_optimize::nTrOpt, opac, optimize, ParseAbsMag(), ParseAbundancesNonSolar(), ParseAge(), ParseAgn(), ParseAperture(), ParseAtom(), ParseBackgrd(), ParseBlackbody(), ParseBremsstrahlung(), ParseCaseB(), ParseCExtra(), ParseCMBOuter(), ParseCompile(), ParseConstant(), ParseConvHighT(), ParseCoronal(), ParseCosm(), ParseCosmicRays(), ParseCosmology(), ParseCovering(), ParseCrashDo(), ParseCylinder(), ParseDarkMatter(), ParseDielectronic(), ParseDiffuse(), ParseDistance(), ParseDLaw(), ParseDont(), ParseDoubleTau(), ParseDrive(), 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(), ParsePlot(), ParsePowerlawContinuum(), ParsePrint(), ParseQH(), ParseRadius(), ParseRatio(), ParseRoberto(), ParseSave(), ParseSet(), ParseSpecial(), ParseSphere(), ParseState(), ParseStop(), ParseTable(), ParseTauMin(), ParseTest(), ParseTitle(), ParseTLaw(), ParseTolerance(), ParseTrace(), ParseTurbulence(), ParseVLaw(), phycon, plotCom, pressure, radius, t_radius::Radius, rfield, t_radius::rinner, t_dense::SetGasPhaseDensity(), StopCalc, t_radius::StopThickness, t_StopCalc::tauend, t_phycon::TEMP_STOP_DEFAULT, t_StopCalc::TempLoStopZone, thermal, trace, wind, and Wind::windv0.

Referenced by cloudy(), and grid_do().

◆ ParseConvHighT()

void ParseConvHighT ( Parser )

Definition at line 1725 of file parse_commands.cpp.

References t_thermal::lgTeHigh, and thermal.

Referenced by ParseCommands().

◆ ParseCosm()

void ParseCosm ( Parser p)

Definition at line 1134 of file parse_commands.cpp.

References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, and ioQQQ.

Referenced by ParseCommands().

◆ ParseCovering()

void ParseCovering ( Parser p)

Definition at line 1141 of file parse_commands.cpp.

References cdEXIT, t_geometry::covgeo, t_geometry::covrt, DEBUG_ENTRY, EXIT_FAILURE, Parser::FFmtRead(), geometry, ioQQQ, Parser::lgEOL(), and Parser::NoNumb().

Referenced by ParseCommands().

Here is the call graph for this function:

◆ ParseCylinder()

void ParseCylinder ( Parser p)

Definition at line 1169 of file parse_commands.cpp.

References t_radius::CylindHigh, Parser::FFmtRead(), t_radius::lgCylnOn, Parser::lgEOL(), Parser::NoNumb(), and radius.

Referenced by ParseCommands().

Here is the call graph for this function:

◆ ParseDarkMatter()

void ParseDarkMatter ( Parser p)

◆ ParseDielectronic()

void ParseDielectronic ( Parser )

Definition at line 1215 of file parse_commands.cpp.

References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, and ioQQQ.

Referenced by ParseCommands().

◆ ParseDiffuse()

void ParseDiffuse ( Parser p)

Definition at line 1223 of file parse_commands.cpp.

References cdEXIT, t_rfield::chDffTrns, DEBUG_ENTRY, EXIT_FAILURE, Parser::FFmtRead(), ioQQQ, Parser::lgEOL(), t_rfield::lgOutOnly, Parser::nMatch(), and rfield.

Referenced by ParseCommands().

Here is the call graph for this function:

◆ ParseDistance()

void ParseDistance ( Parser p)

◆ ParseDoubleTau()

void ParseDoubleTau ( Parser )

Definition at line 1303 of file parse_commands.cpp.

References t_rt::DoubleTau, and rt.

Referenced by ParseCommands().

◆ ParseEden()

void ParseEden ( Parser p)

Definition at line 1307 of file parse_commands.cpp.

References dense, t_dense::EdenExtra, Parser::FFmtRead(), Parser::lgEOL(), t_phycon::lgPhysOK, Parser::NoNumb(), and phycon.

Referenced by ParseCommands().

Here is the call graph for this function:

◆ ParseEnergy()

void ParseEnergy ( Parser p)

◆ ParseF_nuSpecific()

void ParseF_nuSpecific ( Parser p)

Definition at line 1459 of file parse_commands.cpp.

References ParseF_nu().

Referenced by ParseCommands().

Here is the call graph for this function:

◆ ParseFail()

void ParseFail ( Parser p)

Definition at line 1384 of file parse_commands.cpp.

References conv, Parser::FFmtRead(), ioQQQ, Parser::lgEOL(), t_conv::lgMap, t_conv::LimFail, Parser::nMatch(), and Parser::NoNumb().

Referenced by ParseCommands().

Here is the call graph for this function:

◆ ParseFill()

void ParseFill ( Parser p)

◆ ParseForceTemperature()

void ParseForceTemperature ( Parser p)

Definition at line 1465 of file parse_commands.cpp.

References t_thermal::ConstTemp, Parser::FFmtRead(), ioQQQ, Parser::lgEOL(), Parser::nMatch(), Parser::NoNumb(), and thermal.

Referenced by ParseCommands().

Here is the call graph for this function:

◆ ParseFudge()

void ParseFudge ( Parser p)

◆ ParseGravity()

void ParseGravity ( Parser p)

◆ ParseHeLike()

void ParseHeLike ( Parser )

Definition at line 1588 of file parse_commands.cpp.

References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, and ioQQQ.

Referenced by ParseCommands().

◆ ParseHelp()

void ParseHelp ( Parser p)

Definition at line 1594 of file parse_commands.cpp.

References DEBUG_ENTRY, Parser::help(), and ioQQQ.

Referenced by ParseCommands().

Here is the call graph for this function:

◆ ParseHExtra()

void ParseHExtra ( Parser p)

◆ ParseHydrogen()

void ParseHydrogen ( Parser )

Definition at line 1729 of file parse_commands.cpp.

References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, and ioQQQ.

Referenced by ParseCommands().

◆ ParseInitCount()

void ParseInitCount ( Parser p)

Definition at line 1735 of file parse_commands.cpp.

References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, t_input::init(), input, ioQQQ, t_input::iReadWay, Parser::m_nInitFile, and ParseInit().

Referenced by ParseCommands().

Here is the call graph for this function:

◆ ParseIntensity()

void ParseIntensity ( Parser p)

◆ ParseIterations()

void ParseIterations ( Parser p)

◆ ParseL_nu()

void ParseL_nu ( Parser p)

Definition at line 1867 of file parse_commands.cpp.

References ParseF_nu().

Referenced by ParseCommands().

Here is the call graph for this function:

◆ ParseLaser()

void ParseLaser ( Parser p)

◆ ParseLuminosity()

void ParseLuminosity ( Parser p)

◆ ParseNeutrons()

void ParseNeutrons ( Parser p)

Definition at line 1976 of file parse_commands.cpp.

References t_hextra::effneu, Parser::FFmtRead(), t_hextra::frcneu, hextra, Parser::lgEOL(), t_hextra::lgNeutrnHeatOn, and Parser::NoNumb().

Referenced by ParseCommands().

Here is the call graph for this function:

◆ ParseNuF_nu()

void ParseNuF_nu ( Parser p)

Definition at line 2003 of file parse_commands.cpp.

References ParseF_nu().

Referenced by ParseCommands().

Here is the call graph for this function:

◆ ParseNuL_nu()

void ParseNuL_nu ( Parser p)

Definition at line 2011 of file parse_commands.cpp.

References ParseF_nu().

Referenced by ParseCommands().

Here is the call graph for this function:

◆ ParsePGrains()

void ParsePGrains ( Parser )

Definition at line 1527 of file parse_commands.cpp.

References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, and ioQQQ.

Referenced by ParseCommands().

◆ ParsePhi()

void ParsePhi ( Parser p)

◆ ParseQH()

void ParseQH ( Parser p)

◆ ParseRoberto()

void ParseRoberto ( Parser )

Definition at line 2126 of file parse_commands.cpp.

References t_radius::dRadSign, and radius.

Referenced by ParseCommands().

◆ ParseSpecial()

void ParseSpecial ( Parser )

Definition at line 2131 of file parse_commands.cpp.

References cdEXIT, DEBUG_ENTRY, and EXIT_FAILURE.

Referenced by ParseCommands().

◆ ParseTauMin()

void ParseTauMin ( Parser p)

Definition at line 2137 of file parse_commands.cpp.

References Parser::FFmtRead(), Parser::lgEOL(), Parser::NoNumb(), opac, and t_opac::taumin.

Referenced by ParseCommands().

Here is the call graph for this function:

◆ ParseTitle()

void ParseTitle ( Parser p)

Definition at line 2144 of file parse_commands.cpp.

References t_input::chTitle, Parser::GetQuote(), Parser::getRawTail(), and input.

Referenced by ParseCommands().

Here is the call graph for this function:

◆ ParseTolerance()

void ParseTolerance ( Parser )

Definition at line 2152 of file parse_commands.cpp.

References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, and ioQQQ.

Referenced by ParseCommands().

◆ ParseTurbulence()

void ParseTurbulence ( Parser p)

◆ ParseVLaw()

void ParseVLaw ( Parser p)
Todo:
2 is there a need to keep this negative?

Definition at line 2159 of file parse_commands.cpp.

References ASSERT, DoppVel, Parser::FFmtRead(), t_DoppVel::lgTurbLawOn, and t_DoppVel::TurbVelLaw.

Referenced by ParseCommands().

Here is the call graph for this function: