From a28dcfe1d3f12671fbd66be7f76a11fb00395a1e Mon Sep 17 00:00:00 2001 From: Marc Fehling Date: Wed, 28 Aug 2024 15:57:27 -0600 Subject: [PATCH] Make make_consistent_in_parallel work with no locally owned dofs. --- include/deal.II/lac/affine_constraints.templates.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. " -- 2.39.5