mrc-ide / covid-sim

This is the COVID-19 CovidSim microsimulation model developed by the MRC Centre for Global Infectious Disease Analysis hosted at Imperial College, London.
GNU General Public License v3.0
1.23k stars 256 forks source link

Added Cell/Hosts helper functions to Update.cpp #396

Closed DavidVernest closed 4 years ago

DavidVernest commented 4 years ago

Consolidate Cells and Hosts updates across Update.cpp into a helper function.

All changes are in Update.cpp. A future step can extract this logic out of Update.cpp

assert statements (now removed) have been used to verify that the new UpdateCell() function gives the same result as the original logic.

Fixes #339