Added Parameter maxNumberInteractionsPerElectron.

This commit is contained in:
Christian
2019-03-20 15:58:00 +01:00
parent 63470ac340
commit 3c94d9083e
3 changed files with 8 additions and 1 deletions
+6 -1
View File
@@ -45,13 +45,18 @@ void Simulation::doit() {
};
bool Simulation::check_NumberInteractions(int &numberInteractionsThisElectron) {
if (numberInteractionsThisElectron < 100) {
if (maxNumberInteractionsPerElectron == 0) {
return(false);
}
if (numberInteractionsThisElectron < maxNumberInteractionsPerElectron) {
numberInteractionsThisElectron++;
return(false);
} else {
return(true);
}
}
void Simulation::doTC6() {
cout<<endl<<"Simulation::doTC6: Doing Testcase 6."<<endl<<endl;
parameterCheck_TC6();