aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhysicalParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2019-09-10 14:06:41 -0600
committerGravatar GitHub <noreply@github.com> 2019-09-10 14:06:41 -0600
commit47b04802720c085710ca0c87e29f04363bb4e920 (patch)
tree169700ee031f681e619d329333b0b8c2fa86405f /Source/Particles/PhysicalParticleContainer.cpp
parent5979ed85e2e671b0b15c267a755aec56390807c8 (diff)
parent30f1ec11f1f2f1f4bd57145fa3bb0ab7d11b59bd (diff)
downloadWarpX-47b04802720c085710ca0c87e29f04363bb4e920.tar.gz
WarpX-47b04802720c085710ca0c87e29f04363bb4e920.tar.zst
WarpX-47b04802720c085710ca0c87e29f04363bb4e920.zip
Merge pull request #328 from ax3l/topic-perParticleGatherFromMainGrid
Particles: gather_from_main_grid
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r--Source/Particles/PhysicalParticleContainer.cpp4
1 files changed, 4 insertions, 0 deletions
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)
{