From 21e2979cc03f5d4ff68cbdb5a5bf078e241927f6 Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Sun, 7 Apr 2024 18:56:33 -0400 Subject: [PATCH] add missing OpenMP to SDC burn loop (#2770) 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 3e6ff3949b..d3ff040048 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);