aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/MultiParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2019-11-11 13:24:32 -0800
committerGravatar MaxThevenet <mthevenet@lbl.gov> 2019-11-11 13:24:32 -0800
commit66f370706bc3133f267406b1a7d3f2f046051ea2 (patch)
tree28e15fafd560bf0f678a882c8c35184ddea57d61 /Source/Particles/MultiParticleContainer.cpp
parent73df3761e92029302a1044ef9ed6651a267e2dab (diff)
downloadWarpX-66f370706bc3133f267406b1a7d3f2f046051ea2.tar.gz
WarpX-66f370706bc3133f267406b1a7d3f2f046051ea2.tar.zst
WarpX-66f370706bc3133f267406b1a7d3f2f046051ea2.zip
Call RedistributeGPU on GPU, since @amtyers fixed the issue with runtime components
Diffstat (limited to 'Source/Particles/MultiParticleContainer.cpp')
-rw-r--r--Source/Particles/MultiParticleContainer.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/Source/Particles/MultiParticleContainer.cpp b/Source/Particles/MultiParticleContainer.cpp
index fca22daa2..55768c6fc 100644
--- a/Source/Particles/MultiParticleContainer.cpp
+++ b/Source/Particles/MultiParticleContainer.cpp
@@ -321,11 +321,7 @@ void
MultiParticleContainer::Redistribute ()
{
for (auto& pc : allcontainers) {
- if ( (pc->NumRuntimeRealComps()>0) || (pc->NumRuntimeIntComps()>0) ) {
- pc->RedistributeCPU();
- } else {
- pc->Redistribute();
- }
+ pc->Redistribute();
}
}
@@ -333,11 +329,7 @@ void
MultiParticleContainer::RedistributeLocal (const int num_ghost)
{
for (auto& pc : allcontainers) {
- if ( (pc->NumRuntimeRealComps()>0) || (pc->NumRuntimeIntComps()>0) ) {
- pc->RedistributeCPU(0, 0, 0, num_ghost);
- } else {
- pc->Redistribute(0, 0, 0, num_ghost);
- }
+ pc->Redistribute(0, 0, 0, num_ghost);
}
}