added basic parallel output for the
string representation of the rng engine state
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <random>
|
||||
#include "IO/hdf5_writer.h"
|
||||
|
||||
class DynamicDensityField;
|
||||
@@ -35,6 +36,7 @@ class SimulationOutput {
|
||||
void addCurrentBorderOutput(OutputTask task);
|
||||
void addDeletionLoggerOutput(OutputTask task);
|
||||
void setPotentialOutput(OutputTask task);
|
||||
void setRestartInfoOutput(OutputTask task);
|
||||
|
||||
void writeMetaData(
|
||||
std::map<std::string, std::shared_ptr<species::TrackedSpecie>>& species,
|
||||
@@ -43,13 +45,14 @@ class SimulationOutput {
|
||||
void writeSimulationData(
|
||||
int cpu_sync,
|
||||
std::map<std::string, std::shared_ptr<species::TrackedSpecie>>& species,
|
||||
PoissonSolver* poisson_solver);
|
||||
PoissonSolver* poisson_solver, std::mt19937* engine);
|
||||
|
||||
private:
|
||||
std::vector<OutputTask> tasks_density_fields_;
|
||||
std::vector<OutputTask> tasks_current_collector_;
|
||||
std::vector<OutputTask> tasks_deletion_logger_;
|
||||
OutputTask task_potential_; // no meta data written for now
|
||||
OutputTask task_potential_;
|
||||
OutputTask task_rng_;
|
||||
|
||||
Hdf5Writer writer;
|
||||
|
||||
@@ -102,6 +105,10 @@ class SimulationOutput {
|
||||
std::string path_to_field);
|
||||
void writeBinBorders(DynamicDensityField* density_field,
|
||||
std::string path_to_field);
|
||||
|
||||
void writeRestartData(std::mt19937* engine, int cpu_sync,
|
||||
bool overwrite_last);
|
||||
void writeRandomEngineState(std::mt19937* engine, std::string path);
|
||||
};
|
||||
|
||||
#endif /* SIMULATION_OUTPUT_H */
|
||||
|
||||
Reference in New Issue
Block a user