Compile error when _OPENMP not defined.

Issue #1892 closed
anonymous created an issue

There is a compile error when _OPENMP is not defined. The following fixes it:

diff --git a/CarpetLib/src/dist.hh b/CarpetLib/src/dist.hh
index acc646d..a5ba5be 100644
--- a/CarpetLib/src/dist.hh
+++ b/CarpetLib/src/dist.hh
@@ -18,6 +18,7 @@
 #else
 static inline int omp_get_max_threads() { return 1; }
 static inline int omp_get_thread_num() { return 0; }
+static inline int omp_get_num_threads() { return 1; }
 #endif

 #include "defs.hh"

Keyword:

Comments (4)

  1. Log in to comment