cloudy trunk
|
#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 |
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().
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().
void Save1Line | ( | const TransitionProxy & | t, |
FILE * | io, | ||
realnum | xLimit, | ||
long | index, | ||
realnum | DopplerWidth ) |
save one line, called by SaveLineStuff
t | |
io | |
xLimit | |
index | |
DopplerWidth |
Definition at line 4347 of file save_do.cpp.
References AnuUnit(), chLineLbl(), EmissionProxy::dampXvel(), elementnames, TransitionProxy::Emis(), TransitionProxy::EnergyRyd(), TransitionProxy::EnergyWN(), EmissionProxy::gf(), TransitionProxy::Hi(), lgPopsFirstCall, lgSaveOpticalDepths, TransitionProxy::Lo(), prt_wl(), save, EmissionProxy::TauIn(), and TransitionProxy::WLAng().
Referenced by FeIIPunchLineStuff(), diatomics::H2_PunchLineStuff(), and SaveLineStuff().
void SaveDo | ( | const char * | chTime | ) |
SaveDo produce save output during calculation
chTime | chTime 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().
Definition at line 561 of file save_do.cpp.
References DEBUG_ENTRY, FeII_Cont, and STATIC.
Referenced by SaveDo().
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().
void SaveGrid | ( | FILE * | pnunit, |
exit_type | status ) |
SaveGrid implements the SAVE GRID command
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().
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().
Definition at line 4230 of file save_do.cpp.
References cdEXIT, DEBUG_ENTRY, dense, EXIT_FAILURE, ExtraLymanLines, FeIIPunchLineStuff(), GetDopplerWidth(), h2, ioQQQ, ipExtraLymanLines, ipH_LIKE, iso_ctrl, iso_sp, lgFirst, lgPopsFirstCall, lgSaveOpticalDepths, LIMELM, NISO, nLevel1, nUTA, nWindLine, save, Save1Line(), STATIC, TauLine2, TauLines, and UTALines.
Referenced by SaveDo().
STATIC void SaveNewContinuum | ( | FILE * | ioPUN | ) |
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().
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().
int wavelength_compare | ( | const void * | a, |
const void * | b ) |
Definition at line 75 of file save_do.cpp.
Referenced by FindStrongestLineLabels().
char* chDummy |
Definition at line 558 of file save_do.cpp.
|
static |
Definition at line 4227 of file save_do.cpp.
Referenced by Save1Line(), and SaveLineStuff().
|
static |
Definition at line 4227 of file save_do.cpp.
Referenced by Save1Line(), and SaveLineStuff().
|
static |
Definition at line 4640 of file save_do.cpp.
Referenced by SaveResults1Line().
|
static |
Definition at line 4731 of file save_do.cpp.
Referenced by SaveGaunts().
|
static |
Definition at line 4732 of file save_do.cpp.
Referenced by SaveGaunts().