cloudy trunk
Loading...
Searching...
No Matches
Functions | Variables
parse_table.cpp File Reference
#include "cddefines.h"
#include "cddrive.h"
#include "physconst.h"
#include "optimize.h"
#include "rfield.h"
#include "trace.h"
#include "radius.h"
#include "input.h"
#include "stars.h"
#include "lines.h"
#include "prt.h"
#include "parser.h"
#include "save.h"
#include "thirdparty.h"
#include "continuum.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 (double *tnu, double *fluxlog, bool lgLog)
 
STATIC void read_hm05 (const char chFile[], double **tnuHM, double **fnuHM, long int *nhm, double redshift)
 
void ParseTable (Parser &p)
 
int lines_table ()
 

Variables

static string chLINE_LIST
 
static const int NCRAB = 10
 
static double tnucrb [NCRAB]
 
static double fnucrb [NCRAB]
 
static const int NRUBIN = 56
 
static double tnurbn [NRUBIN]
 
static double fnurbn [NRUBIN]
 
static const int NCFL = 40
 
static double cfle [NCFL]
 
static double cflf [NCFL]
 
static const int NKN120 = 11
 
static double tnuakn [NKN120]
 
static double fnuakn [NKN120]
 
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 double tnuagn [NAGN]
 
static double tslagn [NAGN]
 
static const int NDRAINE = 15
 
static double tnudrn [NDRAINE]
 
static double tsldrn [NDRAINE]
 

Function Documentation

◆ lines_table()

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 2042 of file parse_table.cpp.

References cdGetLineList(), cdLine(), chLINE_LIST, DEBUG_ENTRY, ioQQQ, and prt_wl().

Referenced by lgCheckMonitors().

Here is the call graph for this function:

◆ ParseTable()

void ParseTable ( Parser p)

ParseTable parse the table read command

Parameters
*nqh
*chCard
*ar1

Definition at line 340 of file parse_table.cpp.

References AS_LOCAL_DATA_TRY, ASSERT, AtlasInterpolate(), AtmospheresAvail(), BIGFLOAT, cdEXIT, cfle, cflf, chLINE_LIST, t_rfield::chRSpec, t_rfield::chSpNorm, t_rfield::chSpType, t_optimize::chVarFmt, CoStarInterpolate(), DEBUG_ENTRY, t_rfield::egamry, t_rfield::emm, EVRYD, EXIT_FAILURE, EXIT_SUCCESS, Parser::FFmtRead(), FILENAME_PATH_LENGTH_2, fnuakn, fnucrb, fnuHM96, fnuism, fnurbn, FR1RYD, Parser::GetQuote(), GridInterpolate(), HIONPOT, t_rfield::Illumination, IM_COSTAR_AGE_MZAMS, IM_COSTAR_MZAMS_AGE, IM_COSTAR_TEFF_LOGG, IM_COSTAR_TEFF_MODID, IM_ILLEGAL_MODE, input, ioQQQ, Kurucz79Interpolate(), t_rfield::lgBeamed, lgCalled, t_trace::lgConBug, t_rfield::lgContMalloc, Parser::lgEOL(), t_rfield::lgMustBlockHIon, t_radius::lgRadiusKnown, t_rfield::lgTimeVary, t_trace::lgTrace, t_optimize::lgVarOn, LIMEXT, LIMSPC, Parser::m_nqh, MDIM, MihalasInterpolate(), NAGN, NCELL, NCFL, t_rfield::ncont, NCRAB, NDRAINE, NHM96, NISM, NKN120, Parser::nMatch(), Parser::nMatchErase(), t_optimize::nparm, t_input::nRead, NRUBIN, t_rfield::nShape, t_rfield::nupper, t_optimize::nvarxt, t_optimize::nvfpnt, open_data(), optimize, PI4, radius, t_radius::Radius, t_rfield::range, RauchInterpolateCOWD(), RauchInterpolateHCa(), RauchInterpolateHelium(), RauchInterpolateHNi(), RauchInterpolateHpHe(), RauchInterpolateHydr(), RauchInterpolatePG1159(), t_radius::rdfalt, read_hm05(), ReadTable(), resetBltin(), rfield, RYDLAM, SDIV(), SMALLFLOAT, Illuminate::SYMMETRIC, t_rfield::tFluxLog, TL_BSTAR, TL_OBSTAR, TL_OSTAR, TlustyInterpolate(), t_rfield::tNu, tnuagn, tnuakn, tnucrb, tnudrn, tnuHM96, tnuism, tnurbn, TotalInsanity(), t_rfield::totpow, trace, tslagn, tsldrn, t_rfield::tslop, 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:

◆ read_hm05()

STATIC void read_hm05 ( const char  chFile[],
double **  tnuHM,
double **  fnuHM,
long int *  nhm,
double  redshift 
)

Definition at line 133 of file parse_table.cpp.

References AS_LOCAL_DATA, ASSERT, cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, FFmtRead(), ioQQQ, MALLOC, open_data(), read_whole_line(), RYDLAM, and TotalInsanity().

Referenced by ParseTable().

Here is the call graph for this function:

◆ ReadTable()

STATIC void ReadTable ( const char *  fnam)

◆ resetBltin()

STATIC void resetBltin ( double *  tnu,
double *  fluxlog,
bool  lgLog 
)

Definition at line 98 of file parse_table.cpp.

References ASSERT, t_rfield::emm, and rfield.

Referenced by ParseTable(), and ZeroContin().

◆ ZeroContin()

STATIC void ZeroContin ( void  )

Definition at line 1775 of file parse_table.cpp.

References cfle, cflf, DEBUG_ENTRY, fnuakn, fnucrb, fnuism, fnurbn, resetBltin(), tnuagn, tnuakn, tnucrb, tnudrn, tnuism, tnurbn, tslagn, and tsldrn.

Referenced by ParseTable().

Here is the call graph for this function:

Variable Documentation

◆ cfle

double cfle[NCFL]
static

Definition at line 54 of file parse_table.cpp.

Referenced by ParseTable(), and ZeroContin().

◆ cflf

double cflf[NCFL]
static

Definition at line 55 of file parse_table.cpp.

Referenced by ParseTable(), and ZeroContin().

◆ chLINE_LIST

string chLINE_LIST
static

Definition at line 30 of file parse_table.cpp.

Referenced by lines_table(), and ParseTable().

◆ fnuakn

double fnuakn[NKN120]
static

Definition at line 60 of file parse_table.cpp.

Referenced by ParseTable(), and ZeroContin().

◆ fnucrb

double fnucrb[NCRAB]
static

Definition at line 36 of file parse_table.cpp.

Referenced by ParseTable(), and ZeroContin().

◆ fnuHM96

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 78 of file parse_table.cpp.

Referenced by ParseTable().

◆ fnuism

double fnuism[NISM]
static

Definition at line 65 of file parse_table.cpp.

Referenced by ParseTable(), and ZeroContin().

◆ fnurbn

double fnurbn[NRUBIN]
static
Initial value:
= {1.56E-20,1.55E-17,1.54E-14,1.53E-11,1.35E-08,1.34E-05,1.35E-02,3.62E-01,1.27E+01,
3.90E+01,1.48E+02,4.52E+02,1.02E+03,2.27E+03,8.69E+02,8.04E+02,6.58E+02,6.13E+02,6.49E+02,6.06E+02,
6.30E+02,5.53E+02,5.55E+02,5.24E+02,4.86E+02,4.49E+02,4.42E+02,3.82E+02,3.91E+02,2.91E+02,2.61E+02,
1.32E+02,1.20E+02,1.16E+02,9.56E+01,9.94E+01,9.10E+01,4.85E+01,7.53E+01,9.53E+01,8.52E+01,5.76E+01,
6.72E+01,5.20E+01,8.09E+00,3.75E+00,5.57E+00,3.80E+00,2.73E+00,2.22E+00,3.16E-01,1.26E-01,1.39E-01,
6.15E-02,3.22E-02,7.98E-03}

Definition at line 45 of file parse_table.cpp.

Referenced by ParseTable(), and ZeroContin().

◆ NAGN

const int NAGN = 8
static

Definition at line 82 of file parse_table.cpp.

Referenced by ParseTable().

◆ NCFL

const int NCFL = 40
static

Definition at line 53 of file parse_table.cpp.

Referenced by ParseTable().

◆ NCRAB

const int NCRAB = 10
static

Definition at line 34 of file parse_table.cpp.

Referenced by ParseTable().

◆ NDRAINE

const int NDRAINE = 15
static

Definition at line 87 of file parse_table.cpp.

Referenced by ParseTable().

◆ NHM96

const int NHM96 = 14
static

Definition at line 70 of file parse_table.cpp.

Referenced by ParseTable().

◆ NISM

const int NISM = 23
static

Definition at line 63 of file parse_table.cpp.

Referenced by ParseTable().

◆ NKN120

const int NKN120 = 11
static

Definition at line 58 of file parse_table.cpp.

Referenced by ParseTable().

◆ NRUBIN

const int NRUBIN = 56
static

Definition at line 39 of file parse_table.cpp.

Referenced by ParseTable().

◆ tnuagn

double tnuagn[NAGN]
static

Definition at line 83 of file parse_table.cpp.

Referenced by ParseTable(), and ZeroContin().

◆ tnuakn

double tnuakn[NKN120]
static

Definition at line 59 of file parse_table.cpp.

Referenced by ParseTable(), and ZeroContin().

◆ tnucrb

double tnucrb[NCRAB]
static

Definition at line 35 of file parse_table.cpp.

Referenced by ParseTable(), and ZeroContin().

◆ tnudrn

double tnudrn[NDRAINE]
static

Definition at line 88 of file parse_table.cpp.

Referenced by ParseTable(), and ZeroContin().

◆ tnuHM96

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 72 of file parse_table.cpp.

Referenced by ParseTable().

◆ tnuism

double tnuism[NISM]
static

Definition at line 64 of file parse_table.cpp.

Referenced by ParseTable(), and ZeroContin().

◆ tnurbn

double tnurbn[NRUBIN]
static
Initial value:
= {1.05E-08,1.05E-07,1.05E-06,1.04E-05,1.00E-04,1.00E-03,1.00E-02,3.01E-02,1.00E-01,
1.50E-01,2.50E-01,4.01E-01,6.01E-01,9.8E-01,9.96E-01,1.00E+00,1.02445,1.07266,1.12563,1.18411,1.23881,
1.29328,1.35881,1.42463,1.48981,1.55326,1.6166,1.68845,1.76698,1.8019,1.808,1.84567,1.9317,2.04891,2.14533,
2.19702,2.27941,2.37438,2.43137,2.49798,2.56113,2.59762,2.66597,2.80543,2.95069,3.02911,3.11182,3.22178,
3.3155,3.42768,3.50678,3.56157,3.61811,3.75211,3.89643,4.}

Definition at line 40 of file parse_table.cpp.

Referenced by ParseTable(), and ZeroContin().

◆ tslagn

double tslagn[NAGN]
static

Definition at line 84 of file parse_table.cpp.

Referenced by ParseTable(), and ZeroContin().

◆ tsldrn

double tsldrn[NDRAINE]
static

Definition at line 88 of file parse_table.cpp.

Referenced by ParseTable(), and ZeroContin().