Skip to content

Commit

Permalink
add missing OpenMP to SDC burn loop
Browse files Browse the repository at this point in the history
this mirrors what is done for Strang
  • Loading branch information
zingale committed Mar 9, 2024
1 parent 465a83f commit 9c5dbce
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 9c5dbce

Please sign in to comment.