... | ... |
@@ -221,7 +221,6 @@ void GapsRunner::displayStatus(const std::string &type, unsigned nIterTotal) |
221 | 221 |
Rprintf("%s %d of %d, Atoms:%lu(%lu) Chi2 = %.2f\n\n", type.c_str(), |
222 | 222 |
mCurrentIter + 1, nIterTotal, mASampler.nAtoms(), |
223 | 223 |
mPSampler.nAtoms(), mASampler.chi2()); |
224 |
- |
|
225 | 224 |
} |
226 | 225 |
} |
227 | 226 |
|
... | ... |
@@ -20,7 +20,14 @@ |
20 | 20 |
#include <boost/math/distributions/gamma.hpp> |
21 | 21 |
|
22 | 22 |
#include <stdint.h> |
23 |
-#include <omp.h> |
|
23 |
+ |
|
24 |
+#ifdef __GAPS_OPENMP__ |
|
25 |
+ #include <omp.h> |
|
26 |
+#else |
|
27 |
+ typedef int omp_int_t; |
|
28 |
+ inline omp_int_t omp_get_thread_num() { return 0; } |
|
29 |
+ inline omp_int_t omp_get_max_threads() { return 1; } |
|
30 |
+#endif |
|
24 | 31 |
|
25 | 32 |
#define Q_GAMMA_THRESHOLD 0.000001f |
26 | 33 |
#define Q_GAMMA_MIN_VALUE 0.0 |