]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make make_consistent_in_parallel work with no locally owned dofs. 17632/head
authorMarc Fehling <mafehling.git@gmail.com>
Wed, 28 Aug 2024 21:57:27 +0000 (15:57 -0600)
committerMarc Fehling <mafehling.git@gmail.com>
Wed, 28 Aug 2024 22:43:09 +0000 (16:43 -0600)
include/deal.II/lac/affine_constraints.templates.h

index f0edc5f0daa5aa3c466889abb15da8c12886111b..e0f870bf1024aed28b05bf5ee1b6a20e08cf5864 100644 (file)
@@ -708,7 +708,7 @@ AffineConstraints<number>::make_consistent_in_parallel(
 
   Assert(sorted == false, ExcMatrixIsClosed());
 
-  Assert(this->local_lines.is_empty() == false,
+  Assert(this->local_lines.size() > 0,
          ExcMessage(
            "This functionality requires that the AffineConstraints object "
            "knows for which degrees of freedom it can store constraints. "

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.