diff options
author | 2019-09-23 13:10:31 -0700 | |
---|---|---|
committer | 2019-09-23 13:10:31 -0700 | |
commit | 5f3db4cd214b27297e3ea69c8582e64bf190d3e6 (patch) | |
tree | ec20842439ce2d958c80249bb2f8326dc9ed90f2 /Source/Particles/PhysicalParticleContainer.cpp | |
parent | 7acdcf342f21d89ed4616c05536ba05485629f45 (diff) | |
download | WarpX-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.cpp | 4 |
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 |