]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Patch by Micha Wichrowski: make sure we call collective operations from everywhere.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 1 Jun 2014 23:42:34 +0000 (23:42 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 1 Jun 2014 23:42:34 +0000 (23:42 +0000)
git-svn-id: https://svn.dealii.org/trunk@33001 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/numerics/matrix_tools.cc

index 063602a74e5e44998d00b03a1655111cb27a62c2..dbb7d854f6a586148b72fa7625b7b7969f62a29f 100644 (file)
@@ -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<types::global_dof_index> constrained_rows;
+            matrix.clear_rows (constrained_rows, 1.);
+         }
+       
         // clean up
         matrix.compress ();
         solution.compress (VectorOperation::insert);

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.