Skip to content
/ nbody Public

Simple solver for the gravitational N-body problem in Chapel.

Notifications You must be signed in to change notification settings

wagdav/nbody

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nbody
=====

Solve the N-body problem where gravitational field acts among the
bodies.

This toy project aims to play around with the new parallel language Chapel from
Cray.

Compilation
-----------

In order to be able to compile the program you need to have the chapel (chpl)
compiler in the path. Go to the Chapel site (http://chapel.sourceforge.net) and
follow the installation instructions. If you have it installed, just run:

    make

Quick Test
----------

Launch the program

    ./nbody > out.dat

Launch gnuplot, then

    load "quickviz.p"

You can also control the timestep and the final time etc. through config
variables. see 'nbody -h' for details.


About

Simple solver for the gravitational N-body problem in Chapel.

Resources

Stars

Watchers

Forks

Packages

No packages published