Simulates the collapse off mass particles by their own gravitational fields.
OpenCV v4 (for older versions the source code may be adopted)
OpenMP (only for gcc compiler and if parallelisation desired)
Use a out-of-tree build to not pollute your checkout:
mkdir build
cd build
Depending if you want to use a debug or release build, either run
# debugging
cmake -GNinja -DCMAKE_BUILD_TYPE=Debug -DSANITIZE_ADDRESS=On ..
or
# profiling
cmake -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
or
# public release
cmake -GNinja -DCMAKE_BUILD_TYPE=Release ..
ninja
Usually, you do NOT need to re-run cmake.
./masscollapse
Do export OMP_NUM_THREADS=X
before execution to run program on X threads, if OpenMP is available and compiled with gcc.
cd build
ninja format