Based on Stochastic Simulation of the Initial Phase of the COVID-19 Epidemic in Slovakia by Radoslav Harman.
You need googletest, protobuf and OpenMP installed (usually comes with the compiler). You can also use the Dockerfile
in the root of the repository, which has all the dependencies installed.
mkdir build && cd $_
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build .
build/simulation data/Slovakia.data
# The simulation creates a proto file 'results.pb', which can be examined
cat results.pb | protoc --decode SimulationResults src/simulation_results.proto
You can also visualize the results, see the covid_graphs README for examples.
Conan is able to download the dependencies and compile the project. However, you still need OpenMP on your system, though that usually comes installed with the compiler.
mkdir build && cd $_
conan install -b gtest ..
conan build ..
You can also use Conan to install protoc
.
conan install -g deploy 'protoc_installer/[>=0]@bincrafters/stable
./protoc_installer/bin/protoc --decode ... # As above