Project-based on Angel Uriot's Galaxy_simulation in which
we add negative masses and apply either Newton (m gamma = mM/d^2
) or anti-Newton law (|m| gamma = mM/d^2
).
sudo apt-get install pkg-config ocl-icd-opencl-dev opencl-clhpp-headers libsfml-dev libglm-dev libglew-dev libglfw3-dev libdw-dev
w
git clone https://github.com/Lecrapouille/Janus.git --recursive
cd Janus
make download-external-libs
make -j`nproc --all`
./build/Janus
Probable issue: Depending on whether you are on Ubuntu 20 or 22 or Debian 11, you may have to change the OpenCL header in libraries.hpp.
Choose between #include <CL/opencl.hpp>
and #include <CL/cl2.hpp>
.
Made with a sagy GT710