source: proiecte/NBody/NBI/README @ 163

Last change on this file since 163 was 163, checked in by (none), 14 years ago
File size: 891 bytes
Line 
1This program provides an implementation for four integrators.
2
3The one that I studied is the Wisdom-Hollman simplectic integrator, which function coresponds to the HWHStep.
4
5Files:
6
7NBIserial.c - serial version of the program.
8NBIparalel.c - paralel version of the program.
9NBIsampleinput - input file
10NBIsampleoutput - output file
11NBIsampleoutput.log - log file
12scr_serial.sh - script to run the serial version on fep
13scr_paralel.sh - script to run the paralel version on fep, it takes as input arguments the number of threads and        the schedule type
14
15Ex: scr_paralel.sh 4 "guided"
16
17Compile: make
18Run:
19        Serial 
20        time ./NBIserial NBIsampleinput
21
22Time:
23real    0m0.017s
24user    0m0.000s
25sys     0m0.016s
26
27        Paralel
28        setenv OMP_NUM_THREADS 4
29        setenv OMP_SCHEDULE "dynamic"
30        time ./NBIparalel NBIsampleinput
31
32Time:   
33        real    0m0.084s
34        user    0m0.016s
35        sys     0m0.016s
36
37
Note: See TracBrowser for help on using the repository browser.