diff options
author | 2019-12-11 17:47:47 -0800 | |
---|---|---|
committer | 2019-12-11 17:47:47 -0800 | |
commit | 579f8578759c2927615cf6f972d0e604403e5e32 (patch) | |
tree | acd41600e5e19c719d5e2d53fcbdbf15900b066d /Source/Particles/PhysicalParticleContainer.cpp | |
parent | 84892de1590e0d856cbe19b9e269db8cae8ac9a2 (diff) | |
parent | 32dd2b40d2634e0dc4022674143c79f217143148 (diff) | |
download | WarpX-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.cpp | 4 |
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); } } |