From 7933dcf4b7cb3d3843a8399bb7a46360b0b2db5f Mon Sep 17 00:00:00 2001 From: heister Date: Mon, 5 Aug 2013 21:40:43 +0000 Subject: [PATCH] more PETSc reinit() fixes git-svn-id: https://svn.dealii.org/trunk@30227 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/lac/petsc_parallel_vector.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deal.II/source/lac/petsc_parallel_vector.cc b/deal.II/source/lac/petsc_parallel_vector.cc index c61872ebbe..9aeafe4839 100644 --- a/deal.II/source/lac/petsc_parallel_vector.cc +++ b/deal.II/source/lac/petsc_parallel_vector.cc @@ -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); } -- 2.39.5