aboutsummaryrefslogtreecommitdiff
path: root/Source/ParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Andrew Myers <atmyers2@gmail.com> 2018-10-31 15:41:49 -0700
committerGravatar Andrew Myers <atmyers2@gmail.com> 2018-10-31 15:41:49 -0700
commit0bc456a56a1c70925cee7a341f24d2ad9e1bc8fc (patch)
treeab22de40c1a5b7c3edb9a559b849bfa995f6bb55 /Source/ParticleContainer.cpp
parentcb3d6c521b95fe2c6d1e5d79ce56066c41b98e01 (diff)
downloadWarpX-0bc456a56a1c70925cee7a341f24d2ad9e1bc8fc.tar.gz
WarpX-0bc456a56a1c70925cee7a341f24d2ad9e1bc8fc.tar.zst
WarpX-0bc456a56a1c70925cee7a341f24d2ad9e1bc8fc.zip
make RedistributeLocal take the number of ghost cells as an argument.
Diffstat (limited to 'Source/ParticleContainer.cpp')
-rw-r--r--Source/ParticleContainer.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/ParticleContainer.cpp b/Source/ParticleContainer.cpp
index 39119e960..75c13d793 100644
--- a/Source/ParticleContainer.cpp
+++ b/Source/ParticleContainer.cpp
@@ -269,9 +269,8 @@ MultiParticleContainer::Redistribute ()
}
void
-MultiParticleContainer::RedistributeLocal ()
+MultiParticleContainer::RedistributeLocal (const int num_ghost)
{
- int num_ghost = WarpX::do_moving_window ? 2 : 1;
for (auto& pc : allcontainers) {
pc->Redistribute(0, 0, 0, num_ghost);
}