From: Marc Fehling Date: Wed, 28 Aug 2024 21:57:27 +0000 (-0600) Subject: Make make_consistent_in_parallel work with no locally owned dofs. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a28dcfe1d3f12671fbd66be7f76a11fb00395a1e;p=dealii.git Make make_consistent_in_parallel work with no locally owned dofs. --- diff --git a/include/deal.II/lac/affine_constraints.templates.h b/include/deal.II/lac/affine_constraints.templates.h index f0edc5f0da..e0f870bf10 100644 --- a/include/deal.II/lac/affine_constraints.templates.h +++ b/include/deal.II/lac/affine_constraints.templates.h @@ -708,7 +708,7 @@ AffineConstraints::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. "