From 940188eb80541cf84bd116a5a7e27d6486affe8e Mon Sep 17 00:00:00 2001 From: PabloPalaciosAlonso Date: Wed, 13 Sep 2023 10:21:00 +0200 Subject: [PATCH] Remove copy of gridVels to a std::vector in FCM --- src/Integrator/BDHI/FCM/FCM_impl.cuh | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Integrator/BDHI/FCM/FCM_impl.cuh b/src/Integrator/BDHI/FCM/FCM_impl.cuh index 781720d2..989b0ba3 100644 --- a/src/Integrator/BDHI/FCM/FCM_impl.cuh +++ b/src/Integrator/BDHI/FCM/FCM_impl.cuh @@ -239,8 +239,6 @@ namespace uammd{ auto d_gridVels = (real3*)thrust::raw_pointer_cast(gridVels.data()); IBM ibm(kernel, grid, IBM_ns::LinearIndex3D(nx, n.y, n.z)); ibm.spread(pos, force_r3, d_gridVels, numberParticles, st); - std::vector hvels(gridVels.size()); - thrust::copy(gridVels.begin(), gridVels.end(), hvels.begin()); CudaCheckError(); return gridVels; }