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