@@ -627,14 +627,8 @@ namespace aspect
627627 // For the moment add constraints from all plugins into one object, then
628628 // merge that object with the existing constraints (respecting the existing
629629 // constraints as more important).
630- //
631- // We initialize the constraints object with the locally
632- // relevant DoF indices as the set of constraints to store (also
633- // using the locally relevant indices for the "locally owned"
634- // DoFs). This way, plugins can fill information for all locally
635- // relevant DoFs and we do not need to communicate.
636630#if DEAL_II_VERSION_GTE(9,7,0)
637- AffineConstraints<double > plugin_constraints (mesh_vertex_constraints. get_local_lines (),
631+ AffineConstraints<double > plugin_constraints (mesh_deformation_dof_handler. locally_owned_dofs (),
638632 mesh_vertex_constraints.get_local_lines ());
639633#else
640634 AffineConstraints<double > plugin_constraints (mesh_vertex_constraints.get_local_lines ());
@@ -647,7 +641,7 @@ namespace aspect
647641 for (const auto &model : boundary_id.second )
648642 {
649643#if DEAL_II_VERSION_GTE(9,7,0)
650- AffineConstraints<double > current_plugin_constraints (mesh_vertex_constraints. get_local_lines (),
644+ AffineConstraints<double > current_plugin_constraints (mesh_deformation_dof_handler. locally_owned_dofs (),
651645 mesh_vertex_constraints.get_local_lines ());
652646#else
653647 AffineConstraints<double > current_plugin_constraints (mesh_vertex_constraints.get_local_lines ());
@@ -656,7 +650,7 @@ namespace aspect
656650 model->compute_velocity_constraints_on_boundary (mesh_deformation_dof_handler,
657651 current_plugin_constraints,
658652 boundary_id_set);
659- if (( this ->is_stokes_matrix_free () ))
653+ if (this ->is_stokes_matrix_free ())
660654 {
661655 mg_constrained_dofs.make_zero_boundary_constraints (mesh_deformation_dof_handler,
662656 boundary_id_set);
0 commit comments