diff --git a/palace/fem/libceed/operator.cpp b/palace/fem/libceed/operator.cpp index 0201199a2..da0fe2a70 100644 --- a/palace/fem/libceed/operator.cpp +++ b/palace/fem/libceed/operator.cpp @@ -436,7 +436,7 @@ std::unique_ptr CeedOperatorFullAssemble(const Operator & } // Add CSR matrix objects from each thread (HYPRE's hypre_CSRMatrixAdd uses threads - // internally as available). We have to scale the duplcated nonzeros when set = true. + // internally as available). We have to scale the duplicated nonzeros when set = true. auto mat = std::move(loc_mat[0]); std::unique_ptr b_mat; if (set && op.Size() > 1) 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;