aboutsummaryrefslogtreecommitdiff
path: root/Source/Utils/WarpXTagging.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Utils/WarpXTagging.cpp')
-rw-r--r--Source/Utils/WarpXTagging.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/Utils/WarpXTagging.cpp b/Source/Utils/WarpXTagging.cpp
index 4a8b25439..739ed0d53 100644
--- a/Source/Utils/WarpXTagging.cpp
+++ b/Source/Utils/WarpXTagging.cpp
@@ -19,8 +19,8 @@ WarpX::ErrorEst (int lev, TagBoxArray& tags, Real /*time*/, int /*ngrow*/)
const Real* problo = Geom(lev).ProbLo();
const Real* dx = Geom(lev).CellSize();
-#ifdef _OPENMP
-#pragma omp parallel
+#ifdef AMREX_USE_OMP
+#pragma omp parallel if (amrex::Gpu::notInLaunchRegion())
#endif
for (MFIter mfi(tags); mfi.isValid(); ++mfi)
{
@@ -38,4 +38,3 @@ WarpX::ErrorEst (int lev, TagBoxArray& tags, Real /*time*/, int /*ngrow*/)
}
}
}
-