]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
operator= automatically calls update_ghost_values() in PETSc.
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 15 Feb 2013 05:10:00 +0000 (05:10 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 15 Feb 2013 05:10:00 +0000 (05:10 +0000)
git-svn-id: https://svn.dealii.org/trunk@28400 0785d39b-7218-0410-832d-ea1e28bc413d

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

index bea148060f811a1f7664b0bc89c418b16c3a5091..7fe5a5633a2727fb2175fa27198d72caeec0614d 100644 (file)
@@ -509,6 +509,8 @@ namespace PETScWrappers
       const int ierr = VecCopy (v.vector, vector);
       AssertThrow (ierr == 0, ExcPETScError(ierr));
 
+      if (has_ghost_elements())
+        update_ghost_values();
       return *this;
     }
 
index d0b3b27923a4366545792b1938ff780fade348a3..e2302f37b8bda60728e6ec90de445361a283c844 100644 (file)
@@ -197,6 +197,8 @@ namespace PETScWrappers
       ierr = VecRestoreArray (static_cast<const Vec &>(v), &src_array);
       AssertThrow (ierr == 0, ExcPETScError(ierr));
 
+      if (has_ghost_elements())
+        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.