From: Timo Heister Date: Sat, 1 Dec 2012 23:31:01 +0000 (+0000) Subject: call update_ghost_values() automatically X-Git-Tag: v8.0.0~120^2~103 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7b3f64a8b99c3befb82c6c14a63441f3cbadfd1;p=dealii.git call update_ghost_values() automatically git-svn-id: https://svn.dealii.org/branches/branch_unify_linear_algebra@27725 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/lac/petsc_parallel_vector.h b/deal.II/include/deal.II/lac/petsc_parallel_vector.h index 00246610f3..c6c2481ecc 100644 --- a/deal.II/include/deal.II/lac/petsc_parallel_vector.h +++ b/deal.II/include/deal.II/lac/petsc_parallel_vector.h @@ -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; }