Added termination of Electrons after 100 Interactions

This commit is contained in:
Christian
2019-03-20 15:48:24 +01:00
parent c5174beeb9
commit 63470ac340
7 changed files with 123 additions and 25 deletions
+4 -1
View File
@@ -28,7 +28,7 @@ private:
void do_statusUpdate();
void move_electron(Electron *moveElectron, Logger *Log);
void do_interaction(Electron *interactElectron);
bool check_NumberInteractions(int &numberInteractionsThisElectron);
Katrin Kat;
Logger Log;
ranlib::Uniform<double> rngUni;
@@ -36,6 +36,9 @@ private:
int numberTotalElectrons;
int numberDecays;
std::deque<Electron> electronQue;
Electron *actionElectronPtr;
//Updater
int updater_numberOfPrevious;
int updater_fraction;