BDI-pathogens / OpenABM-Covid19

OpenABM-Covid19: an agent-based model for modelling the spread of SARS-CoV-2 (coronavirus) and control interventions for the Covid-19 epidemic
GNU General Public License v3.0
111 stars 76 forks source link

Network specific Transmission Multipliers and Memory Leak Fixes #212

Closed roberthinch closed 3 years ago

roberthinch commented 3 years ago

Add the ability to add a network specific transmission multiplier. This allows for school closures to be modelled when working with static networks by reducing the transmission rate as opposed to deducing the number of connections. Also the network_id on the network objects is now set by the model which guarantees uniqueness and is now used internally.

Fix memory leaks on the R Swig interface which leaks for characters by replacing it with native R-C interface code. Fix memory leaks at the end of simulation when params is destroyed. Fix memory leak when calculating R0.