36 #ifndef CELLBASEDSIMULATIONARCHIVER_HPP_ 37 #define CELLBASEDSIMULATIONARCHIVER_HPP_ 48 #include "ArchiveLocationInfo.hpp" 49 #include "ArchiveOpener.hpp" 50 #include "FileFinder.hpp" 51 #include "SimulationTime.hpp" 58 template<
unsigned ELEMENT_DIM,
class SIM,
unsigned SPACE_DIM=ELEMENT_DIM>
72 static SIM*
Load(
const std::string& rArchiveDirectory,
const double& rTimeStamp);
86 static void Save(SIM* pSim);
89 template<
unsigned ELEMENT_DIM,
class SIM,
unsigned SPACE_DIM>
100 std::ostringstream time_stamp;
101 time_stamp << rTimeStamp;
102 std::string archive_filename =
"cell_population_sim_at_time_" + time_stamp.str() +
".arch";
103 std::string mesh_filename =
"mesh_" + time_stamp.str();
117 template<
unsigned ELEMENT_DIM,
class SIM,
unsigned SPACE_DIM>
123 std::ostringstream time_stamp;
124 time_stamp << p_sim_time->
GetTime();
128 std::string archive_filename =
"cell_population_sim_at_time_" + time_stamp.str() +
".arch";
133 boost::archive::text_oarchive* p_arch = arch_opener.GetCommonArchive();
static void SetMeshFilename(const std::string &rFilename)
static SimulationTime * Instance()
Archive * GetCommonArchive()
bool IsStartTimeSetUp() const
static void SetMeshPathname(const FileFinder &rDirectory, const std::string &rFilename)
static void Save(SIM *pSim)
static SIM * Load(const std::string &rArchiveDirectory, const double &rTimeStamp)