Assuming that double Nj = this->populations.get_group_total(j);returns 0.
Then double divNj = 1.0 / Nj; returns NaN. This functionality is used in the secirvvs, secir and seir.
Version
Linux
To reproduce
run a simulation where the subpopulation of a age group is zero.
Relevant log output
No response
Add any relevant information, e.g. used compiler, screenshots.
No response
Checklist
[X] Attached labels, especially loc:: or model:: labels.
Bug description
Assuming that
double Nj = this->populations.get_group_total(j);
returns 0. Thendouble divNj = 1.0 / Nj;
returns NaN. This functionality is used in the secirvvs, secir and seir.Version
Linux
To reproduce
run a simulation where the subpopulation of a age group is zero.
Relevant log output
No response
Add any relevant information, e.g. used compiler, screenshots.
No response
Checklist