]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix TpetraWrappers::Vector<Number> 16284/head
authorSebastian Kinnewig <sebastian@kinnewig.org>
Tue, 21 Nov 2023 18:33:09 +0000 (19:33 +0100)
committerSebastian Kinnewig <sebastian@kinnewig.org>
Tue, 21 Nov 2023 18:33:09 +0000 (19:33 +0100)
include/deal.II/lac/trilinos_tpetra_vector.templates.h

index bb122eb8908b2ee132dcf35c5f35de5413d8d73d..ad5b04d76e003d4ebb1437d4c3711bc610efadd8 100644 (file)
@@ -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<VectorType>(input_map);
+        vector = Utilities::Trilinos::internal::make_rcp<VectorType>(input_map);
       else if (omit_zeroing_entries == false)
         {
           vector->putScalar(0.);
@@ -115,7 +115,7 @@ namespace LinearAlgebra
       Teuchos::RCP<MapType> input_map =
         parallel_partitioner.make_tpetra_map_rcp(communicator, true);
 
-      Utilities::Trilinos::internal::make_rcp<VectorType>(input_map);
+      vector = Utilities::Trilinos::internal::make_rcp<VectorType>(input_map);
     }
 
 

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.