diff options
author | 2021-12-20 13:24:00 -0500 | |
---|---|---|
committer | 2021-12-20 18:24:00 +0000 | |
commit | 4ea610856a235e64bb4c30e2a0d6a64f704a7bc0 (patch) | |
tree | 7c0984f6c05a634c3266b7ba4e5666275b536b9f /Source/Particles/WarpXParticleContainer.cpp | |
parent | b14130431bc17e2eee5e8d4677688793f240e74b (diff) | |
download | WarpX-4ea610856a235e64bb4c30e2a0d6a64f704a7bc0.tar.gz WarpX-4ea610856a235e64bb4c30e2a0d6a64f704a7bc0.tar.zst WarpX-4ea610856a235e64bb4c30e2a0d6a64f704a7bc0.zip |
AMREX_ALWAYS_ASSERT -> AMREX_ASSERT for deposition bounds checks (#2688)
* AMREX_ALWAYS_ASSERT -> AMREX_ASSERT for deposition bounds checks
* fix unused
* Apply suggestions from code review
* Apply suggestions from code review
* Simpler ignore + comment
Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
Diffstat (limited to 'Source/Particles/WarpXParticleContainer.cpp')
-rw-r--r-- | Source/Particles/WarpXParticleContainer.cpp | 4 |
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"); |