Skip to content

EyedBread/N-body-problem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

N-body-project

To compile: For the N^2 version, go into the Naive folder and run make to compile program 1 and program 2. For the Barnes-Hut version, go into either Serial/Parallel directory, and run make which should create a BarnesHut executable. Then input the arguments as stated in the following order:

gnumBodies:	the number of bodies
numSteps:	the number of time steps in the simulation
far:	the distance used to decide when to approximate (Barnes-Hut programs only)
numWorkers:	the number of workers (parallel version only)

An extra argument flag has been added to the end for the BarnesHut programs, -gui which will start the graphical interface to visualise the output.

Dependencies: Boost or something, gnuplot, OpenMP (for parallel directory).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages