]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix a bug where we were choosing the wrong index set.
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 27 Sep 2023 22:02:28 +0000 (16:02 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 27 Sep 2023 22:02:36 +0000 (16:02 -0600)
include/deal.II/multigrid/mg_constrained_dofs.h

index 6882b92219037c0e2c2cab3403ab46bd047ffa08..ee22cdb2aedb6ddbd6a318eecf3d79ca18e98bc5 100644 (file)
@@ -617,7 +617,8 @@ MGConstrainedDoFs::merge_constraints(AffineConstraints<Number> &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())

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.