Reworked Populations Loggers.
Added Save and Load Option for Population Data.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user