cloudy trunk
Loading...
Searching...
No Matches
save_do.cpp File Reference
#include "cddefines.h"
#include "cddrive.h"
#include "physconst.h"
#include "mean.h"
#include "taulines.h"
#include "struc.h"
#include "iso.h"
#include "mole.h"
#include "hyperfine.h"
#include "rt.h"
#include "lines_service.h"
#include "doppvel.h"
#include "dense.h"
#include "h2.h"
#include "magnetic.h"
#include "hydrogenic.h"
#include "secondaries.h"
#include "grainvar.h"
#include "lines.h"
#include "dynamics.h"
#include "colden.h"
#include "continuum.h"
#include "ionbal.h"
#include "yield.h"
#include "prt.h"
#include "iterations.h"
#include "heavy.h"
#include "conv.h"
#include "geometry.h"
#include "called.h"
#include "helike.h"
#include "opacity.h"
#include "rfield.h"
#include "phycon.h"
#include "timesc.h"
#include "radius.h"
#include "atomfeii.h"
#include "monitor_results.h"
#include "thermal.h"
#include "wind.h"
#include "hmi.h"
#include "pressure.h"
#include "elementnames.h"
#include "ipoint.h"
#include "gammas.h"
#include "atmdat.h"
#include "hcmap.h"
#include "input.h"
#include "save.h"
#include "optimize.h"
#include "warnings.h"
#include "grid.h"
#include "mole_priv.h"

Go to the source code of this file.

Functions

int wavelength_compare (const void *a, const void *b)
STATIC void FindStrongestLineLabels (void)
realnum PrettyTransmission (long j, realnum transmission)
STATIC void SaveResults1Line (FILE *ioPUN, const char *chLab, realnum wl, double xInten, const char *chFunction)
STATIC void SaveGaunts (FILE *ioPUN)
STATIC void SaveResults (FILE *ioPUN)
STATIC void SaveLineStuff (FILE *ioPUN, const char *chJob, realnum xLimit)
STATIC void AGN_Hemis (FILE *ioPUN)
STATIC void SaveNewContinuum (FILE *ioPUN)
STATIC void SaveLineIntensity (FILE *ioPUN, long int ipPun, realnum Threshold)
STATIC realnum SaveFeII_cont (long int ipCont, long ipFeII_Cont_type)
void SaveDo (const char *chTime)
void Save1Line (const TransitionProxy &t, FILE *ioPUN, realnum xLimit, long index, realnum DopplerWidth)
void SaveGrid (FILE *pnunit, exit_type status)

Variables

char * chDummy
static bool lgPopsFirstCall
static bool lgSaveOpticalDepths
static const int LINEWIDTH = 6
static const int NENR_GAUNT = 37
static const int NTE_GAUNT = 21

Function Documentation

◆ AGN_Hemis()

STATIC void AGN_Hemis ( FILE * ioPUN)

Definition at line 4510 of file save_do.cpp.

References AnuUnit(), cdEXIT, ConvPresTempEdenIoniz(), DEBUG_ENTRY, dense, EN1RYD, EXIT_FAILURE, ioQQQ, ipHELIUM, ipHYDROGEN, MALLOC, nzone, phycon, rfield, RT_diffuse(), STATIC, and TempChange().

Referenced by SaveDo().

Here is the call graph for this function:

◆ FindStrongestLineLabels()

STATIC void FindStrongestLineLabels ( void )

Definition at line 89 of file save_do.cpp.

References ASSERT, LineSave, LineSv, LineSvSortWL, rfield, RYDLAM, STATIC, wavelength, and wavelength_compare().

Referenced by SaveDo().

Here is the call graph for this function:

◆ PrettyTransmission()

realnum PrettyTransmission ( long j,
realnum transmission )
inline

Definition at line 515 of file save_do.cpp.

References max(), rfield, and save.

Referenced by SaveDo().

Here is the call graph for this function:

◆ Save1Line()

void Save1Line ( const TransitionProxy & t,
FILE * io,
realnum xLimit,
long index,
realnum DopplerWidth )

◆ SaveDo()

void SaveDo ( const char * chTime)

SaveDo produce save output during calculation

Parameters
chTimechTime is null terminated 4 char string, either "MIDL" or "LAST"

Definition at line 573 of file save_do.cpp.

References abund, AGN_He1_CS(), AGN_Hemis(), AnuUnit(), ASSERT, BOLTZMANN, called, cdColm(), cdExecTime(), cdEXIT, cdLine(), ChargTranPun(), CHIANTI_Upsilon(), colden, colliders, continuum, conv, CoolSave(), cpu, dBaseSpecies, dBaseTrans, DEBUG_ENTRY, molezone::den, dense, DoppVel, dynamics, DynaPunchTimeDep(), DynaSave(), elementnames, EN1RYD, EVRYD, EXIT_FAILURE, EXIT_SUCCESS, FeII, FeII_Cont, FeIIPunchColden(), FeIIPunchLevels(), FeIIPunchOpticalDepth(), FeIIPunDepart(), FeIIPunPop(), FeIISaveLines(), findspecies(), findspecieslocal(), FindStrongestLineLabels(), fp_equal(), GammaPrt(), geometry, grid, GridGatherInCloudy(), gv, h2, hcmap, Heavy, HFLines, hmi, HydroRecCool(), hyperfine, molecule::index, Singleton< t_ADfA >::Inst(), Singleton< t_yield >::Inst(), ion_recombAGN(), ionbal, ioQQQ, ipALUMINIUM, ipCARBON, ipCOL_elec, ipCOL_H0, ipCOL_H2g, ipCOL_H2s, ipCOL_H3p, ipCOL_Hp, ipCOL_HTOT, ipELECTRON, ipFineCont(), ipH1s, ipH2p, ipH2s, ipH_LIKE, ipHe1s1S, ipHe2p1P, ipHe2p3P0, ipHe2p3P1, ipHe2p3P2, ipHe2s3S, ipHE_LIKE, ipHELIUM, ipHYDROGEN, ipIRON, ipMAGNESIUM, ipoint(), ipOXYGEN, ipRecEsc, ipRecNetEsc, ipRecRad, ipSILICON, ipSODIUM, ipSULPHUR, ipT1032, ipT146, ipT157, ipT370, ipT610, ipT63, is_odd(), iso_sp, iteration, iterations, lgAbort, lgCheckMonitors(), lgFirst, lgMustPrintHeader, LIMELM, LineSave, LineSv, magnetic, map_do(), MAX2, MAX_HEADER_SIZE, mean, MIN2, mole, mole_dominant_rates(), mole_global, mole_punch(), t_yield::nelec_eject(), nFeIIConBins, nMatch(), nSpecies, NTYPES, null_mole, NUM_OUTPUT_TYPES, nzone, OccupationNumberLine(), opac, optimize, t_ADfA::ph1(), phycon, plankf(), POW2, pressure, PrettyTransmission(), prt_LineLabels(), prt_wl(), PrtColumns(), PrtLinePres(), PrtMeanIon(), radius, rfield, RYDLAM, safe_div(), save, save_average(), save_colden(), save_line(), Save_Line_RT(), save_opacity(), SaveFeII_cont(), saveFITSfile(), SaveGaunts(), SaveHeat(), SaveLineData(), SaveLineIntensity(), SaveLineStuff(), SaveNewContinuum(), SaveResults(), SaveSpecial(), SaveSpecies(), SDIV(), secondaries, sexp(), ShowMe(), SMALLFLOAT, sprt_wl(), struc, TauLines, TempChange(), TexcLine(), thermal, timesc, TorF(), TotalInsanity(), VERSION_TRNCON, wavelength, and wind.

Referenced by BadStart(), and cloudy().

◆ SaveFeII_cont()

STATIC realnum SaveFeII_cont ( long int ipCont,
long ipFeII_Cont_type )

Definition at line 561 of file save_do.cpp.

References DEBUG_ENTRY, FeII_Cont, and STATIC.

Referenced by SaveDo().

◆ SaveGaunts()

STATIC void SaveGaunts ( FILE * ioPUN)

Definition at line 4735 of file save_do.cpp.

References cont_gaunt_calc(), DEBUG_ENTRY, g, LIMELM, NENR_GAUNT, NTE_GAUNT, phycon, STATIC, and TE1RYD.

Referenced by SaveDo().

Here is the call graph for this function:

◆ SaveGrid()

void SaveGrid ( FILE * pnunit,
exit_type status )

SaveGrid implements the SAVE GRID command

Parameters
pnunit: file descriptor to write to
status: exit status of the grid point

Definition at line 4846 of file save_do.cpp.

References cpu, ES_SUCCESS, ES_WARNINGS, grid, INPUT_LINE_LENGTH, optimize, TorF(), and warnings.

Referenced by cdPrepareExit().

Here is the call graph for this function:

◆ SaveLineIntensity()

STATIC void SaveLineIntensity ( FILE * ioPUN,
long int ipPun,
realnum Threshold )

Definition at line 4180 of file save_do.cpp.

References cdCautions(), cdWarnings(), DEBUG_ENTRY, input, LineSave, LineSv, nzone, save, SaveResults1Line(), STATIC, and wavelength.

Referenced by SaveDo().

Here is the call graph for this function:

◆ SaveLineStuff()

STATIC void SaveLineStuff ( FILE * ioPUN,
const char * chJob,
realnum xLimit )

◆ SaveNewContinuum()

STATIC void SaveNewContinuum ( FILE * ioPUN)
Todo
2 - NB - if continuum resolution changed the lines WILL NOT WORK

Definition at line 4409 of file save_do.cpp.

References AnuUnit(), cdSPEC(), cdSPEC2(), fixit(), ipoint(), MALLOC, rfield, and STATIC.

Referenced by SaveDo().

Here is the call graph for this function:

◆ SaveResults()

STATIC void SaveResults ( FILE * ioPUN)

Definition at line 4579 of file save_do.cpp.

References ASSERT, cdCautions(), cdWarnings(), DEBUG_ENTRY, input, LIMELM, LineSave, LineSv, mean, opac, SaveResults1Line(), STATIC, and wavelength.

Referenced by SaveDo().

Here is the call graph for this function:

◆ SaveResults1Line()

STATIC void SaveResults1Line ( FILE * ioPUN,
const char * chLab,
realnum wl,
double xInten,
const char * chFunction )

Definition at line 4644 of file save_do.cpp.

References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, ioQQQ, ipLine, LINEWIDTH, prt_wl(), save, STATIC, and wavelength.

Referenced by SaveLineIntensity(), and SaveResults().

Here is the call graph for this function:

◆ wavelength_compare()

int wavelength_compare ( const void * a,
const void * b )

Definition at line 75 of file save_do.cpp.

References a1, and b1.

Referenced by FindStrongestLineLabels().

Variable Documentation

◆ chDummy

char* chDummy

Definition at line 558 of file save_do.cpp.

◆ lgPopsFirstCall

bool lgPopsFirstCall
static

Definition at line 4227 of file save_do.cpp.

Referenced by Save1Line(), and SaveLineStuff().

◆ lgSaveOpticalDepths

bool lgSaveOpticalDepths
static

Definition at line 4227 of file save_do.cpp.

Referenced by Save1Line(), and SaveLineStuff().

◆ LINEWIDTH

const int LINEWIDTH = 6
static

Definition at line 4640 of file save_do.cpp.

Referenced by SaveResults1Line().

◆ NENR_GAUNT

const int NENR_GAUNT = 37
static

Definition at line 4731 of file save_do.cpp.

Referenced by SaveGaunts().

◆ NTE_GAUNT

const int NTE_GAUNT = 21
static

Definition at line 4732 of file save_do.cpp.

Referenced by SaveGaunts().