git-svn-id: https://svn.dealii.org/branches/branch_unify_linear_algebra@28476
0785d39b-7218-0410-832d-
ea1e28bc413d
const int ierr = VecCopy (v.vector, vector);
AssertThrow (ierr == 0, ExcPETScError(ierr));
-
+ if (ghosted)
+ update_ghost_values();
+
if (has_ghost_elements())
- update_ghost_values();
+ {
+ int ierr;
+
+ ierr = VecGhostUpdateBegin(vector, INSERT_VALUES, SCATTER_FORWARD);
+ AssertThrow (ierr == 0, ExcPETScError(ierr));
+ ierr = VecGhostUpdateEnd(vector, INSERT_VALUES, SCATTER_FORWARD);
+ AssertThrow (ierr == 0, ExcPETScError(ierr));
+ }
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