1 #ifndef _NBODY_BARNES_HUT_H
2 #define _NBODY_BARNES_HUT_H
6 * @purpose OpenMP version of N-Body simulator, declarations
7 * @author Sam Moore (20503628) - 2012
10 #include "../single-thread/nbody.h" //Include original code
14 #undef SINGLE_THREADED
17 // Define to simultaneously Brute force a copy of the universe, and display together
18 //#define DUAL_UNIVERSE
21 // Replace default macros with thread-safe functions
23 void Simulation_Run(int argc, char ** argv);
25 //#define QuitProgram(x) break
29 System alternate_universe;
32 #define BeforeDraw() (void)0 // Do nothing (apparently this is how to do nothing with a macro)
33 #endif //DUAL_UNIVERSE
36 #define AfterDraw() (void)0
40 void QuitProgram(bool error);
44 #endif //_NBODY_BARNES_HUT_H