aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/MultiParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Maxence Thevenet <mthevenet@lbl.gov> 2019-10-21 13:55:18 -0400
committerGravatar Maxence Thevenet <mthevenet@lbl.gov> 2019-10-21 13:55:18 -0400
commit40a05a827bc553e99157ac5cab3fb343ea832004 (patch)
treeb6d668e62a38028b30c604ac3c7e8e028e500401 /Source/Particles/MultiParticleContainer.cpp
parentafd397c38c8e79dbb5939a67438af5a519866f11 (diff)
downloadWarpX-40a05a827bc553e99157ac5cab3fb343ea832004.tar.gz
WarpX-40a05a827bc553e99157ac5cab3fb343ea832004.tar.zst
WarpX-40a05a827bc553e99157ac5cab3fb343ea832004.zip
use RedistributeCPU to avoid issue with runtime components on GPU
Diffstat (limited to '')
-rw-r--r--Source/Particles/MultiParticleContainer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Particles/MultiParticleContainer.cpp b/Source/Particles/MultiParticleContainer.cpp
index 5d898c11a..7d4081def 100644
--- a/Source/Particles/MultiParticleContainer.cpp
+++ b/Source/Particles/MultiParticleContainer.cpp
@@ -310,7 +310,7 @@ void
MultiParticleContainer::Redistribute ()
{
for (auto& pc : allcontainers) {
- pc->Redistribute();
+ pc->RedistributeCPU();
}
}
@@ -318,7 +318,7 @@ void
MultiParticleContainer::RedistributeLocal (const int num_ghost)
{
for (auto& pc : allcontainers) {
- pc->Redistribute(0, 0, 0, num_ghost);
+ pc->RedistributeCPU(0, 0, 0, num_ghost);
}
}