#1892: Compile error when _OPENMP not defined. -----------------------+---------------------------------------------------- Reporter: anonymous | Owner: Type: defect | Status: new Priority: unset | Milestone: Component: Other | Version: development version Keywords: | -----------------------+---------------------------------------------------- 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" }}}