cloudy  trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions | Variables
parse_table.cpp File Reference
#include "cddefines.h"
#include "cddrive.h"
#include "optimize.h"
#include "rfield.h"
#include "trace.h"
#include "lines.h"
#include "radius.h"
#include "input.h"
#include "stars.h"
#include "prt.h"
#include "parser.h"
#include "save.h"
Include dependency graph for parse_table.cpp:

Go to the source code of this file.

Functions

STATIC void ReadTable (const char *fnam)
 
STATIC void ZeroContin (void)
 
STATIC void resetBltin (Energy *tnu, realnum *fluxlog, bool lgLog)
 
void ParseTable (Parser &p)
 
int lines_table ()
 

Variables

static string chLINE_LIST
 
static const int NISM = 23
 
static double tnuism [NISM]
 
static double fnuism [NISM]
 
static const int NHM96 = 14
 
static const double tnuHM96 [NHM96]
 
static const double fnuHM96 [NHM96]
 
static const int NAGN = 8
 
static Energy tnuagn [NAGN]
 
static realnum tslagn [NAGN]
 
static const int NDRAINE = 15
 
static double tnudrn [NDRAINE]
 
static double tsldrn [NDRAINE]
 

Function Documentation

int lines_table ( )

lines_table invoked by table lines command, check if we can find all lines in a given list returns 0 if ok, n is n lines not found

Definition at line 1727 of file parse_table.cpp.

References cdGetLineList(), species::chLabel, chLINE_LIST, DEBUG_ENTRY, t_LineSave::findline(), fprintf(), ioQQQ, LineSave, and prt_wl().

Referenced by lgCheckMonitors().

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:

STATIC void ReadTable ( const char *  fnam)
STATIC void resetBltin ( Energy tnu,
realnum fluxlog,
bool  lgLog 
)

Definition at line 61 of file parse_table.cpp.

References ASSERT, t_mesh::emm(), exp10(), rfield, and Energy::Ryd().

Referenced by ParseTable(), and ZeroContin().

Here is the call graph for this function:

STATIC void ZeroContin ( void  )

Definition at line 1603 of file parse_table.cpp.

References DEBUG_ENTRY, fnuism, resetBltin(), tnudrn, tnuism, tslagn, and tsldrn.

Referenced by ParseTable().

Here is the call graph for this function:

Variable Documentation

string chLINE_LIST
static

Definition at line 23 of file parse_table.cpp.

Referenced by lines_table(), and ParseTable().

const double fnuHM96[NHM96]
static
Initial value:
={-32.53342863,-19.9789,-20.4204,-20.4443,-20.5756,-20.7546,
-21.2796,-21.6256,-21.8404,-21.4823,-22.2102,-22.9263,-23.32,-24.2865}

Definition at line 41 of file parse_table.cpp.

Referenced by ParseTable().

double fnuism[NISM]
static

Definition at line 27 of file parse_table.cpp.

Referenced by ParseTable(), and ZeroContin().

const int NAGN = 8
static

Definition at line 45 of file parse_table.cpp.

Referenced by ParseTable().

const int NDRAINE = 15
static

Definition at line 50 of file parse_table.cpp.

Referenced by ParseTable().

const int NHM96 = 14
static

Definition at line 33 of file parse_table.cpp.

Referenced by ParseTable().

const int NISM = 23
static

Definition at line 26 of file parse_table.cpp.

Referenced by ParseTable().

Energy tnuagn[NAGN]
static

Definition at line 46 of file parse_table.cpp.

double tnudrn[NDRAINE]
static

Definition at line 51 of file parse_table.cpp.

Referenced by ParseTable(), and ZeroContin().

const double tnuHM96[NHM96]
static
Initial value:
={-8,-1.722735683,-0.351545683,-0.222905683,-0.133385683,
-0.127655683,-0.004575683,0.297544317,0.476753,0.476756,0.588704317,
0.661374317,1.500814317,2.245164317}

Definition at line 35 of file parse_table.cpp.

Referenced by ParseTable().

double tnuism[NISM]
static

Definition at line 27 of file parse_table.cpp.

Referenced by ParseTable(), and ZeroContin().

realnum tslagn[NAGN]
static

Definition at line 47 of file parse_table.cpp.

Referenced by ParseTable(), and ZeroContin().

double tsldrn[NDRAINE]
static

Definition at line 51 of file parse_table.cpp.

Referenced by ParseTable(), and ZeroContin().