36 #ifndef CELLBASEDSIMULATIONARCHIVER_HPP_
37 #define CELLBASEDSIMULATIONARCHIVER_HPP_
45 #include "OutputFileHandler.hpp"
46 #include "SimulationTime.hpp"
47 #include "ArchiveLocationInfo.hpp"
48 #include "ArchiveOpener.hpp"
49 #include "FileFinder.hpp"
56 template<
unsigned ELEMENT_DIM,
class SIM,
unsigned SPACE_DIM=ELEMENT_DIM>
70 static SIM*
Load(
const std::string& rArchiveDirectory,
const double& rTimeStamp);
84 static void Save(SIM* pSim);
87 template<
unsigned ELEMENT_DIM,
class SIM,
unsigned SPACE_DIM>
98 std::ostringstream time_stamp;
99 time_stamp << rTimeStamp;
100 std::string archive_filename =
"cell_population_sim_at_time_" + time_stamp.str() +
".arch";
101 std::string mesh_filename =
"mesh_" + time_stamp.str();
115 template<
unsigned ELEMENT_DIM,
class SIM,
unsigned SPACE_DIM>
121 std::ostringstream time_stamp;
122 time_stamp << p_sim_time->
GetTime();
126 std::string archive_filename =
"cell_population_sim_at_time_" + time_stamp.str() +
".arch";
131 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)