From f87a670a8292972f7b7cf9ba533b3ac626edc198 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 27 Sep 2023 16:02:28 -0600 Subject: [PATCH] Fix a bug where we were choosing the wrong index set. --- include/deal.II/multigrid/mg_constrained_dofs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/deal.II/multigrid/mg_constrained_dofs.h b/include/deal.II/multigrid/mg_constrained_dofs.h index 6882b92219..ee22cdb2ae 100644 --- a/include/deal.II/multigrid/mg_constrained_dofs.h +++ b/include/deal.II/multigrid/mg_constrained_dofs.h @@ -617,7 +617,8 @@ MGConstrainedDoFs::merge_constraints(AffineConstraints &constraints, index_set.add_indices( this->get_user_constraint_matrix(level).get_local_lines()); - constraints.reinit(constraints.get_locally_owned_indices(), index_set); + constraints.reinit(level_constraints[level].get_locally_owned_indices(), + index_set); // merge constraints if (add_boundary_indices && this->have_boundary_indices()) -- 2.39.5