branch: c14_complience commit ab44c49447303222a92bcfbfd4df677b78bbb141 Author: Andriy.Andreykiv <a...@plaxis.com> 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]; }