Parallel Programming - Finished pthreads
[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
18 #define CRAPPY_VERSION
19
20 // Replace default macros with thread-safe functions
21 #undef Simulation_Run
22 void Simulation_Run(int argc, char ** argv);
23 //#undef QuitProgram
24 //void QuitProgram(bool error); 
25
26 #undef BeforeDraw
27 void BeforeDraw();
28 #undef AfterDraw
29 void AfterDraw();
30
31 void Compute(); //Compute a single step
32
33 #endif //_NBODY_OPENMP_H
34
35 //EOF

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