From 700c57fc9302d1df6ea8d445a921a178cfd62ebb Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Tue, 5 May 2015 01:07:13 +0200 Subject: [PATCH] add two comments --- include/deal.II/lac/trilinos_parallel_block_vector.h | 1 + source/lac/trilinos_vector.cc | 1 + 2 files changed, 2 insertions(+) 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()))); -- 2.39.5