- Install
rustup
from either the distribution's package manager or the official website - Download the compiler and the
cargo
package manager for thestable
version of Rust by runningrustup default stable
- Run
cargo run
orcargo run <num_bodies>
to download the dependencies, compile everything and run the program. - If it doesn't work, try going back to the second step and change to the
nightly
version withrustup default nightly
, as it could be that we accidentally used something only available in nightly, which we all have ourselves since we like to live life on the edge B)
cargo run
reads thestarting_configuration.json
for reproducible resultscargo run <num_bodies>
generates a fixed number of bodies over a finite space with random locations, positions and velocities
The master branch implements the safe implementation. If you would like to try out the raw pointer implementation using the unsafe code blocks, you can checkout the raw_pointer_concurrency
branch.