If damping_expr.get_dampings().size() == 0, then damping_expr.get_dampings().size() - 1 is a big problem, because of the size_t.
Either we check beforehand that the size is greater than 0 or we change the dtype.
Version
Linux
To reproduce
just run an example where the condition above is fulfilled.
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
https://github.com/SciCompMod/memilio/blob/f5e415a079135b1a48c120b7ac6999075df6146d/cpp/memilio/epidemiology/dynamic_npis.h#L323
If
damping_expr.get_dampings().size() == 0
, thendamping_expr.get_dampings().size() - 1
is a big problem, because of thesize_t
. Either we check beforehand that the size is greater than 0 or we change the dtype.Version
Linux
To reproduce
just run an example where the condition above is fulfilled.
Relevant log output
No response
Add any relevant information, e.g. used compiler, screenshots.
No response
Checklist