getfem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Getfem-commits] (no subject)


From: Andriy Andreykiv
Subject: [Getfem-commits] (no subject)
Date: Tue, 14 May 2019 05:26:42 -0400 (EDT)

branch: c14_complience
commit ab44c49447303222a92bcfbfd4df677b78bbb141
Author: Andriy.Andreykiv <address@hidden>
Date:   Mon May 13 15:50:15 2019 +0200

    replacing #pragma omp critical with a macro that hides omp in serial build
---
 src/getfem/getfem_interpolation.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/getfem/getfem_interpolation.h 
b/src/getfem/getfem_interpolation.h
index 51e2e2a..7987ace 100644
--- a/src/getfem/getfem_interpolation.h
+++ b/src/getfem/getfem_interpolation.h
@@ -713,7 +713,7 @@ namespace getfem {
             mf_source, mf_target, U, V_thrd, M, 0, extrapolation, EPS,
             rg_source, rg_target);
 
-          #pragma omp critical
+          GLOBAL_OMP_GUARD
             for (size_type i = 0; i < V_thrd.size(); ++i) {
               if (gmm::abs(V_thrd[i]) > EPS) V[i] = V_thrd[i];
             }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]