]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
more PETSc reinit() fixes
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 5 Aug 2013 21:40:43 +0000 (21:40 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 5 Aug 2013 21:40:43 +0000 (21:40 +0000)
git-svn-id: https://svn.dealii.org/trunk@30227 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/lac/petsc_parallel_vector.cc

index c61872ebbe7acae61f80d76fc3d6211ed0d34924..9aeafe4839f1094fe4da5c59bac33730df3d78f0 100644 (file)
@@ -131,7 +131,7 @@ namespace PETScWrappers
       MPI_Allreduce (&k, &k_global, 1,
                      MPI_INT, MPI_LOR, communicator);
 
-      if (k_global)
+      if (k_global || has_ghost_elements())
         {
           // FIXME: I'd like to use this here,
           // but somehow it leads to odd errors
@@ -176,7 +176,7 @@ namespace PETScWrappers
             }
         }
       else
-        reinit (communicator, v.size(), v.local_size(), fast);
+        reinit (v.communicator, v.size(), v.local_size(), fast);
     }
 
 

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.