From 0eb943bd1ed1b36c49da87ff691e0bf3d5a6f0a3 Mon Sep 17 00:00:00 2001 From: kronbichler Date: Sun, 29 Dec 2013 21:04:05 +0000 Subject: [PATCH] One more git-svn-id: https://svn.dealii.org/trunk@32127 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/lac/trilinos_vector_base.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/deal.II/include/deal.II/lac/trilinos_vector_base.h b/deal.II/include/deal.II/lac/trilinos_vector_base.h index 649513392a..39b9b79991 100644 --- a/deal.II/include/deal.II/lac/trilinos_vector_base.h +++ b/deal.II/include/deal.II/lac/trilinos_vector_base.h @@ -1177,6 +1177,9 @@ namespace TrilinosWrappers if (fast == false || vector_partitioner().SameAs(v.vector_partitioner())==false) vector.reset (new Epetra_FEVector(*v.vector)); + + if (v.nonlocal_vector.get() != 0) + nonlocal_vector.reset(new Epetra_MultiVector(v.nonlocal_vector->Map(), 1)); } @@ -1222,6 +1225,9 @@ namespace TrilinosWrappers AssertThrow (ierr == 0, ExcTrilinosError(ierr)); + if (nonlocal_vector.get() != 0) + nonlocal_vector->PutScalar(0.); + return *this; } -- 2.39.5