cloudy
trunk
|
#include <lines.h>
Public Member Functions | |
const char * | chName () const |
void | zero () |
void | comment (t_warnings &) |
long | findline (const char *chLabel, realnum wavelength) |
void | clear () |
void | resize (long nlines) |
void | setSortWL () |
void | init (long index, char chSumTyp, const char *chComment, const char *label, bool lgAdd, realnum wavelength, const TransitionProxy &tr) |
realnum | wavelength (long index) |
Public Member Functions inherited from module | |
module () | |
virtual | ~module () |
Data Fields | |
long int | nsum |
long int | nComment |
long int | ipass |
char | chHoldComments [NHOLDCOMMENTS][INPUT_LINE_LENGTH] |
long int | ipNormWavL |
realnum | WavLNorm |
long int | sig_figs |
int | wl_length |
double | ScaleNormLine |
char | chNormLab [NCHLAB] |
bool | lgNormSet |
realnum | RecCoefCNO [4][NRECCOEFCNO] |
vector< LinSv > | lines |
vector< realnum > | m_wavelength |
vector< size_t > | SortWL |
bool | lgIsoContSubSignif |
Static Public Attributes | |
static const long | sig_figs_max = 6 |
this struc is different from following since they are only pointer here, will be malloced to form a large array after number of lines is counted, but this is the final form
|
inlinevirtual |
|
inline |
Definition at line 135 of file lines.h.
References lines, and m_wavelength.
Referenced by LineStackCreate().
|
inlinevirtual |
long t_LineSave::findline | ( | const char * | chLabel, |
realnum | wavelength | ||
) |
Definition at line 294 of file lines.cpp.
References ASSERT, BIGFLOAT, caps(), cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, fp_equal(), fprintf(), INPUT_LINE_LENGTH, Singleton< t_version >::Inst(), ioQQQ, ipass, lines, NCHLAB, nsum, prt_line_err(), sig_figs, SortWL, sprt_wl(), TotalInsanity(), trimTrailingWhiteSpace(), wavelength(), wavelength_compare_realnum(), and WavlenErrorGet().
Referenced by LinSv::addComponent(), cdEmis(), cdLine(), IterStart(), lines_table(), optimize_func(), PrtLineSum(), save_line(), and SaveSpeciesBands().
|
inline |
Definition at line 436 of file lines.h.
References lines, m_wavelength, and wavelength().
Referenced by lincom().
|
inline |
Definition at line 450 of file lines.h.
References lines, and m_wavelength.
Referenced by LineStackCreate().
void t_LineSave::setSortWL | ( | ) |
Definition at line 283 of file lines.cpp.
References DEBUG_ENTRY, nsum, SortWL, and wavelength_compare().
Referenced by lines().
|
inline |
Definition at line 145 of file lines.h.
References m_wavelength.
Referenced by LinSv::checkEmergent(), findline(), init(), LinSv::makeBlend(), LinSv::wavelength(), and wavelength_compare_realnum().
|
virtual |
Implements module.
Definition at line 13 of file lines.cpp.
References chNormLab, DEBUG_ENTRY, ipNormWavL, lgNormSet, ScaleNormLine, sig_figs, sig_figs_max, and WavLNorm.
char t_LineSave::chHoldComments[NHOLDCOMMENTS][INPUT_LINE_LENGTH] |
holds comment strings associated with various blocks of output lines
Definition at line 99 of file lines.h.
Referenced by PrintSpectrum(), prt_LineLabels(), and StuffComment().
char t_LineSave::chNormLab[NCHLAB] |
chNormLab is optional label
Definition at line 120 of file lines.h.
Referenced by IterStart(), ParseNorm(), and zero().
long int t_LineSave::ipass |
there are three types of calls to lines() ipass = -1, first call, only count number off lines ipass = 0, second pass, save labels and wavelengths ipass = 1, integrate intensity
Definition at line 96 of file lines.h.
Referenced by LinSv::addComponent(), findline(), FindStrongestLineLabels(), diatomics::H2_LinesAdd(), lincom(), lindst(), lindst1(), lines(), lines_continuum(), lines_general(), lines_helium(), lines_hydro(), LineStackCreate(), LinSv::makeBlend(), PntForLine(), PrtLineSum(), PutLine(), SpeciesPseudoContAccum(), and StuffComment().
long int t_LineSave::ipNormWavL |
NormWL is array index for emission line on normalize command
Definition at line 102 of file lines.h.
Referenced by cdLine_ip(), diatomics::getLine(), diatomics::H2_PunchDo(), IterStart(), optimize_func(), PrintSpectrum(), and zero().
bool t_LineSave::lgIsoContSubSignif |
Definition at line 150 of file lines.h.
Referenced by IterStart(), prt_smooth_predictions(), and set_xIntensity().
bool t_LineSave::lgNormSet |
flag saying whether norm has been set
Definition at line 123 of file lines.h.
Referenced by IterStart(), ParseNorm(), and zero().
vector<LinSv> t_LineSave::lines |
number of lines allocated in emission line stack must not change between iterations or grid points
Definition at line 132 of file lines.h.
Referenced by LinSv::addComponentID(), badprt(), cdEmis(), cdEmis_ip(), cdLine_ip(), clear(), debugLine(), Drive_cdLine(), LinSv::emslin(), findline(), FindStrongestLineLabels(), LinSv::getComponent(), diatomics::getLine(), diatomics::H2_PunchDo(), init(), iter_end_check(), IterEnd(), IterStart(), lgCheckMonitors(), lincom(), lindst(), lines(), lines_continuum(), lines_hydro(), LineStackCreate(), LinSv::makeBlend(), optimize_func(), PrintSpectrum(), prt_LineLabels(), PrtComment(), PrtFinal(), resize(), save_line(), SaveDo(), SaveLineIntensity(), SaveResults(), SaveSpeciesBands(), LinSv::SumLine(), totlin(), and wavelength_compare().
vector<realnum> t_LineSave::m_wavelength |
long int t_LineSave::nComment |
index to number of comments printed within the block of lines
Definition at line 90 of file lines.h.
Referenced by lines(), and StuffComment().
long int t_LineSave::nsum |
number of emission lines in main stack nsum is current index, to last line entered in the array linadd increments nsum before doing anything else
Definition at line 87 of file lines.h.
Referenced by badprt(), cdEmis_ip(), cdLine_ip(), debugLine(), Drive_cdLine(), findline(), FindStrongestLineLabels(), diatomics::H2_PunchDo(), IterEnd(), IterStart(), lgCheckMonitors(), lincom(), lindst(), lines(), lines_continuum(), lines_hydro(), LineStackCreate(), LinSv::makeBlend(), PrintSpectrum(), prt_LineLabels(), PrtFinal(), save_line(), SaveDo(), SaveLineIntensity(), SaveResults(), setSortWL(), and totlin().
realnum t_LineSave::RecCoefCNO[4][NRECCOEFCNO] |
save rec coefficient data for recombination lines of C, N, O
Definition at line 126 of file lines.h.
Referenced by GetLineRec(), lines(), and SaveLineData().
double t_LineSave::ScaleNormLine |
ScaleNormLine is the scale factor for its appearance
Definition at line 117 of file lines.h.
Referenced by cdLine_ip(), diatomics::getLine(), diatomics::H2_PunchDo(), optimize_func(), ParseNorm(), PrintSpectrum(), and zero().
long int t_LineSave::sig_figs |
number of significant figures for lines this affects all aspects of reading and writing lines
Definition at line 109 of file lines.h.
Referenced by debugLine(), findline(), GetOptLineInt(), lgCheckMonitors(), ParsePrint(), PrintSpectrum(), PrtFinal(), SetPrintLineCol(), sprt_wl(), and zero().
|
static |
Definition at line 110 of file lines.h.
Referenced by lgCheckMonitors(), ParsePrint(), WavlenErrorGet(), and zero().
vector<size_t> t_LineSave::SortWL |
Definition at line 134 of file lines.h.
Referenced by findline(), FindStrongestLineLabels(), and setSortWL().
realnum t_LineSave::WavLNorm |
WavLNorm is wavelength of emission line on normalize command
Definition at line 105 of file lines.h.
Referenced by IterStart(), lines_helium(), ParseNorm(), and zero().
int t_LineSave::wl_length |
length of string wl not including units typically, sig_figs+2 (dot & unit)
Definition at line 114 of file lines.h.
Referenced by lgCheckMonitors(), prt_wl(), PrtOneMonitor(), SetPrintLineCol(), and sprt_wl().