Skip to content

Commit

Permalink
add missing OpenMP to SDC burn loop (#2770)
Browse files Browse the repository at this point in the history
this mirrors what is done for Strang
  • Loading branch information
zingale authored Apr 7, 2024
1 parent e55e04d commit 21e2979
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/reactions/Castro_react.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,9 @@ Castro::react_state(Real time, Real dt)
#endif
int num_failed = 0;

// why no omp here?
#ifdef _OPENMP
#pragma omp parallel reduction(+:num_failed)
#endif
for (MFIter mfi(S_new, TilingIfNotGPU()); mfi.isValid(); ++mfi)
{
const Box& bx = mfi.growntilebox(ng);
Expand Down

0 comments on commit 21e2979

Please sign in to comment.