aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhysicalParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Axel Huebl <axel.huebl@plasma.ninja> 2021-03-02 21:44:13 -0800
committerGravatar GitHub <noreply@github.com> 2021-03-02 21:44:13 -0800
commitb15ee7b890b51d4ec15e36d8e41465b49dcfa058 (patch)
tree07c253a32cffb5d3d39067782dd98a563025e0dc /Source/Particles/PhysicalParticleContainer.cpp
parent3f03644f7c880572be92aeee493175b9a77fb619 (diff)
downloadWarpX-b15ee7b890b51d4ec15e36d8e41465b49dcfa058.tar.gz
WarpX-b15ee7b890b51d4ec15e36d8e41465b49dcfa058.tar.zst
WarpX-b15ee7b890b51d4ec15e36d8e41465b49dcfa058.zip
ParticleContainer: Fix Unused Vars (#1756)
Fix unused variable warnings in `PhyicalParticleContainer`.
Diffstat (limited to '')
-rw-r--r--Source/Particles/PhysicalParticleContainer.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp
index 86da8645f..cc9991f97 100644
--- a/Source/Particles/PhysicalParticleContainer.cpp
+++ b/Source/Particles/PhysicalParticleContainer.cpp
@@ -1563,20 +1563,9 @@ PhysicalParticleContainer::GetParticleSlice (
AMREX_ALWAYS_ASSERT(do_back_transformed_diagnostics == 1);
const int nlevs = std::max(0, finestLevel()+1);
-
- // we figure out a box for coarse-grained rejection. If the RealBox corresponding to a
- // given tile doesn't intersect with this, there is no need to check any particles.
- const Real* base_dx = Geom(0).CellSize();
- const Real z_min = z_new - base_dx[direction];
- const Real z_max = z_old + base_dx[direction];
-
diagnostic_particles.resize(finestLevel()+1);
for (int lev = 0; lev < nlevs; ++lev) {
-
- const Real* dx = Geom(lev).CellSize();
- const Real* plo = Geom(lev).ProbLo();
-
// first we touch each map entry in serial
for (WarpXParIter pti(*this, lev); pti.isValid(); ++pti)
{
@@ -1598,7 +1587,6 @@ PhysicalParticleContainer::GetParticleSlice (
amrex::Gpu::DeviceVector<int> IndexForPartCopy;
for (WarpXParIter pti(*this, lev); pti.isValid(); ++pti)
{
- const Box& box = pti.validbox();
auto index = std::make_pair(pti.index(), pti.LocalTileIndex());
const auto GetPosition = GetParticlePosition(pti);