From 265fbd95c0311ed2ae0783dbf4acc9d37d14f905 Mon Sep 17 00:00:00 2001 From: heister Date: Sat, 1 Dec 2012 23:31:01 +0000 Subject: [PATCH] call update_ghost_values() automatically 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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.39.5