From 97c66505badb1f5ce1a55457b662defab8714d5b Mon Sep 17 00:00:00 2001 From: bangerth Date: Sun, 1 Jun 2014 23:42:34 +0000 Subject: [PATCH] Patch by Micha Wichrowski: make sure we call collective operations from everywhere. git-svn-id: https://svn.dealii.org/trunk@33001 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/numerics/matrix_tools.cc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/deal.II/source/numerics/matrix_tools.cc b/deal.II/source/numerics/matrix_tools.cc index 063602a74e..dbb7d854f6 100644 --- a/deal.II/source/numerics/matrix_tools.cc +++ b/deal.II/source/numerics/matrix_tools.cc @@ -1,7 +1,7 @@ // --------------------------------------------------------------------- // $Id$ // -// Copyright (C) 1998 - 2013 by the deal.II authors +// Copyright (C) 1998 - 2014 by the deal.II authors // // This file is part of the deal.II library. // @@ -2403,7 +2403,14 @@ namespace MatrixTools right_hand_side.set (indices, solution_values); } - + else + { + // clear_rows() is a collective operation so we still have to call + // it: + std::vector constrained_rows; + matrix.clear_rows (constrained_rows, 1.); + } + // clean up matrix.compress (); solution.compress (VectorOperation::insert); -- 2.39.5