# Nbody ## Description Nbody simulation is a simulation of a dynamical system of particles, usually under the influence of physical forces, such as gravity. ## Versions One version of the program is provided, which runs the nbody kernel iteratively on the GPU only. ## Execution instructions Before executing the program, it is necessary to configure Nanos6 to use the GPU-enabled hierarchical scheduler, thus it is necessary to set the environment variable *NANOS6_SCHEDULER* to *hierarchical* To run the program use: ``` ./nbody [input-file] ``` Input files can be found in the *data* folder. The programs outputs a *nbody_out.xyz* file which can be compared with the reference file in the *data* folder to check for correctness.