From: Matthias Maier Date: Mon, 4 May 2015 23:07:13 +0000 (+0200) Subject: add two comments X-Git-Tag: v8.3.0-rc1~201^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F899%2Fhead;p=dealii.git add two comments --- diff --git a/include/deal.II/lac/trilinos_parallel_block_vector.h b/include/deal.II/lac/trilinos_parallel_block_vector.h index 3392bd4a98..9a443a5577 100644 --- a/include/deal.II/lac/trilinos_parallel_block_vector.h +++ b/include/deal.II/lac/trilinos_parallel_block_vector.h @@ -404,6 +404,7 @@ namespace TrilinosWrappers inline BlockVector::BlockVector (BlockVector &&v) { + // initialize a minimal, valid object and swap reinit (0); swap(v); } diff --git a/source/lac/trilinos_vector.cc b/source/lac/trilinos_vector.cc index 5c34386a87..6889333b4a 100644 --- a/source/lac/trilinos_vector.cc +++ b/source/lac/trilinos_vector.cc @@ -128,6 +128,7 @@ namespace TrilinosWrappers #ifdef DEAL_II_WITH_CXX11 Vector::Vector (Vector &&v) { + // initialize a minimal, valid object and swap last_action = Zero; vector.reset(new Epetra_FEVector(Epetra_Map(0,0,0,Utilities::Trilinos::comm_self())));