]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use subview
authorDaniel Arndt <arndtd@ornl.gov>
Thu, 29 Dec 2022 16:21:20 +0000 (17:21 +0100)
committerDaniel Arndt <arndtd@ornl.gov>
Thu, 29 Dec 2022 16:21:20 +0000 (17:21 +0100)
include/deal.II/lac/la_parallel_vector.templates.h

index af814ed6a00e6bc6672aecba5f60b372e6a66612..5cbb948f346e07e4f06c634824f2cd0e0f61bece 100644 (file)
@@ -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(

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.