diff options
author | 2019-11-11 13:24:32 -0800 | |
---|---|---|
committer | 2019-11-11 13:24:32 -0800 | |
commit | 66f370706bc3133f267406b1a7d3f2f046051ea2 (patch) | |
tree | 28e15fafd560bf0f678a882c8c35184ddea57d61 /Source/Particles/MultiParticleContainer.cpp | |
parent | 73df3761e92029302a1044ef9ed6651a267e2dab (diff) | |
download | WarpX-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.cpp | 12 |
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); } } |