Codes

C++

by: Simon Portegies Zwart ()

NBabel.cpp
Date: August 2011
Author: Simon Portegies Zwart (Sterrewacht Leiden, spz@strw.leidenuniv.nl)

Integration scheme: Predictor-corrector leapfrog
Compiler: gcc version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5)
Operating system: Ubuntu Linux 10.10 (2.6.35-30-generic)
Hardware: Intel Core I7 CPU M640 2.80GHz

Input file: input128 (Plummer distribution of 128 equal mass particles)
Time step: constant and shared 1.e-3 N-body unit
Integration from t=0 to t=1.0
Performance:
N	Optimizaltion	tCPU	dE/E
128	O4		0.28	1.727321550015759e-06
128	-		3.46	1.727321550015759e-06
256	O4	    	1.13	-0.000668771557303723
256	-	    	13.64	-0.000668771557303723
512	O4	    	4.56	-0.04222426420261736
512	-		52.50  	-0.04222426420261736
1024	O4	    	18.84	 0.01736032774845227
1024	-	    	3m20.5	-0.01736032774845227	
2048	O4	    	1m14.2	-0.008575558889719266
2048	-	    	13m54.5	-0.008575558889719266
4096	O4	    	4m52.4   -0.002574374288525074
4096	-	    	54m58.1  -0.002574374288525074
You can download the code here: main.cpp

Show sourceSelect a file