Added Parameter maxNumberInteractionsPerElectron.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user