From 0bc456a56a1c70925cee7a341f24d2ad9e1bc8fc Mon Sep 17 00:00:00 2001 From: Andrew Myers Date: Wed, 31 Oct 2018 15:41:49 -0700 Subject: make RedistributeLocal take the number of ghost cells as an argument. --- Source/ParticleContainer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Source/ParticleContainer.cpp') 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); } -- cgit v1.2.3