From: Daniel Arndt Date: Thu, 29 Dec 2022 16:21:20 +0000 (+0100) Subject: Use subview X-Git-Tag: v9.5.0-rc1~697^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cacd8d342e5f08b4d84e3f8934d77ebca92d0372;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 af814ed6a0..5cbb948f34 100644 --- a/include/deal.II/lac/la_parallel_vector.templates.h +++ b/include/deal.II/lac/la_parallel_vector.templates.h @@ -438,9 +438,10 @@ namespace LinearAlgebra }); host_exec.fence(); Kokkos::realloc(indices_dev, tmp_n_elements); - Kokkos::deep_copy( - indices_dev, - Kokkos::subview(indices, Kokkos::make_pair(0, tmp_n_elements))); + Kokkos::deep_copy(indices_dev, + Kokkos::subview(indices, + Kokkos::make_pair(size_type(0), + tmp_n_elements))); if (operation == VectorOperation::add) Kokkos::parallel_for(