aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/WarpXParticleContainer.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/WarpXParticleContainer.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/WarpXParticleContainer.cpp')
-rw-r--r--Source/Particles/WarpXParticleContainer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Particles/WarpXParticleContainer.cpp b/Source/Particles/WarpXParticleContainer.cpp
index 9f02da338..8926301b2 100644
--- a/Source/Particles/WarpXParticleContainer.cpp
+++ b/Source/Particles/WarpXParticleContainer.cpp
@@ -846,8 +846,9 @@ WarpXParticleContainer::particlePostLocate(ParticleType& p,
{
p.m_idata.id = DoSplitParticleID;
}
- // For the moment, do not do anything if particles goes
- // to lower level.
+
if (pld.m_lev == lev-1){
+ // For the moment, do not do anything if particles goes
+ // to lower level.
}
}