From: Daniel Arndt Date: Thu, 29 Dec 2022 16:09:00 +0000 (+0100) Subject: Use subview X-Git-Tag: v9.5.0-rc1~697^2~3 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4cf830d4e8885a326ad14e469fada785ea4f6c3;p=dealii.git Use subview --- 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(