diff --git a/palace/fem/libceed/restriction.cpp b/palace/fem/libceed/restriction.cpp index 486184169..9c053bb50 100644 --- a/palace/fem/libceed/restriction.cpp +++ b/palace/fem/libceed/restriction.cpp @@ -32,8 +32,7 @@ void InitLexicoRestr(const mfem::FiniteElementSpace &fespace, mfem::Array tp_el_orients(num_elem * P); int use_el_orients = 0; - const int in_parallel = utils::InParallel(); - PalacePragmaOmp(parallel reduction(+ : use_el_orients) if (in_parallel == 0)) + PalacePragmaOmp(parallel reduction(+ : use_el_orients)) { mfem::Array dofs; mfem::DofTransformation dof_trans; @@ -123,8 +122,7 @@ void InitNativeRestr(const mfem::FiniteElementSpace &fespace, } int use_el_orients = 0; - const int in_parallel = utils::InParallel(); - PalacePragmaOmp(parallel reduction(+ : use_el_orients) if (in_parallel == 0)) + PalacePragmaOmp(parallel reduction(+ : use_el_orients)) { mfem::Array dofs; mfem::DofTransformation dof_trans;