Added "Population Calculation" Mode, where Particles are not logged and different communication rate between CPUs can be set to calculate equilibrium population densities in the beginning.

This commit is contained in:
Christian
2019-07-23 13:08:04 +02:00
parent 7efbbefcc8
commit 7e0880697a
9 changed files with 77 additions and 18 deletions
+5 -1
View File
@@ -16,6 +16,8 @@ class Simulation {
static const long int seed;
static const long int numberTotalDecays;
static const long int simulationStepWidth;
static const long int popCalcDecays;
static const long int popCalcStep;
long int numberTotalParticles = 0;
long int number_local_decays = 0;
@@ -49,7 +51,9 @@ private:
public:
void doit();
private:
void do_decays(int number_decays);
void do_cycle(long int number_total, long int step_size, bool logging);
void do_decays(const long int &number_decays, const bool &logging);
void sync_cpus();
void sync_populations();
void do_statusUpdate();