]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
One more
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 29 Dec 2013 21:04:05 +0000 (21:04 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 29 Dec 2013 21:04:05 +0000 (21:04 +0000)
git-svn-id: https://svn.dealii.org/trunk@32127 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/lac/trilinos_vector_base.h

index 649513392adb6d5d6d346509e7133f80225b403e..39b9b79991326845a0c8fe756c3cc79273eb07b1 100644 (file)
@@ -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;
   }
 

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.