Added new restart info
This commit is contained in:
@@ -15,6 +15,7 @@ class Hdf5Reader {
|
||||
blitz::Array<double, 2> readD2Double(std::string path);
|
||||
blitz::Array<double, 1> readD1Double(std::string path);
|
||||
double readDouble(std::string path);
|
||||
int readInt(std::string path);
|
||||
|
||||
blitz::Array<long int, 5> readD5LongInt(std::string path);
|
||||
blitz::Array<long int, 4> readD4LongInt(std::string path);
|
||||
|
||||
@@ -36,7 +36,8 @@ class Restart {
|
||||
|
||||
void restart(std::map<std::string, std::shared_ptr<species::TrackedSpecie>>& species,
|
||||
PoissonSolver* poisson_solver, RandomNumbers* random_numbers,
|
||||
std::vector<particle::SerializedParticle>& storage_queue);
|
||||
std::vector<particle::SerializedParticle>& storage_queue,
|
||||
int& injectionGroupOffset);
|
||||
|
||||
private:
|
||||
void restartTimer(species::TrackedSpecie* reference_specie);
|
||||
|
||||
@@ -49,7 +49,8 @@ class SimulationOutput {
|
||||
int cpu_sync,
|
||||
std::map<std::string, std::shared_ptr<species::TrackedSpecie>>& species,
|
||||
PoissonSolver* poisson_solver, std::mt19937* engine,
|
||||
std::vector<particle::SerializedParticle>& storage_queue);
|
||||
std::vector<particle::SerializedParticle>& storage_queue,
|
||||
int injectionGroupOffset);
|
||||
|
||||
private:
|
||||
std::vector<OutputTask> tasks_density_fields_;
|
||||
@@ -113,7 +114,7 @@ class SimulationOutput {
|
||||
std::string path_to_field);
|
||||
|
||||
void writeRestartData(std::mt19937* engine, int cpu_sync,
|
||||
bool overwrite_last);
|
||||
bool overwrite_last, int injectionGroupOffset);
|
||||
void writeRandomEngineState(std::mt19937* engine, std::string path);
|
||||
|
||||
void writeParticles(std::vector<particle::SerializedParticle>& particles,
|
||||
|
||||
@@ -96,6 +96,7 @@ class Simulation {
|
||||
int inactive_storage = 1;
|
||||
|
||||
int timestep = 0;
|
||||
int injectionGroupOffset = 0;
|
||||
};
|
||||
|
||||
#endif /* SIMULATION_H */
|
||||
|
||||
Reference in New Issue
Block a user