aboutsummaryrefslogtreecommitdiff
path: root/Source/PhysicalParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Andrew Myers <atmyers2@gmail.com> 2018-12-17 11:42:15 -0800
committerGravatar Andrew Myers <atmyers2@gmail.com> 2018-12-17 11:42:15 -0800
commit6d68373fb9a4cf17c5a80ae5b4330118f210c619 (patch)
treef12abafec58888392aeedc01ca6ba78c68da3328 /Source/PhysicalParticleContainer.cpp
parente571fd61ead3e14f21c300bb8a69fc72dabc9a9d (diff)
downloadWarpX-6d68373fb9a4cf17c5a80ae5b4330118f210c619.tar.gz
WarpX-6d68373fb9a4cf17c5a80ae5b4330118f210c619.tar.zst
WarpX-6d68373fb9a4cf17c5a80ae5b4330118f210c619.zip
thrust::copy -> Cuda::thrust_copy
Diffstat (limited to 'Source/PhysicalParticleContainer.cpp')
-rw-r--r--Source/PhysicalParticleContainer.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/PhysicalParticleContainer.cpp b/Source/PhysicalParticleContainer.cpp
index c4fdd4464..a21285a17 100644
--- a/Source/PhysicalParticleContainer.cpp
+++ b/Source/PhysicalParticleContainer.cpp
@@ -666,14 +666,14 @@ PhysicalParticleContainer::AddPlasmaGPU (int lev, RealBox part_realbox)
auto new_size = old_size + host_particles.size();
particle_tile.resize(new_size);
- thrust::copy(host_particles.begin(),
- host_particles.end(),
- particle_tile.GetArrayOfStructs().begin() + old_size);
+ Cuda::thrust_copy(host_particles.begin(),
+ host_particles.end(),
+ particle_tile.GetArrayOfStructs().begin() + old_size);
for (int kk = 0; kk < PIdx::nattribs; ++kk) {
- thrust::copy(host_attribs[kk].begin(),
- host_attribs[kk].end(),
- particle_tile.GetStructOfArrays().GetRealData(kk).begin() + old_size);
+ Cuda::thrust_copy(host_attribs[kk].begin(),
+ host_attribs[kk].end(),
+ particle_tile.GetStructOfArrays().GetRealData(kk).begin() + old_size);
}
if (cost) {