Class TempLat::SimulationManager
template <size_t NDim>
ClassList > TempLat > SimulationManager
A class which handles start and stop of a simulation. Also used to create the info file.
#include <simulationmanager.h>
Public Functions
| Type | Name |
|---|---|
| SimulationManager (ParameterParser & parser) |
|
| void | backup (ParameterParser & parser, Model & model, T time, std::string folder) |
| void | closeInfoFile (int nprocesses) |
| void | createInfoFile (ParameterParser & par, const RunParameters< T > & runPar, Model & model, const std::vector< int > & dec, bool amIRoot) |
| bool | doWeRestart () const |
| void | getParams (ParameterParser & parser) |
| void | loadSim (Model & model, T & t0) |
| void | saveSim (ParameterParser & parser, Model & model, T time, std::string tag="") |
Public Static Functions
| Type | Name |
|---|---|
| std::string | base_filename (const RunParameters< T > & par, Model & model, bool removeLastChar=false, bool forceModelVerbosity=false) |
Public Functions Documentation
function SimulationManager
function backup
template<typename T, class Model>
inline void TempLat::SimulationManager::backup (
ParameterParser & parser,
Model & model,
T time,
std::string folder
)
function closeInfoFile
function createInfoFile
template<typename T, class Model>
inline void TempLat::SimulationManager::createInfoFile (
ParameterParser & par,
const RunParameters < T > & runPar,
Model & model,
const std::vector< int > & dec,
bool amIRoot
)
function doWeRestart
function getParams
function loadSim
template<typename T, class Model>
inline void TempLat::SimulationManager::loadSim (
Model & model,
T & t0
)
function saveSim
template<typename T, class Model>
inline void TempLat::SimulationManager::saveSim (
ParameterParser & parser,
Model & model,
T time,
std::string tag=""
)
Public Static Functions Documentation
function base_filename
template<typename T, class Model>
static inline std::string TempLat::SimulationManager::base_filename (
const RunParameters < T > & par,
Model & model,
bool removeLastChar=false,
bool forceModelVerbosity=false
)
The documentation for this class was generated from the following file cosmolatticeweb/tmp/code_source/cosmolattice/include/CosmoInterface/simulationmanager.h