]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Bugfix: Correctly set up object in move constructor
authorMatthias Maier <tamiko@43-1.org>
Mon, 4 May 2015 08:15:56 +0000 (10:15 +0200)
committerMatthias Maier <tamiko@43-1.org>
Mon, 4 May 2015 11:46:24 +0000 (13:46 +0200)
include/deal.II/lac/trilinos_parallel_block_vector.h
source/lac/trilinos_vector.cc

index 79b5ce176ca27eb1baebd4dea56997f6f61cb4c6..9539aef1db16674a54ad51afc354650a6dcb2407 100644 (file)
@@ -404,6 +404,7 @@ namespace TrilinosWrappers
     inline
     BlockVector::BlockVector (BlockVector &&v)
     {
+      reinit (0);
       swap(v);
     }
 #endif
index 26584f5e7e9075ce5122122ab3bc5adc162d3c03..5c34386a877616efb97177ff81fb4ec167ed49c8 100644 (file)
@@ -128,6 +128,9 @@ namespace TrilinosWrappers
 #ifdef DEAL_II_WITH_CXX11
     Vector::Vector (Vector &&v)
     {
+      last_action = Zero;
+      vector.reset(new Epetra_FEVector(Epetra_Map(0,0,0,Utilities::Trilinos::comm_self())));
+
       swap(v);
     }
 #endif

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.