Skip to content

Commit

Permalink
Remove unneeded parallel check (OpenMP disables nested parallelism by…
Browse files Browse the repository at this point in the history
… default)
  • Loading branch information
sebastiangrimberg committed Feb 17, 2024
1 parent 49c1f38 commit 31d92ef
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions palace/fem/libceed/restriction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ void InitLexicoRestr(const mfem::FiniteElementSpace &fespace,
mfem::Array<bool> 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<int> dofs;
mfem::DofTransformation dof_trans;
Expand Down Expand Up @@ -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<int> dofs;
mfem::DofTransformation dof_trans;
Expand Down

0 comments on commit 31d92ef

Please sign in to comment.