From: bangerth Date: Sun, 1 Jun 2014 23:42:34 +0000 (+0000) Subject: Patch by Micha Wichrowski: make sure we call collective operations from everywhere. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97c66505badb1f5ce1a55457b662defab8714d5b;p=dealii-svn.git 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 --- 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);