Reworked Populations Loggers.

Added Save and Load Option for Population Data.
This commit is contained in:
Christian
2019-06-17 10:47:04 +02:00
parent bd64d5390f
commit 13ce5177a2
55 changed files with 3446 additions and 672 deletions
+10
View File
@@ -20,6 +20,8 @@
#include "interaction_builder.hpp"
#include "terminator_builder.hpp"
#include "population_load_saver.hpp"
class Simulation {
static const long int seed;
@@ -41,6 +43,9 @@ class Simulation {
Terminator_Manager terminators;
Population_Logger_Manager pop_loggers;
Population_Load_Saver pop_load_saver;
int numberTotalParticles = 0;
int numberDecays = 0;
@@ -50,7 +55,12 @@ class Simulation {
public:
Simulation() {
init();
pop_load_saver.load();
}
~Simulation() {
pop_load_saver.save();
}
private:
void init();
void set_RNGs();