aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhysicalParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Andrew Myers <atmyers2@gmail.com> 2020-01-27 13:48:11 -0800
committerGravatar Andrew Myers <atmyers2@gmail.com> 2020-01-27 13:48:11 -0800
commit8bfc339a5f57fd6ca1f84d53d445d70ebf4eb650 (patch)
treee4711b7e640a66d2cc9690bb420a75e27e6d7009 /Source/Particles/PhysicalParticleContainer.cpp
parentcb93a9c54bd616ca01d189a0eaa910ac82a5c899 (diff)
parent6a06d68c805e81e7f942716c07873d07f9b668e7 (diff)
downloadWarpX-8bfc339a5f57fd6ca1f84d53d445d70ebf4eb650.tar.gz
WarpX-8bfc339a5f57fd6ca1f84d53d445d70ebf4eb650.tar.zst
WarpX-8bfc339a5f57fd6ca1f84d53d445d70ebf4eb650.zip
Merge branch 'dev' into soa_to_aos
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r--Source/Particles/PhysicalParticleContainer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp
index 1430df6a0..aca9ab3d4 100644
--- a/Source/Particles/PhysicalParticleContainer.cpp
+++ b/Source/Particles/PhysicalParticleContainer.cpp
@@ -1102,6 +1102,9 @@ PhysicalParticleContainer::FieldGather (int lev,
costarr(i,j,k) += wt;
});
}
+ // synchronize avoids cudaStreams from over-writing the temporary arrays used to
+ // store positions
+ Gpu::synchronize();
}
}
}