Fixed bug where throwing error if both calcPop parameters were 0.
This commit is contained in:
@@ -133,6 +133,9 @@ void Simulation::doit() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
void Simulation::do_cycle(long int number_total, long int step_size, bool logging) {
|
void Simulation::do_cycle(long int number_total, long int step_size, bool logging) {
|
||||||
|
if (number_total == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (step_size <1) {
|
if (step_size <1) {
|
||||||
stringstream ss;
|
stringstream ss;
|
||||||
ss<<"Simulation::do_cycle: invalid step_size. \n";
|
ss<<"Simulation::do_cycle: invalid step_size. \n";
|
||||||
|
|||||||
Reference in New Issue
Block a user