From 30f1ec11f1f2f1f4bd57145fa3bb0ab7d11b59bd Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Mon, 9 Sep 2019 15:11:07 -0700 Subject: Particles: gather_from_main_grid Support gather for individual particle species from the main grid. Very much based on the similar option for deposition :) --- Source/Particles/PhysicalParticleContainer.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Source/Particles/PhysicalParticleContainer.cpp') diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp index 2dc25e6fa..c99c5278c 100644 --- a/Source/Particles/PhysicalParticleContainer.cpp +++ b/Source/Particles/PhysicalParticleContainer.cpp @@ -1142,9 +1142,13 @@ PhysicalParticleContainer::Evolve (int lev, } } + // only deposit / gather to coarsest grid if (deposit_on_main_grid && lev > 0) { nfine_current = 0; } + if (m_gather_from_main_grid && lev > 0) { + nfine_gather = 0; + } if (nfine_current != np || nfine_gather != np) { -- cgit v1.2.3