From 6c4d2d5f448db2fc77d6cba9bf0846dee162fae4 Mon Sep 17 00:00:00 2001 From: wolf Date: Thu, 5 May 2005 19:04:38 +0000 Subject: [PATCH] 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 --- .../numerics/matrices.all_dimensions.cc | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) 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