From: wolf Date: Thu, 5 May 2005 19:04:38 +0000 (+0000) Subject: Add an assertion that is necessary to make sure all processes do the X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c4d2d5f448db2fc77d6cba9bf0846dee162fae4;p=dealii-svn.git Add an assertion that is necessary to make sure all processes do the same thing. git-svn-id: https://svn.dealii.org/trunk@10650 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/numerics/matrices.all_dimensions.cc b/deal.II/deal.II/source/numerics/matrices.all_dimensions.cc index 749d09f25e..71b0b21937 100644 --- a/deal.II/deal.II/source/numerics/matrices.all_dimensions.cc +++ b/deal.II/deal.II/source/numerics/matrices.all_dimensions.cc @@ -553,14 +553,29 @@ namespace PETScWrappers const std::pair local_range = matrix.local_range(); + + // make sure that there is at + // least one boundary node on + // each processor, or we get into + // trouble with synchronisation + { + bool found = false; + for (unsigned int i=local_range.first; i