From: Wolfgang Bangerth Date: Fri, 16 Apr 2004 20:50:40 +0000 (+0000) Subject: Fix one potential problem. X-Git-Tag: v8.0.0~15318 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d114f079fa44000338e3173fe993944a187c6562;p=dealii.git Fix one potential problem. git-svn-id: https://svn.dealii.org/trunk@9031 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/source/petsc_parallel_vector.cc b/deal.II/lac/source/petsc_parallel_vector.cc index 35491c5beb..6524a40fc2 100644 --- a/deal.II/lac/source/petsc_parallel_vector.cc +++ b/deal.II/lac/source/petsc_parallel_vector.cc @@ -113,6 +113,9 @@ namespace PETScWrappers Vector & Vector::operator = (const PETScWrappers::Vector &v) { + // first flush buffers + compress (); + int ierr; // get a pointer to the local memory of this vector