Run using vcpkg

The project offers a vcpkg.json file to fetch and build all dependencies which minimizes efforts in their installation. Unfortunately, python dependencies need to be installed manually.

Prerequisites:

  • gcc (or any C++17-compliant compiler)

  • CMake >=3.9 for building

  • git for cloning the repository

  • Python3 >=3.9 interpreter for plots. See uv or pyenv for managing Python versions.

  1. Clone this repository and vcpkg repository within

git clone https://github.com/mpimd-csc/phgasnets.git
cd phgasnets
git clone --depth 1 https://github.com/microsoft/vcpkg.git .vcpkg
  1. Build phgasnets using vcpkg to handle dependencies,

cmake -B build -S . -DCMAKE_TOOLCHAIN_FILE=./.vcpkg/scripts/buildsystems/vcpkg.cmake
cmake --build build
  1. Install Python dependencies for plotting scripts

python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install -r requirements.txt
  1. Run the demos

./RUNME.sh

This should produce all the results in the results folder.