Skip to content

michalburger1/COVID-19-simulation

 
 

Repository files navigation

COVID-19 simulation for Slovakia

Build Status

Based on Stochastic Simulation of the Initial Phase of the COVID-19 Epidemic in Slovakia by Radoslav Harman.

Building using CMake

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 .

Running and viewing protobuf files

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.

Building using Conan

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 67.7%
  • C++ 27.5%
  • CMake 1.9%
  • HTML 1.3%
  • Other 1.6%