aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/WarpXParticleContainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Particles/WarpXParticleContainer.cpp')
-rw-r--r--Source/Particles/WarpXParticleContainer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Particles/WarpXParticleContainer.cpp b/Source/Particles/WarpXParticleContainer.cpp
index fe918dfba..600814175 100644
--- a/Source/Particles/WarpXParticleContainer.cpp
+++ b/Source/Particles/WarpXParticleContainer.cpp
@@ -352,8 +352,8 @@ WarpXParticleContainer::DepositCurrent (WarpXParIter& pti,
// Jx, Jy and Jz have the same number of guard cells, hence it is sufficient to check for Jx
const amrex::IntVect range = jx->nGrowVect() - shape_extent;
#endif
-
- AMREX_ALWAYS_ASSERT_WITH_MESSAGE(
+ amrex::ignore_unused(range); // for release builds
+ AMREX_ASSERT_WITH_MESSAGE(
amrex::numParticlesOutOfRange(pti, range) == 0,
"Particles shape does not fit within tile (CPU) or guard cells (GPU) used for current deposition");