/n-body

N-body simulation with quadtree, OpenMP parallelized.

Primary LanguageC

n-body

N-body using Barnes-Hut method

sudo apt-get install libx11-dev
make
./nbody 4 input_data/sun_and_planets_4.gal 2000 1e-5 0.0 1 1
./nbody 2000 input_data/ellipse_2000.gal 200 1e-5 0.25 0 4