From 7a5d1be66333024651edd5cd228cdce4cf5a3df2 Mon Sep 17 00:00:00 2001 From: Andrew Myers Date: Mon, 29 Jan 2018 13:21:17 -0800 Subject: use local form of redistribute that doesn't do MPI All-to-All when we can. --- Source/ParticleContainer.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Source/ParticleContainer.cpp') diff --git a/Source/ParticleContainer.cpp b/Source/ParticleContainer.cpp index 55889cf8d..168b9167c 100644 --- a/Source/ParticleContainer.cpp +++ b/Source/ParticleContainer.cpp @@ -186,6 +186,14 @@ MultiParticleContainer::Redistribute () } } +void +MultiParticleContainer::RedistributeLocal () +{ + for (auto& pc : allcontainers) { + pc->Redistribute(0, 0, 0, true); + } +} + Vector MultiParticleContainer::NumberOfParticlesInGrid(int lev) const { -- cgit v1.2.3