cloudy  trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions | Variables
prt.cpp File Reference
#include "cddefines.h"
#include "lines.h"
#include "prt.h"
#include "generic_state.h"
Include dependency graph for prt.cpp:

Go to the source code of this file.

Functions

void SetPrintLineCol ()
 
void prt_wl (FILE *ioOUT, realnum wl)
 
void sprt_wl (char *chString, realnum wl)
 
void prt_LineLabels (FILE *ioOUT, bool lgPrintAll)
 
void prt_line_err (FILE *ioOUT, const char *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 char *  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

Definition at line 161 of file prt.cpp.

References fprintf(), and prt_wl().

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

Here is the call graph for this function:

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

Definition at line 173 of file prt.cpp.

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

Referenced by SaveDo().

Here is the call graph for this function:

void prt_LineLabels ( FILE *  io,
bool  lgPrintAll 
)

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

Definition at line 112 of file prt.cpp.

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 
)

prt_wl write wavelength to io

Parameters
*io
wavelength

Definition at line 44 of file prt.cpp.

References DEBUG_ENTRY, fprintf(), LineSave, sprt_wl(), and t_LineSave::wl_length.

Referenced by ContBandsCreate(), GetOptLineInt(), diatomics::H2_PunchDo(), iso_radiative_recomb_effective(), lgCheckMonitors(), lines_table(), prt_line_err(), prt_line_inlist(), PrtLinePres(), PrtOneMonitor(), Save1Line(), Save1LineData(), SaveDo(), and SaveSpeciesLines().

Here is the call graph for this function:

void SetPrintLineCol ( )

SetPrintLineCol set main line block & wl printing formats

Definition at line 28 of file prt.cpp.

References t_line_col::absint_len, t_line_col::col_gap, t_line_col::col_gap_len, t_line_col::column_len, LineSave, NCHLAB, t_line_col::relint_len, t_line_col::relint_outrange, t_LineSave::sig_figs, and t_LineSave::wl_length.

Referenced by cloudy().

void sprt_wl ( char *  chString,
realnum  wl 
)

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

Parameters
*chString
wl

Definition at line 56 of file prt.cpp.

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(), ParseSave(), PrintSpectrum(), prt_wl(), and SaveDo().

Variable Documentation

t_prt prt
t_line_col prt_linecol

Definition at line 15 of file prt.cpp.

Referenced by PrintSpectrum(), prme(), prt_header_cols(), and StuffComment().