aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/WarpXParticleContainer.cpp
diff options
context:
space:
mode:
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.
}
}