diff options
author | 2019-09-09 15:11:07 -0700 | |
---|---|---|
committer | 2019-09-09 15:11:07 -0700 | |
commit | 30f1ec11f1f2f1f4bd57145fa3bb0ab7d11b59bd (patch) | |
tree | 169700ee031f681e619d329333b0b8c2fa86405f /Source/Particles/PhysicalParticleContainer.cpp | |
parent | 5979ed85e2e671b0b15c267a755aec56390807c8 (diff) | |
download | WarpX-30f1ec11f1f2f1f4bd57145fa3bb0ab7d11b59bd.tar.gz WarpX-30f1ec11f1f2f1f4bd57145fa3bb0ab7d11b59bd.tar.zst WarpX-30f1ec11f1f2f1f4bd57145fa3bb0ab7d11b59bd.zip |
Particles: gather_from_main_grid
Support gather for individual particle species from the main grid.
Very much based on the similar option for deposition :)
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r-- | Source/Particles/PhysicalParticleContainer.cpp | 4 |
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) { |