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 257 forks source link

Wes/files refactor #472

Closed weshinsley closed 3 years ago

weshinsley commented 3 years ago

This PR basically shunts all the cstdio:: based functions (fopen, fclose, fprintf, fscanf) into a namespace Files:: and wraps each with some error catching. This removes all the warnings from "fscanf return type ignored"

fprintf to stderr is treated separately, to make it easier to turn off stderr outputs if we wanted. I tried this to see if it would speed up the lousy performance of the Windows CI, but it didn't, so it looks to me like that is something to do with the VMs github spins up for Windows.