Fixed bug where throwing error if both calcPop parameters were 0.

This commit is contained in:
Christian
2019-07-23 17:52:00 +02:00
parent b3633ce956
commit 3cab8cc08b
+3
View File
@@ -133,6 +133,9 @@ void Simulation::doit() {
};
void Simulation::do_cycle(long int number_total, long int step_size, bool logging) {
if (number_total == 0) {
return;
}
if (step_size <1) {
stringstream ss;
ss<<"Simulation::do_cycle: invalid step_size. \n";