aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhysicalParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Axel Huebl <axel.huebl@plasma.ninja> 2019-12-11 17:47:47 -0800
committerGravatar GitHub <noreply@github.com> 2019-12-11 17:47:47 -0800
commit579f8578759c2927615cf6f972d0e604403e5e32 (patch)
treeacd41600e5e19c719d5e2d53fcbdbf15900b066d /Source/Particles/PhysicalParticleContainer.cpp
parent84892de1590e0d856cbe19b9e269db8cae8ac9a2 (diff)
parent32dd2b40d2634e0dc4022674143c79f217143148 (diff)
downloadWarpX-579f8578759c2927615cf6f972d0e604403e5e32.tar.gz
WarpX-579f8578759c2927615cf6f972d0e604403e5e32.tar.zst
WarpX-579f8578759c2927615cf6f972d0e604403e5e32.zip
Merge pull request #565 from lucafedeli88/cleaning_lgtm
[mini-PR] Address C++ issues found by LGTM
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r--Source/Particles/PhysicalParticleContainer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp
index 95e8ce4fe..c77ddf83b 100644
--- a/Source/Particles/PhysicalParticleContainer.cpp
+++ b/Source/Particles/PhysicalParticleContainer.cpp
@@ -1078,11 +1078,11 @@ PhysicalParticleContainer::Evolve (int lev,
for (WarpXParIter pti(*this, lev); pti.isValid(); ++pti)
{
const auto np = pti.numParticles();
- const auto lev = pti.GetLevel();
+ const auto t_lev = pti.GetLevel();
const auto index = pti.GetPairIndex();
tmp_particle_data.resize(finestLevel()+1);
for (int i = 0; i < TmpIdx::nattribs; ++i)
- tmp_particle_data[lev][index][i].resize(np);
+ tmp_particle_data[t_lev][index][i].resize(np);
}
}