kassonlab / covid19-epi

Individual-based epidemiological modeling for COVID-19
GNU Lesser General Public License v2.1
5 stars 5 forks source link

Core dump with intervention=1 #17

Closed RogerJL closed 4 years ago

RogerJL commented 4 years ago

https://github.com/kassonlab/covid19-epi/blob/254de2cf3a2b912d1bef3d16a1130fe162652abe/covid19.c#L2078

Ic, Ih, Iw is never initialized will be null causing core dump

peterkasson commented 4 years ago

Thank you; this was introduced at some point after May 7, it appears. Will fix.

peterkasson commented 4 years ago

This was broken in a0e69abadb8a3759807d42af00eba38efcf21de9. Should be fixed in 71bb6c8aa5dec53d32d38fe576b9795d67edc8b3 (inter1 now runs for me, checking regression).

peterkasson commented 4 years ago

Since we've reproduced and fixed this bug, marking the issue closed. If it's not fixed for you, please comment, and we'll reopen.