Skip to content

Commit 2dd5eae

Browse files
committed
added missing copys
1 parent 48e2a2e commit 2dd5eae

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/framework/domain/metadomain_lb.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,15 +281,22 @@ namespace ntt {
281281
new_sp.set_npart(old_sp.npart());
282282

283283
Kokkos::deep_copy(new_sp.i1, old_sp.i1);
284+
Kokkos::deep_copy(new_sp.i1_prev, old_sp.i1_prev);
284285
if(D>1) Kokkos::deep_copy(new_sp.i2, old_sp.i2);
286+
if(D>1) Kokkos::deep_copy(new_sp.i2_prev, old_sp.i2_prev);
285287
if(D>2) Kokkos::deep_copy(new_sp.i3, old_sp.i3);
288+
if(D>2) Kokkos::deep_copy(new_sp.i3_prev, old_sp.i3_prev);
286289
Kokkos::deep_copy(new_sp.dx1, old_sp.dx1);
290+
Kokkos::deep_copy(new_sp.dx1_prev, old_sp.dx1_prev);
287291
if(D>1)Kokkos::deep_copy(new_sp.dx2, old_sp.dx2);
292+
if(D>1)Kokkos::deep_copy(new_sp.dx2_prev, old_sp.dx2_prev);
288293
if(D>2)Kokkos::deep_copy(new_sp.dx3, old_sp.dx3);
294+
if(D>2)Kokkos::deep_copy(new_sp.dx3_prev, old_sp.dx3_prev);
289295
Kokkos::deep_copy(new_sp.ux1, old_sp.ux1);
290296
Kokkos::deep_copy(new_sp.ux2, old_sp.ux2);
291297
Kokkos::deep_copy(new_sp.ux3, old_sp.ux3);
292298
Kokkos::deep_copy(new_sp.weight, old_sp.weight);
299+
Kokkos::deep_copy(new_sp.tag, old_sp.tag);
293300

294301
// Reset all copied particle tags to 'alive': particles with
295302
// send-direction tags from the previous pusher step must not be

0 commit comments

Comments
 (0)