]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
additional ghost check
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 16 Feb 2013 21:24:36 +0000 (21:24 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 16 Feb 2013 21:24:36 +0000 (21:24 +0000)
git-svn-id: https://svn.dealii.org/trunk@28426 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/lac/petsc_vector_base.cc

index 1102071c14532e25a98ef6a34934e0f5fd4580b4..c34a6138eb0d8ca123cc96e4aaf3627f454fbd6c 100644 (file)
@@ -208,7 +208,7 @@ namespace PETScWrappers
   VectorBase &
   VectorBase::operator = (const PetscScalar s)
   {
-
+    Assert (!has_ghost_elements(), ExcGhostsPresent());
     Assert (numbers::is_finite(s), ExcNumberNotFinite());
 
     //TODO[TH]: assert(is_compressed())

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.