From: Daniel Arndt Date: Sun, 2 Jul 2023 13:52:14 +0000 (-0400) Subject: Fix extract_subvector_to for Tpetra X-Git-Tag: relicensing~806^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56af6e0ba01313abf5685a0eb26b8d3a1fa5aa62;p=dealii.git Fix extract_subvector_to for Tpetra --- diff --git a/include/deal.II/lac/trilinos_tpetra_vector.templates.h b/include/deal.II/lac/trilinos_tpetra_vector.templates.h index 9c643a1603..e1f1dc06b5 100644 --- a/include/deal.II/lac/trilinos_tpetra_vector.templates.h +++ b/include/deal.II/lac/trilinos_tpetra_vector.templates.h @@ -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( @@ -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(indices[i])); elements[i] = vector_1d(trilinos_i); }