cloudy
trunk
|
#include "cddefines.h"
#include "parse.h"
#include "cddrive.h"
#include "elementnames.h"
#include "input.h"
#include "iterations.h"
#include "prt.h"
#include "rfield.h"
#include "hcmap.h"
#include "h2.h"
#include "version.h"
#include "grainvar.h"
#include "grid.h"
#include "save.h"
#include "parser.h"
#include "service.h"
#include "species.h"
Go to the source code of this file.
Functions | |
STATIC const char * | ChkUnits (Parser &p) |
STATIC bool | specBandsExists (const string filename, const string speciesLabel) |
void | saveXSPEC (unsigned int option) |
void | ParseSave (Parser &p) |
void | SaveFilesInit () |
void | CloseSaveFiles (bool lgFinal) |
Definition at line 2721 of file parse_save.cpp.
References DEBUG_ENTRY, Parser::nMatch(), StandardEnergyUnit(), and Parser::StandardEnergyUnit().
Referenced by ParseSave().
void CloseSaveFiles | ( | bool | lgFinal | ) |
close all open save files
lgFinal | - close ALL files, regardless of "no clobber" status when true |
Definition at line 2643 of file parse_save.cpp.
References DEBUG_ENTRY, fprintf(), grid, gv, ioMAP, ioQQQ, t_save::ioRecom, t_save::ipDRout, SaveParams::ipPnunit, t_save::ipPoint, t_save::ipPunConv, t_save::ipTraceConvergeBase, t_save::lgDROn, t_save::lgDROn_noclobber, t_save::lgFITS, t_save::lgioRecom, t_save::lgioRecom_noclobber, t_save::lgNoClobber, t_save::lgPunConv, t_save::lgPunConv_noclobber, t_save::lgPunPoint, t_save::lgPunPoint_noclobber, t_save::lgQHSaveFile_noclobber, t_save::lgSaveGrid_noclobber, t_save::lgTraceConvergeBase, t_save::lgTraceConvergeBase_noclobber, t_save::lgXSPEC, t_save::nsave, t_save::params, t_grid::pnunit, GrainVar::QHSaveFile, and save.
Referenced by cdClosePunchFiles(), cdPrepareExit(), and cloudy().
void ParseSave | ( | Parser & | p | ) |
ParseSave parse the save command
*chCard |
code printed log quantities, historically. Maintain backwards compatibility
Definition at line 85 of file parse_save.cpp.
References cdEXIT, cdGetLineList(), t_save::chConSavEnr, t_elementnames::chElementNameShort, t_elementnames::chElementSym, t_save::chFileName, t_save::chFilenamePrefix, t_save::chGridPrefix, ChkUnits(), t_save::chLineListLabel, t_save::chOpcTyp, t_save::chPunRltType, t_save::chSave, t_save::chSaveArgs, t_save::chSaveSpecies, t_save::chSpeciesDominantRates, t_input::chTitle, t_save::contSaveSpeciesLabel, DEBUG_ENTRY, t_mesh::egamry(), elementnames, t_save::emisfreq, t_mesh::emm(), EXIT_FAILURE, exp10(), Parser::FFmtRead(), save_species_bands::filename, t_save::FITStype, fprintf(), Parser::GetElem(), Parser::GetQuote(), grid, h2, diatomics::H2_ParseSave(), hcmap, hd, input, INPUT_LINE_LENGTH, Singleton< t_version >::Inst(), ioQQQ, ipCARBON, ipHELIUM, ipHYDROGEN, ipOXYGEN, SaveParams::ipPnunit, t_save::ipSaveGrid, is_odd(), iterations, t_save::lgCumulative, t_save::lgEmergent, Parser::lgEOL(), t_save::lgFITS, t_save::lgHashEndIter, t_grid::lgInsideGrid, t_save::lgLineListRatio, t_save::lgLinEvery, t_save::lgNoClobber, t_save::lgPrtIsotropicCont, t_save::lgPrtOldStyleLogs, t_save::lgPunContinuum, t_save::lgPunLstIter, t_save::lgSaveEveryZone, t_rfield::lgSaveOpacityFine, t_save::lgSaveToSeparateFiles, LIMELM, LIMPUN, t_save::LinEvery, makeChemical(), t_hcmap::MapZone, MAX2, MIN2, t_iterations::nend, t_save::nLineList, Parser::nMatch(), Parser::nMatchErase(), Parser::NoNumb(), t_save::nsave, t_save::nSaveEveryZone, NUM_OUTPUT_TYPES, t_save::optname, t_save::params, parse_save_average(), parse_save_line(), Parse_Save_Line_RT(), t_save::punarg, t_hcmap::RangeMap, rfield, Energy::Ryd(), save, t_save::SaveLineListFree(), Energy::set(), sncatf(), t_save::specBands, specBandsExists(), t_save::SpeciesBandFile, save_species_bands::speciesLabel, sprt_wl(), Parser::StandardEnergyUnit(), Parser::StringError(), trimTrailingWhiteSpace(), and t_save::wlLineList.
Referenced by ParseCommands().
void SaveFilesInit | ( | void | ) |
initialize save file pointers
Definition at line 2571 of file parse_save.cpp.
References DEBUG_ENTRY, grid, gv, ioMAP, t_save::ioRecom, t_save::ipDRout, SaveParams::ipPnunit, t_save::ipPoint, t_save::ipPunConv, t_save::ipTraceConvergeBase, t_save::lgDROn, t_save::lgDROn_noclobber, t_grid::lgGrid, t_save::lgioRecom, t_save::lgioRecom_noclobber, t_save::lgNoClobber, t_save::lgPunConv, t_save::lgPunConv_noclobber, t_save::lgPunPoint, t_save::lgPunPoint_noclobber, t_save::lgQHSaveFile_noclobber, t_save::lgRealSave, t_save::lgSaveGrid_noclobber, t_save::lgTraceConvergeBase, t_save::lgTraceConvergeBase_noclobber, LIMPUN, t_save::params, t_grid::pnunit, GrainVar::QHSaveFile, save, and TotalInsanity().
Referenced by InitCoreload().
|
inline |
Definition at line 30 of file parse_save.cpp.
References ASSERT, t_save::chSave, t_save::FITStype, grid, t_grid::lgOutputTypeOn, t_save::nsave, NUM_OUTPUT_TYPES, and save.
STATIC bool specBandsExists | ( | const string | filename, |
const string | speciesLabel | ||
) |
Definition at line 2739 of file parse_save.cpp.
References exists(), save, and t_save::specBands.
Referenced by ParseSave().