Cloudy
Spectral Synthesis Code for Astrophysics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
prt.cpp File Reference
#include "cddefines.h"
#include "lines.h"
#include "prt.h"
#include "generic_state.h"
#include "save.h"
Include dependency graph for prt.cpp:

Functions

void SetPrintLineCol ()
 
void prt_wl (FILE *ioOUT, realnum wl)
 
void sprt_wl (string &chString, realnum wl)
 
void prt_LineLabels (FILE *ioOUT, bool lgPrintAll, bool lgPrintIndex)
 
void prt_line_err (FILE *ioOUT, const LineID &line)
 
void prt_line_err (FILE *ioOUT, const string &label, realnum wvlng)
 
void prt_line_inlist (FILE *ioOUT, const char *label, realnum wvlng)
 

Variables

t_prt prt
 
t_line_col prt_linecol
 

Function Documentation

void prt_line_err ( FILE *  ioOUT,
const LineID line 
)

References LineID::chLabel, fprintf(), prt_wl(), and LineID::wave.

Referenced by t_LineSave::findline(), IterStart(), lgCheckMonitors(), lines_table(), prt_line_err(), PrtLineSum(), and save_line().

Here is the call graph for this function:

void prt_line_err ( FILE *  ioOUT,
const string &  label,
realnum  wvlng 
)
prt_line_err produce an error message containing the line label and wavelength,
            followed, if given, by the wavelength of the closest line of the same label 
Parameters
*ioOUToutput file handle
*labelline label
wvlngline wavelength

References prt_line_err().

Here is the call graph for this function:

void prt_line_inlist ( FILE *  ioOUT,
const char *  label,
realnum  wvlng 
)

References fprintf(), NCHLAB, and prt_wl().

Referenced by SaveDo().

Here is the call graph for this function:

void prt_LineLabels ( FILE *  io,
bool  lgPrintAll,
bool  lgPrintIndex 
)

prt_LineLabels save all labels and wavelengths for emission line array

Parameters
iofile handle to write output
lgPrintAllprint all if true, if false then do not print parts of transferred lines
lgPrintIndexprint the index of the line in the line stack

References t_LineSave::chHoldComments, DEBUG_ENTRY, fprintf(), t_LineSave::lines, LineSave, and t_LineSave::nsum.

Referenced by SaveDo().

Here is the call graph for this function:

void prt_wl ( FILE *  io,
realnum  wavelength 
)
void SetPrintLineCol ( )
void sprt_wl ( string &  chString,
realnum  wl 
)

sprt_wl write wavelength to string - must be kept parallel with prt_wl

Parameters
*chString
wl

References DEBUG_ENTRY, LineSave, t_LineSave::sig_figs, and t_LineSave::wl_length.

Referenced by TransitionProxy::chLabel(), t_LineSave::findline(), LinSv::label(), lines_continuum(), parse_save_line(), PrintSpectrum(), prt_wl(), and SaveDo().

Variable Documentation