]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
call update_ghost_values() automatically
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 1 Dec 2012 23:31:01 +0000 (23:31 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 1 Dec 2012 23:31:01 +0000 (23:31 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_unify_linear_algebra@27725 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/lac/petsc_parallel_vector.h

index 00246610f39e67c32728e6296c97d5f613a7a99d..c6c2481ecc3869ea607a704a9e6f9a90b7b6079c 100644 (file)
@@ -484,7 +484,9 @@ namespace PETScWrappers
 
       const int ierr = VecCopy (v.vector, vector);
       AssertThrow (ierr == 0, ExcPETScError(ierr));
-
+      if (ghosted)
+       update_ghost_values();
+      
       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.