aboutsummaryrefslogtreecommitdiff
path: root/Carpet
diff options
context:
space:
mode:
authorRoland Haas <roland.haas@physics.gatech.edu>2013-10-24 00:54:15 -0700
committerRoland Haas <roland.haas@physics.gatech.edu>2013-10-24 01:12:23 -0700
commitae71ad5e952a892c7b4a326daa078bccf6e4393b (patch)
treecebc951700e2e39ab543a15ece09c639b183b70d /Carpet
parent63c7615a27857f00a602b6ab5ccff2cc512bf503 (diff)
LoopControl: provide omp_get_max_threads fallback
Diffstat (limited to 'Carpet')
-rw-r--r--Carpet/LoopControl/src/loopcontrol.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/Carpet/LoopControl/src/loopcontrol.cc b/Carpet/LoopControl/src/loopcontrol.cc
index b0ad29cce..ec1d0e019 100644
--- a/Carpet/LoopControl/src/loopcontrol.cc
+++ b/Carpet/LoopControl/src/loopcontrol.cc
@@ -24,6 +24,7 @@
#else
// Simple non-OpenMP implementations
+static inline int omp_get_max_threads() { return 1; }
static inline int omp_get_num_threads() { return 1; }
static inline int omp_get_thread_num() { return 0; }