Compilation requires CMake, which can be installed by your OS package manager, or manually (see https://cmake.org/install/)
-
Clone the repo, or download all source files to a folder.
-
In the root of the repo, create a
build/
directory, and runcmake
/make
mkdir -p build cd build cmake ../ make
This will produce a
cactus
executable in thebin/
folder.
Support for OpenMP may be disabled by adding theDOPENMP=OFF
flag to thecmake
call, as below.cmake -DOPENMP=OFF ../
-
The compilation can be tested with the bundled regression tests. Navigate into the
test/RegTest/
and runPATH=$PATH:../../bin/ pytest ./runreg.py
This requires a Python 3 installation with the
pytest
package installed.
For Windows, it is recommended to compile in MingW under MSYS2.
- Install MSYS2 (https://www.msys2.org/)
- Open MingW terminal (likely located at
C:\tools\msys64\mingw64.exe
) - Install the following packages using
pacman
pacman -Sy git make cmake mingw-w64-x86_64-gcc-fortran mingw-w64-x86_64-lapack
- Follow the general install instructions above.
For MSYS builds, the executables will be statically linked for portability.