]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
fix deadlock in ConstraintMatrix
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 27 May 2013 07:55:52 +0000 (07:55 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 27 May 2013 07:55:52 +0000 (07:55 +0000)
git-svn-id: https://svn.dealii.org/trunk@29631 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/lac/constraint_matrix.templates.h

index 037b2f953591065c5e48536adec8ee05584a7540..5cbed5d29f1e356005c216055dfcb363bf89ebc7 100644 (file)
@@ -987,9 +987,7 @@ ConstraintMatrix::distribute (VectorType &vec) const
   // if the vector type supports parallel storage and if the
   // vector actually does it, we need to be a bit more
   // careful about how we do things
-  if ((vec.supports_distributed_data == true)
-      &&
-      (vec.locally_owned_elements() != complete_index_set(vec.size())))
+  if (vec.supports_distributed_data == true)
     {
       const IndexSet vec_owned_elements = vec.locally_owned_elements();
 

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.