cloudy trunk
Loading...
Searching...
No Matches
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, and ParseAbundances().

Referenced by ParseCommands().

Here is the call graph for this function:

◆ ParseAperture()

void ParseAperture ( Parser & p)

Definition at line 819 of file parse_commands.cpp.

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

Referenced by ParseCommands().

Here is the call graph for this function:

◆ ParseAtom()

◆ ParseBremsstrahlung()

void ParseBremsstrahlung ( Parser & p)

Definition at line 1059 of file parse_commands.cpp.

References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, Parser::FFmtRead(), input, ioQQQ, Parser::lgEOL(), LIMSPC, Parser::nMatch(), Parser::NoNumb(), optimize, and rfield.

Referenced by ParseCommands().

Here is the call graph for this function:

◆ ParseCExtra()

void ParseCExtra ( Parser & p)

Definition at line 1100 of file parse_commands.cpp.

References Parser::FFmtRead(), 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, COLUMN_INIT, Parser::Command(), Parser::CommandError(), conv, cpu, DEBUG_ENTRY, dense, dense_fabden(), dense_parametric_wind(), dense_tabden(), Parser::doSetVar(), Parser::echo(), EXIT_FAILURE, geometry, Parser::getline(), grid, gv, h2, hextra, InitMonitorResults(), input, Singleton< t_version >::Inst(), ioQQQ, ipHYDROGEN, Parser::isCommandComment(), Parser::isVar(), iterations, Parser::last(), LIMPAR, LIMSPC, Parser::m_lgDSet, Parser::m_lgEOF, Parser::m_nInitFile, Parser::m_nqh, min(), MIN2, MIN3, mole_global, CloudyCommand::name, Parser::nMatch(), 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, rfield, StopCalc, thermal, trace, and wind.

Referenced by cloudy(), and grid_do().

◆ ParseConvHighT()

void ParseConvHighT ( Parser & )

Definition at line 1725 of file parse_commands.cpp.

References 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, 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 Parser::FFmtRead(), Parser::lgEOL(), Parser::NoNumb(), and radius.

Referenced by ParseCommands().

Here is the call graph for this function:

◆ ParseDarkMatter()

void ParseDarkMatter ( Parser & p)

Definition at line 1179 of file parse_commands.cpp.

References cdEXIT, dark, DEBUG_ENTRY, EXIT_FAILURE, Parser::getNumberCheckAlwaysLog(), Parser::getNumberDefaultAlwaysLog(), input, ioQQQ, Parser::nMatch(), and optimize.

Referenced by ParseCommands().

Here is the call graph for this function:

◆ 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, DEBUG_ENTRY, EXIT_FAILURE, Parser::FFmtRead(), ioQQQ, Parser::lgEOL(), Parser::nMatch(), and rfield.

Referenced by ParseCommands().

Here is the call graph for this function:

◆ ParseDistance()

void ParseDistance ( Parser & p)

Definition at line 1271 of file parse_commands.cpp.

References Parser::FFmtRead(), input, Parser::lgEOL(), Parser::nMatch(), Parser::NoNumb(), optimize, PARSEC, and radius.

Referenced by ParseCommands().

Here is the call graph for this function:

◆ ParseDoubleTau()

void ParseDoubleTau ( Parser & )

Definition at line 1303 of file parse_commands.cpp.

References rt.

Referenced by ParseCommands().

◆ ParseEden()

void ParseEden ( Parser & p)

Definition at line 1307 of file parse_commands.cpp.

References dense, Parser::FFmtRead(), Parser::lgEOL(), Parser::NoNumb(), and phycon.

Referenced by ParseCommands().

Here is the call graph for this function:

◆ ParseEnergy()

void ParseEnergy ( Parser & p)

Definition at line 1317 of file parse_commands.cpp.

References ASSERT, cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, Parser::FFmtRead(), input, ioQQQ, Parser::lgEOL(), LIMSPC, Parser::m_nqh, Parser::nMatch(), Parser::NoNumb(), optimize, radius, and rfield.

Referenced by ParseCommands().

Here is the call graph for this function:

◆ 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(), Parser::nMatch(), and Parser::NoNumb().

Referenced by ParseCommands().

Here is the call graph for this function:

◆ ParseFill()

void ParseFill ( Parser & p)

Definition at line 1409 of file parse_commands.cpp.

References called, Parser::FFmtRead(), geometry, input, ioQQQ, Parser::lgEOL(), Parser::nMatch(), Parser::NoNumb(), and optimize.

Referenced by ParseCommands().

Here is the call graph for this function:

◆ ParseForceTemperature()

void ParseForceTemperature ( Parser & p)

Definition at line 1465 of file parse_commands.cpp.

References 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)

Definition at line 1486 of file parse_commands.cpp.

References Parser::FFmtRead(), fudgec, input, Parser::lgEOL(), NFUDGC, Parser::NoNumb(), and optimize.

Referenced by ParseCommands().

Here is the call graph for this function:

◆ ParseGravity()

void ParseGravity ( Parser & p)

Definition at line 1533 of file parse_commands.cpp.

References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, Parser::FFmtRead(), ioQQQ, Parser::lgEOL(), Parser::nMatch(), PARSEC, and pressure.

Referenced by ParseCommands().

Here is the call graph for this function:

◆ 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)

Definition at line 1599 of file parse_commands.cpp.

References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, Parser::FFmtRead(), hextra, input, ioQQQ, Parser::lgEOL(), Parser::nMatch(), Parser::NoNumb(), optimize, and SOLAR_MASS.

Referenced by ParseCommands().

Here is the call graph for this function:

◆ 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, input, ioQQQ, Parser::m_nInitFile, and ParseInit().

Referenced by ParseCommands().

Here is the call graph for this function:

◆ ParseIntensity()

void ParseIntensity ( Parser & p)

Definition at line 1761 of file parse_commands.cpp.

References ASSERT, cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, Parser::FFmtRead(), input, ioQQQ, Parser::lgEOL(), LIMSPC, Parser::m_nqh, Parser::nMatch(), Parser::NoNumb(), optimize, ParseRangeOption(), radius, and rfield.

Referenced by ParseCommands().

Here is the call graph for this function:

◆ ParseIterations()

void ParseIterations ( Parser & p)

Definition at line 1820 of file parse_commands.cpp.

References conv, Parser::FFmtRead(), geometry, iterations, Parser::lgEOL(), MAX2, Parser::nMatch(), radius, and REALLOC.

Referenced by ParseCommands().

Here is the call graph for this function:

◆ 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)

Definition at line 1875 of file parse_commands.cpp.

References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, Parser::FFmtRead(), ioQQQ, Parser::lgEOL(), LIMSPC, Parser::NoNumb(), and rfield.

Referenced by ParseCommands().

Here is the call graph for this function:

◆ ParseLuminosity()

void ParseLuminosity ( Parser & p)

Definition at line 1913 of file parse_commands.cpp.

References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, Parser::FFmtRead(), input, ioQQQ, Parser::lgEOL(), LIMSPC, Parser::m_nqh, Parser::nMatch(), Parser::NoNumb(), optimize, ParseRangeOption(), and rfield.

Referenced by ParseCommands().

Here is the call graph for this function:

◆ ParseNeutrons()

void ParseNeutrons ( Parser & p)

Definition at line 1976 of file parse_commands.cpp.

References Parser::FFmtRead(), hextra, Parser::lgEOL(), 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)

Definition at line 2019 of file parse_commands.cpp.

References ASSERT, cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, Parser::FFmtRead(), input, ioQQQ, Parser::lgEOL(), LIMSPC, Parser::m_nqh, Parser::nMatch(), Parser::NoNumb(), optimize, ParseRangeOption(), radius, and rfield.

Referenced by ParseCommands().

Here is the call graph for this function:

◆ ParseQH()

void ParseQH ( Parser & p)

Definition at line 2076 of file parse_commands.cpp.

References ASSERT, called, cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, Parser::FFmtRead(), input, ioQQQ, Parser::lgEOL(), LIMSPC, Parser::m_nqh, Parser::nMatch(), Parser::NoNumb(), optimize, ParseRangeOption(), and rfield.

Referenced by ParseCommands().

Here is the call graph for this function:

◆ ParseRoberto()

void ParseRoberto ( Parser & )

Definition at line 2126 of file parse_commands.cpp.

References 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(), and opac.

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 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)

Definition at line 2170 of file parse_commands.cpp.

References cdEXIT, DEBUG_ENTRY, DoppVel, EXIT_FAILURE, Parser::FFmtRead(), input, ioQQQ, Parser::lgEOL(), Parser::nMatch(), Parser::NoNumb(), optimize, Parser::PrintLine(), and SPEEDLIGHT.

Referenced by ParseCommands().

Here is the call graph for this function:

◆ 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, and Parser::FFmtRead().

Referenced by ParseCommands().

Here is the call graph for this function: