]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix extract_subvector_to for Tpetra 15584/head
authorDaniel Arndt <arndtd@ornl.gov>
Sun, 2 Jul 2023 13:52:14 +0000 (09:52 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Sun, 2 Jul 2023 13:53:36 +0000 (09:53 -0400)
include/deal.II/lac/trilinos_tpetra_vector.templates.h

index 9c643a1603573904fbbf2fc47d69fd059d736243..e1f1dc06b5ef011f8b86e33510ca77c0b048111b 100644 (file)
@@ -126,7 +126,7 @@ namespace LinearAlgebra
     {
       AssertDimension(indices.size(), elements.size());
       const auto &vector = trilinos_vector();
-      const auto &map    = vector.Map();
+      const auto &map    = vector.getMap();
 
 #  if DEAL_II_TRILINOS_VERSION_GTE(13, 2, 0)
       auto vector_2d = vector.template getLocalView<Kokkos::HostSpace>(
@@ -140,7 +140,7 @@ namespace LinearAlgebra
       for (unsigned int i = 0; i < indices.size(); ++i)
         {
           AssertIndexRange(indices[i], size());
-          const trilinos_i = map->getLocalElement(
+          const auto trilinos_i = map->getLocalElement(
             static_cast<TrilinosWrappers::types::int_type>(indices[i]));
           elements[i] = vector_1d(trilinos_i);
         }

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.