aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhysicalParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2019-09-23 13:10:31 -0700
committerGravatar MaxThevenet <mthevenet@lbl.gov> 2019-09-23 13:10:31 -0700
commit5f3db4cd214b27297e3ea69c8582e64bf190d3e6 (patch)
treeec20842439ce2d958c80249bb2f8326dc9ed90f2 /Source/Particles/PhysicalParticleContainer.cpp
parent7acdcf342f21d89ed4616c05536ba05485629f45 (diff)
downloadWarpX-5f3db4cd214b27297e3ea69c8582e64bf190d3e6.tar.gz
WarpX-5f3db4cd214b27297e3ea69c8582e64bf190d3e6.tar.zst
WarpX-5f3db4cd214b27297e3ea69c8582e64bf190d3e6.zip
split particles only during second half-push when subcycling
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r--Source/Particles/PhysicalParticleContainer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp
index d5f133332..c878ad7b3 100644
--- a/Source/Particles/PhysicalParticleContainer.cpp
+++ b/Source/Particles/PhysicalParticleContainer.cpp
@@ -1364,7 +1364,9 @@ PhysicalParticleContainer::Evolve (int lev,
}
}
// Split particles
- if (do_splitting){ SplitParticles(lev); }
+ if (do_splitting && a_dt_type == DtType::SecondHalf){
+ SplitParticles(lev);
+ }
}
// Loop over all particles in the particle container and