Codes

Fortran 95

by: Philip Breen ()

NBabel.f95
Date: April 2010
Author: Philip Breen (University of Edinburgh)

Integration scheme: Predictor-corrector leapfrog

Input file: inputx (Plummer distribution of x equal mass particles)
Time step: constant and shared 1.e-3 N-body unit
Integration from t=0 to t=1.0
Performance:

Compiler: gfortran
Operating system: Scientific Linux
Hardware: Intel(R) Pentium(R) 4 CPU 3.20GHz
Performance:
N        CPU time(s)       dE/E
32       0.189                 7.339E-07
64       0.694                 3.596E-06
128     2.978                 1.727E-06

Date: August 2011
Test performed by Simon Portegies Zwart
Compiler: gfortran (gcc version 4.4.5)
Operating system: Ubuntu Linux 10.10 (2.6.35-30-generic)
Hardware: Intel Core I7 CPU M640 2.80GHz
Performance:

N        optimization        CPU time (s)        dE/E
32       O4                       0.03                       7.33935282770659114E-007
64       O4                       0.09                       3.59673091265833023E-006
128     O4                       0.31                       1.72732154846144681E-006
128      -                          0.50                        1.72732154846144681E-006
512      O4                      4.19                       -4.22242642017740533E-002
512      -                          7.32                       -4.22242642017740533E-002
1024     O4                      16.1                      -1.68333521828889499E-002
2048     O4                      1m4.3                    -8.57555888965655377E-003
4096     O4                      4m14.3                  -2.57437382145275784E-003

You can find the source here: NBabel.f95

Show sourceSelect a file