From d4cf830d4e8885a326ad14e469fada785ea4f6c3 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Thu, 29 Dec 2022 17:09:00 +0100 Subject: [PATCH] Use subview --- include/deal.II/lac/la_parallel_vector.templates.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/deal.II/lac/la_parallel_vector.templates.h b/include/deal.II/lac/la_parallel_vector.templates.h index 331402a4e6..da25f9a5b6 100644 --- a/include/deal.II/lac/la_parallel_vector.templates.h +++ b/include/deal.II/lac/la_parallel_vector.templates.h @@ -438,9 +438,9 @@ namespace LinearAlgebra }); host_exec.fence(); Kokkos::realloc(indices_dev, tmp_n_elements); - Kokkos::deep_copy(indices_dev, - Kokkos::View(indices.data(), - tmp_n_elements)); + Kokkos::deep_copy( + indices_dev, + Kokkos::subview(indices, Kokkos::make_pair(0, tmp_n_elements))); if (operation == VectorOperation::add) Kokkos::parallel_for( -- 2.39.5