Parallel Programming - Start OpenMP Version
[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 void Compute(); //Compute a single step
24
25 #endif //_NBODY_OPENMP_H
26
27 //EOF

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