jdstorm / benchmark-leapfrog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple N-Body with LeapFrog integrator

Implementation in C, Fortran, Go and Rust of a very simple N-Body simulator with 3 particles using a LeapFrog integrator. Presented in What can the programming language Rust do for astrophysics?, to appear in the Proceedings of the IAU Symposium 325 on Astroinformatics.

Compilation & execution

From each directory:

make clean
make
time target/optimized/leapfrog 

About


Languages

Language:Fortran 30.7%Language:Go 19.4%Language:Makefile 17.2%Language:C 16.7%Language:Rust 16.0%