imih / cmplx

cmplx - Epidemic source detection library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

License

cmplx - Epidemic source detection library

Compiling the library

First install the following dependencies. Those include dependencies to compile igraph locally, and opempi dependencies used by the library.

sudo apt-get install build-essential cmake bzr libtool libxml2-dev openmpi-common libopenmpi-dev
openmpi-bin

To download and compile igraph locally, run the script install_igraph.sh in a new directory igraph. It will download the latest version of igraph from Launchpad and compile it locally.

To enable linking, edit common/IgraphConfig.cmake and add local igraph/include dir path to IGRAPH_INCLUDE_DIR variable and local igraph/lib dir path to IGRAPH_LIBRARY variable.

Make sure the path to IgraphConfig.cmake is set properly in CMakeLists.txt, common/CMakeLists.txt and simul/CMakeLists.txt. Finally, create dir build and run

cmake cmplx
make

Compiling the tests

Tests are configured with cmake cmplx -Dtest=ON. Run them all with make test. Tests require GTest library.

Running

Run executables with mpiexec -n [#processes] executable [local flags].

About

cmplx - Epidemic source detection library

License:MIT License


Languages

Language:R 51.8%Language:C++ 41.8%Language:Shell 4.5%Language:CMake 1.9%Language:C 0.1%