From b83cad1170c8039ee4a7bb4646b733c77bdd25ff Mon Sep 17 00:00:00 2001 From: John Tramm Date: Tue, 21 Apr 2020 21:08:02 +0000 Subject: [PATCH] fixed _OPEMP define typo to correctly read as _OPENMP --- include/openmc/openmp_interface.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/openmc/openmp_interface.h b/include/openmc/openmp_interface.h index 076b19dc07..4032ab1d4c 100644 --- a/include/openmc/openmp_interface.h +++ b/include/openmc/openmp_interface.h @@ -18,14 +18,14 @@ class OpenMPMutex public: OpenMPMutex() { - #ifdef _OPEMP + #ifdef _OPENMP omp_init_lock(&mutex_); #endif } ~OpenMPMutex() { - #ifdef _OPEMP + #ifdef _OPENMP omp_destroy_lock(&mutex_); #endif } @@ -41,7 +41,7 @@ public: //! This function blocks execution until the lock succeeds. void lock() { - #ifdef _OPEMP + #ifdef _OPENMP omp_set_lock(&mutex_); #endif } @@ -52,7 +52,7 @@ public: //! the lock is unavailable. bool try_lock() noexcept { - #ifdef _OPEMP + #ifdef _OPENMP return omp_test_lock(&mutex_); #else return true; @@ -62,13 +62,13 @@ public: //! Unlock the mutex. void unlock() noexcept { - #ifdef _OPEMP + #ifdef _OPENMP omp_unset_lock(&mutex_); #endif } private: - #ifdef _OPEMP + #ifdef _OPENMP omp_lock_t mutex_; #endif };