From: Sebastian Kinnewig Date: Tue, 21 Nov 2023 18:33:09 +0000 (+0100) Subject: fix TpetraWrappers::Vector X-Git-Tag: relicensing~287^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F16284%2Fhead;p=dealii.git fix TpetraWrappers::Vector --- diff --git a/include/deal.II/lac/trilinos_tpetra_vector.templates.h b/include/deal.II/lac/trilinos_tpetra_vector.templates.h index bb122eb890..ad5b04d76e 100644 --- a/include/deal.II/lac/trilinos_tpetra_vector.templates.h +++ b/include/deal.II/lac/trilinos_tpetra_vector.templates.h @@ -94,7 +94,7 @@ namespace LinearAlgebra parallel_partitioner.make_tpetra_map_rcp(communicator, false); if (vector->getMap()->isSameAs(*input_map) == false) - Utilities::Trilinos::internal::make_rcp(input_map); + vector = Utilities::Trilinos::internal::make_rcp(input_map); else if (omit_zeroing_entries == false) { vector->putScalar(0.); @@ -115,7 +115,7 @@ namespace LinearAlgebra Teuchos::RCP input_map = parallel_partitioner.make_tpetra_map_rcp(communicator, true); - Utilities::Trilinos::internal::make_rcp(input_map); + vector = Utilities::Trilinos::internal::make_rcp(input_map); }