X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=course%2Fsemester2%2Fpprog%2Fassignment1%2Fopenmp%2Fnbody.h;fp=course%2Fsemester2%2Fpprog%2Fassignment1%2Fopenmp%2Fnbody.h;h=b7d0b417dff2b92729eba7c3bb1da65ea5210ca2;hb=f012817dee17e24eee2e8951d138dab40b808ad3;hp=0000000000000000000000000000000000000000;hpb=a6366978284ba7c3762518e684e16561797053a5;p=matches%2Fhonours.git diff --git a/course/semester2/pprog/assignment1/openmp/nbody.h b/course/semester2/pprog/assignment1/openmp/nbody.h new file mode 100644 index 00000000..b7d0b417 --- /dev/null +++ b/course/semester2/pprog/assignment1/openmp/nbody.h @@ -0,0 +1,27 @@ +#ifndef _NBODY_OPENMP_H +#define _NBODY_OPENMP_H + +/** + * @file nbody.h + * @purpose OpenMP version of N-Body simulator, declarations + * @author Sam Moore (20503628) - 2012 + */ + +#include "../single-thread/nbody.h" //Include original code +#include + + +#undef SINGLE_THREADED +#define OMP_THREADED + +// Replace default macros with thread-safe functions +#undef Simulation_Run +void Simulation_Run(int argc, char ** argv); +//#undef QuitProgram +//void QuitProgram(bool error); + +void Compute(); //Compute a single step + +#endif //_NBODY_OPENMP_H + +//EOF