From 9c5dbce04d17ea5be56b2d0a3e66aedf11449ff5 Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Sat, 9 Mar 2024 15:53:08 -0500 Subject: [PATCH] add missing OpenMP to SDC burn loop this mirrors what is done for Strang --- Source/reactions/Castro_react.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/reactions/Castro_react.cpp b/Source/reactions/Castro_react.cpp index 73c5a3c873..f4f4421206 100644 --- a/Source/reactions/Castro_react.cpp +++ b/Source/reactions/Castro_react.cpp @@ -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);