#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" }}}
#1892: Compile error when _OPENMP not defined. ------------------------+--------------------------------------------------- Reporter: anonymous | Owner: Type: defect | Status: review Priority: unset | Milestone: Component: Other | Version: development version Resolution: | Keywords: ------------------------+--------------------------------------------------- Changes (by eschnett):
* status: new => review
#1892: Compile error when _OPENMP not defined. ------------------------+--------------------------------------------------- Reporter: anonymous | Owner: Type: defect | Status: reviewed_ok Priority: unset | Milestone: Component: Other | Version: development version Resolution: | Keywords: ------------------------+--------------------------------------------------- Changes (by eschnett):
* status: review => reviewed_ok
#1892: Compile error when _OPENMP not defined. ------------------------+--------------------------------------------------- Reporter: anonymous | Owner: Type: defect | Status: closed Priority: unset | Milestone: Component: Other | Version: development version Resolution: fixed | Keywords: ------------------------+--------------------------------------------------- Changes (by knarf):
* status: reviewed_ok => closed * resolution: => fixed
Comment:
Fixed in 23c443469a4c511e7cf50d264a7ef3cf051b6837
trac@lists.einsteintoolkit.org