From: Wolfgang Bangerth Date: Wed, 27 Sep 2023 22:02:28 +0000 (-0600) Subject: Fix a bug where we were choosing the wrong index set. X-Git-Tag: relicensing~463^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f87a670a8292972f7b7cf9ba533b3ac626edc198;p=dealii.git Fix a bug where we were choosing the wrong index set. --- 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())