91c4bf4f582ee0697f969c4325ca20bd816fdfda
[matches/honours.git] / course / semester2 / pprog / assignment1 / openmp / nbody.h
1 #ifndef _NBODY_OPENMP_H
2 #define _NBODY_OPENMP_H
3
4 /**
5  * @file nbody.h
6  * @purpose OpenMP version of N-Body simulator, declarations
7  * @author Sam Moore (20503628) - 2012
8  */
9
10 #include "../single-thread/nbody.h" //Include original code
11 #include <omp.h>
12
13
14 #undef SINGLE_THREADED
15 #define OMP_THREADED
16
17 // Replace default macros with thread-safe functions
18 #undef Simulation_Run
19 void Simulation_Run(int argc, char ** argv);
20 //#undef QuitProgram
21 //void QuitProgram(bool error); 
22
23 #undef BeforeDraw
24 void BeforeDraw();
25 #undef AfterDraw
26 void AfterDraw();
27
28 void Compute(); //Compute a single step
29
30 #endif //_NBODY_OPENMP_H
31
32 //EOF

UCC git Repository :: git.ucc.asn.au