From: Wolfgang Bangerth Date: Thu, 19 Oct 2023 20:37:40 +0000 (-0600) Subject: Convert tests to use AffineConstraints::constrain_dof_to_zero(). X-Git-Tag: relicensing~369^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6e20eea3caff2b766a32d43e40efc02cc1e84d8;p=dealii.git Convert tests to use AffineConstraints::constrain_dof_to_zero(). --- diff --git a/tests/data_out/data_out_curved_cells.cc b/tests/data_out/data_out_curved_cells.cc index 5a101915d5..fdce46183a 100644 --- a/tests/data_out/data_out_curved_cells.cc +++ b/tests/data_out/data_out_curved_cells.cc @@ -158,7 +158,9 @@ curved_grid(std::ostream &out) for (const unsigned int vertex_no : GeometryInfo<2>::vertex_indices()) { for (unsigned int i = 0; i < 2; ++i) - m[i].add_line(cell->vertex_dof_index(vertex_no, 0)); + if (m[i].is_constrained(cell->vertex_dof_index(vertex_no, 0)) == + false) + m[i].constrain_dof_to_zero(cell->vertex_dof_index(vertex_no, 0)); } if (cell->at_boundary()) @@ -174,7 +176,7 @@ curved_grid(std::ostream &out) if (std::fabs(face->vertex(1).norm() - r_i) < eps) for (unsigned int i = 0; i < 2; ++i) { - m[i].add_line(face->dof_index(0)); + m[i].constrain_dof_to_zero(face->dof_index(0)); m[i].set_inhomogeneity(face->dof_index(0), (face->center() * (r_i / face->center().norm() - @@ -182,7 +184,7 @@ curved_grid(std::ostream &out) } else if (std::fabs(face->vertex(1).norm() - r_a) < eps) for (unsigned int i = 0; i < 2; ++i) - m[i].add_line(face->dof_index(0)); + m[i].constrain_dof_to_zero(face->dof_index(0)); else Assert(false, ExcInternalError()); } diff --git a/tests/fe/fe_enriched_step-36b.cc b/tests/fe/fe_enriched_step-36b.cc index 3e38a6bdfc..afdd3e9d46 100644 --- a/tests/fe/fe_enriched_step-36b.cc +++ b/tests/fe/fe_enriched_step-36b.cc @@ -426,7 +426,10 @@ namespace Step36 // if // (fe_collection[1].face_system_to_component_index(i).first // /*component*/ > 0) - constraints.add_line(local_face_dof_indices[i]); + if (constraints.is_constrained( + local_face_dof_indices[i]) == false) + constraints.constrain_dof_to_zero( + local_face_dof_indices[i]); } } } diff --git a/tests/integrators/assembler_simple_system_inhom_01.cc b/tests/integrators/assembler_simple_system_inhom_01.cc index d30005210e..c198833783 100644 --- a/tests/integrators/assembler_simple_system_inhom_01.cc +++ b/tests/integrators/assembler_simple_system_inhom_01.cc @@ -690,7 +690,7 @@ MeshWorkerAffineConstraintsTest::createInhomConstraints() if (std::sqrt(p.square()) < 1e-6) { - this->constraintsInhom.add_line(dof_index); + this->constraintsInhom.constrain_dof_to_zero(dof_index); this->constraintsInhom.set_inhomogeneity(dof_index, 2); } } diff --git a/tests/lac/affine_constraints_set_zero.cc b/tests/lac/affine_constraints_set_zero.cc index 36de05c412..2d93ee5593 100644 --- a/tests/lac/affine_constraints_set_zero.cc +++ b/tests/lac/affine_constraints_set_zero.cc @@ -40,8 +40,8 @@ test() local_active.add_range(myid * numproc, (myid + 1) * numproc); AffineConstraints cm; - cm.add_line(1); - cm.add_line(2); + cm.constrain_dof_to_zero(1); + cm.constrain_dof_to_zero(2); cm.close(); deallog << "CM:" << std::endl; diff --git a/tests/lac/constraint_matrix_distribute_local_global.cc b/tests/lac/constraint_matrix_distribute_local_global.cc index e5cd47114b..f5ebb194a4 100644 --- a/tests/lac/constraint_matrix_distribute_local_global.cc +++ b/tests/lac/constraint_matrix_distribute_local_global.cc @@ -39,7 +39,7 @@ main() // set up constraint AffineConstraints constraints; - constraints.add_line(0); + constraints.constrain_dof_to_zero(0); constraints.close(); // global matrix and vector diff --git a/tests/lac/constraints_01.cc b/tests/lac/constraints_01.cc index f1f0f91752..4e01699a0d 100644 --- a/tests/lac/constraints_01.cc +++ b/tests/lac/constraints_01.cc @@ -42,7 +42,7 @@ test() for (unsigned int i = 0; i < sizeof(inhoms) / sizeof(inhoms[0]); ++i) { deallog << inhoms[i] << std::endl; - cm.add_line(inhoms[i]); + cm.constrain_dof_to_zero(inhoms[i]); cm.set_inhomogeneity(inhoms[i], 1.0); } diff --git a/tests/lac/constraints_hanging_nodes_bc.cc b/tests/lac/constraints_hanging_nodes_bc.cc index b7e884e45a..10717c5eb7 100644 --- a/tests/lac/constraints_hanging_nodes_bc.cc +++ b/tests/lac/constraints_hanging_nodes_bc.cc @@ -86,7 +86,7 @@ test() { if (!correct_constraints.is_constrained(boundary_value->first)) { - correct_constraints.add_line(boundary_value->first); + correct_constraints.constrain_dof_to_zero(boundary_value->first); correct_constraints.set_inhomogeneity(boundary_value->first, boundary_value->second); } diff --git a/tests/lac/constraints_make_consistent_in_parallel_01.cc b/tests/lac/constraints_make_consistent_in_parallel_01.cc index fc0fcc33a0..c1b8211025 100644 --- a/tests/lac/constraints_make_consistent_in_parallel_01.cc +++ b/tests/lac/constraints_make_consistent_in_parallel_01.cc @@ -75,7 +75,8 @@ test(const DoFHandler &dof_handler, { cell->face(face)->get_dof_indices(dof_indices); for (const auto i : dof_indices) - constraints.add_line(i); + if (constraints.is_constrained(i) == false) + constraints.constrain_dof_to_zero(i); } const auto a = collect_lines(constraints, dof_handler.n_dofs()); diff --git a/tests/lac/constraints_merge_12.cc b/tests/lac/constraints_merge_12.cc index 566acc2629..b5f76aed41 100644 --- a/tests/lac/constraints_merge_12.cc +++ b/tests/lac/constraints_merge_12.cc @@ -41,11 +41,11 @@ merge_check() AffineConstraints c1(local_lines), c2(local_lines); for (types::global_dof_index i = 99999800; i < local_lines.size(); ++i) if (i % 2 == 1) - c1.add_line(i); + c1.constrain_dof_to_zero(i); - c2.add_line(99999800); - c2.add_line(99999801); - c2.add_line(99999802); + c2.constrain_dof_to_zero(99999800); + c2.constrain_dof_to_zero(99999801); + c2.constrain_dof_to_zero(99999802); // now merge the two and print the results c2.merge(c1, AffineConstraints::right_object_wins); diff --git a/tests/lac/constraints_move.cc b/tests/lac/constraints_move.cc index 8ff9f44cf2..5407364785 100644 --- a/tests/lac/constraints_move.cc +++ b/tests/lac/constraints_move.cc @@ -30,7 +30,7 @@ main() double vals[] = {0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0}; for (unsigned int i = 0; i < sizeof(IDs) / sizeof(IDs[0]); ++i) { - constraints.add_line(IDs[i]); + constraints.constrain_dof_to_zero(IDs[i]); constraints.set_inhomogeneity(IDs[i], vals[i]); } diff --git a/tests/lac/constraints_zero_condense.cc b/tests/lac/constraints_zero_condense.cc index 40a04710f9..bc8eac13fd 100644 --- a/tests/lac/constraints_zero_condense.cc +++ b/tests/lac/constraints_zero_condense.cc @@ -36,7 +36,7 @@ test() AffineConstraints cm; for (unsigned int i = 0; i < 5; ++i) - cm.add_line(i); + cm.constrain_dof_to_zero(i); cm.close(); // completely fill a 5x5 matrix diff --git a/tests/lac/inhomogeneous_constraints.cc b/tests/lac/inhomogeneous_constraints.cc index 707287aa07..4ec50667f0 100644 --- a/tests/lac/inhomogeneous_constraints.cc +++ b/tests/lac/inhomogeneous_constraints.cc @@ -226,7 +226,7 @@ LaplaceProblem::setup_system() { if (!test_all_constraints.is_constrained(boundary_value->first)) { - test_all_constraints.add_line(boundary_value->first); + test_all_constraints.constrain_dof_to_zero(boundary_value->first); test_all_constraints.set_inhomogeneity(boundary_value->first, boundary_value->second); } diff --git a/tests/lac/inhomogeneous_constraints_04.cc b/tests/lac/inhomogeneous_constraints_04.cc index 34810107d7..968ff0332e 100644 --- a/tests/lac/inhomogeneous_constraints_04.cc +++ b/tests/lac/inhomogeneous_constraints_04.cc @@ -90,11 +90,11 @@ test(bool use_constraint_matrix) { AffineConstraints cm; - cm.add_line(1); + cm.constrain_dof_to_zero(1); cm.set_inhomogeneity(1, -5.0); - cm.add_line(3); + cm.constrain_dof_to_zero(3); cm.set_inhomogeneity(3, 2.0); - cm.add_line(4); + cm.constrain_dof_to_zero(4); cm.set_inhomogeneity(4, 0.0); cm.close(); diff --git a/tests/lac/inhomogeneous_constraints_block.cc b/tests/lac/inhomogeneous_constraints_block.cc index aac704daad..77326d010a 100644 --- a/tests/lac/inhomogeneous_constraints_block.cc +++ b/tests/lac/inhomogeneous_constraints_block.cc @@ -148,7 +148,7 @@ AdvectionProblem::setup_system() boundary_values.begin(); for (; boundary_value != boundary_values.end(); ++boundary_value) { - test_all_constraints.add_line(boundary_value->first); + test_all_constraints.constrain_dof_to_zero(boundary_value->first); test_all_constraints.set_inhomogeneity(boundary_value->first, boundary_value->second); } diff --git a/tests/lac/inhomogeneous_constraints_nonsymmetric.cc b/tests/lac/inhomogeneous_constraints_nonsymmetric.cc index a955ae518e..b3591af895 100644 --- a/tests/lac/inhomogeneous_constraints_nonsymmetric.cc +++ b/tests/lac/inhomogeneous_constraints_nonsymmetric.cc @@ -153,7 +153,7 @@ AdvectionProblem::setup_system() boundary_values.begin(); for (; boundary_value != boundary_values.end(); ++boundary_value) { - test_all_constraints.add_line(boundary_value->first); + test_all_constraints.constrain_dof_to_zero(boundary_value->first); test_all_constraints.set_inhomogeneity(boundary_value->first, boundary_value->second); } diff --git a/tests/matrix_free/matrix_vector_mg.cc b/tests/matrix_free/matrix_vector_mg.cc index 431eef17f7..71e2985af5 100644 --- a/tests/matrix_free/matrix_vector_mg.cc +++ b/tests/matrix_free/matrix_vector_mg.cc @@ -104,7 +104,7 @@ test() std::set::iterator bc_it = boundary_indices[level].begin(); for (; bc_it != boundary_indices[level].end(); ++bc_it) - mg_constraints[level].add_line(*bc_it); + mg_constraints[level].constrain_dof_to_zero(*bc_it); mg_constraints[level].close(); typename MatrixFree::AdditionalData data; data.mg_level = level; diff --git a/tests/matrix_free/parallel_multigrid.cc b/tests/matrix_free/parallel_multigrid.cc index 2c22ac71c2..c76ed85c7e 100644 --- a/tests/matrix_free/parallel_multigrid.cc +++ b/tests/matrix_free/parallel_multigrid.cc @@ -109,7 +109,8 @@ public: { face->get_mg_dof_indices(level, local_dofs); for (unsigned int i = 0; i < fe.dofs_per_face; ++i) - constraints.add_line(local_dofs[i]); + if (constraints.is_constrained(local_dofs[i]) == false) + constraints.constrain_dof_to_zero(local_dofs[i]); } } } diff --git a/tests/matrix_free/parallel_multigrid_fullydistributed.cc b/tests/matrix_free/parallel_multigrid_fullydistributed.cc index 24add073bc..b671e09cff 100644 --- a/tests/matrix_free/parallel_multigrid_fullydistributed.cc +++ b/tests/matrix_free/parallel_multigrid_fullydistributed.cc @@ -114,7 +114,8 @@ public: { face->get_mg_dof_indices(level, local_dofs); for (unsigned int i = 0; i < fe.dofs_per_face; ++i) - constraints.add_line(local_dofs[i]); + if (constraints.is_constrained(local_dofs[i]) == false) + constraints.constrain_dof_to_zero(local_dofs[i]); } } } diff --git a/tests/matrix_free/parallel_multigrid_interleave.cc b/tests/matrix_free/parallel_multigrid_interleave.cc index 769bffcc87..8bd6eae736 100644 --- a/tests/matrix_free/parallel_multigrid_interleave.cc +++ b/tests/matrix_free/parallel_multigrid_interleave.cc @@ -120,7 +120,8 @@ public: { face->get_mg_dof_indices(level, local_dofs); for (unsigned int i = 0; i < fe.dofs_per_face; ++i) - constraints.add_line(local_dofs[i]); + if (constraints.is_constrained(local_dofs[i]) == false) + constraints.constrain_dof_to_zero(local_dofs[i]); } } } diff --git a/tests/matrix_free/parallel_multigrid_interleave_renumber.cc b/tests/matrix_free/parallel_multigrid_interleave_renumber.cc index 34f4b98804..bad965578b 100644 --- a/tests/matrix_free/parallel_multigrid_interleave_renumber.cc +++ b/tests/matrix_free/parallel_multigrid_interleave_renumber.cc @@ -121,7 +121,8 @@ public: { face->get_mg_dof_indices(level, local_dofs); for (unsigned int i = 0; i < fe.dofs_per_face; ++i) - constraints.add_line(local_dofs[i]); + if (constraints.is_constrained(local_dofs[i]) == false) + constraints.constrain_dof_to_zero(local_dofs[i]); } } } @@ -161,7 +162,8 @@ public: { face->get_mg_dof_indices(level, local_dofs); for (unsigned int i = 0; i < fe.dofs_per_face; ++i) - constraints.add_line(local_dofs[i]); + if (constraints.is_constrained(local_dofs[i]) == false) + constraints.constrain_dof_to_zero(local_dofs[i]); } } } diff --git a/tests/matrix_free/parallel_multigrid_mf.cc b/tests/matrix_free/parallel_multigrid_mf.cc index 3cecbcc9fc..a57870dfa5 100644 --- a/tests/matrix_free/parallel_multigrid_mf.cc +++ b/tests/matrix_free/parallel_multigrid_mf.cc @@ -109,7 +109,8 @@ public: { face->get_mg_dof_indices(level, local_dofs); for (unsigned int i = 0; i < fe.dofs_per_face; ++i) - constraints.add_line(local_dofs[i]); + if (constraints.is_constrained(local_dofs[i]) == false) + constraints.constrain_dof_to_zero(local_dofs[i]); } } } diff --git a/tests/matrix_free/step-37.cc b/tests/matrix_free/step-37.cc index 6367d2e9ce..9630983333 100644 --- a/tests/matrix_free/step-37.cc +++ b/tests/matrix_free/step-37.cc @@ -448,7 +448,7 @@ namespace Step37 std::set::iterator bc_it = boundary_indices[level].begin(); for (; bc_it != boundary_indices[level].end(); ++bc_it) - mg_constraints[level].add_line(*bc_it); + mg_constraints[level].constrain_dof_to_zero(*bc_it); mg_constraints[level].close(); mg_matrices[level].reinit(dof_handler, mg_constraints[level], level); diff --git a/tests/mpi/constraint_matrix_set_zero_01.cc b/tests/mpi/constraint_matrix_set_zero_01.cc index 8c5f47e42c..58f553672e 100644 --- a/tests/mpi/constraint_matrix_set_zero_01.cc +++ b/tests/mpi/constraint_matrix_set_zero_01.cc @@ -59,7 +59,7 @@ test() local_active_together.add_range(numproc + myid * 2, numproc + myid * 2 + 2); AffineConstraints cm(local_active_together); - cm.add_line(numproc + myid * 2); + cm.constrain_dof_to_zero(numproc + myid * 2); cm.close(); deallog << "vector before:" << std::endl; diff --git a/tests/mpi/constraint_matrix_set_zero_02.cc b/tests/mpi/constraint_matrix_set_zero_02.cc index a11cc92231..6d011d934a 100644 --- a/tests/mpi/constraint_matrix_set_zero_02.cc +++ b/tests/mpi/constraint_matrix_set_zero_02.cc @@ -63,7 +63,7 @@ test() local_active_together.add_range(numproc + myid * 2, numproc + myid * 2 + 2); AffineConstraints cm(local_active_together); - cm.add_line(numproc + myid * 2); + cm.constrain_dof_to_zero(numproc + myid * 2); cm.close(); deallog << "vector before:" << std::endl; diff --git a/tests/mpi/constraints_crash_01.cc b/tests/mpi/constraints_crash_01.cc index 331eaff85b..641ed95647 100644 --- a/tests/mpi/constraints_crash_01.cc +++ b/tests/mpi/constraints_crash_01.cc @@ -40,7 +40,7 @@ test() // local_active_together.compress(); AffineConstraints cm(local_active_together); - cm.add_line(1); + cm.constrain_dof_to_zero(1); cm.close(); deallog << "OK" << std::endl; } diff --git a/tests/mpi/constraints_crash_02.cc b/tests/mpi/constraints_crash_02.cc index 69be471812..c0c05a960a 100644 --- a/tests/mpi/constraints_crash_02.cc +++ b/tests/mpi/constraints_crash_02.cc @@ -47,7 +47,7 @@ test() AffineConstraints cm(owned, relevant); - cm.add_line(0); + cm.constrain_dof_to_zero(0); cm.close(); AffineConstraints cm2; diff --git a/tests/mpi/constraints_crash_03.cc b/tests/mpi/constraints_crash_03.cc index f4d14c3990..7b4ac1e2a5 100644 --- a/tests/mpi/constraints_crash_03.cc +++ b/tests/mpi/constraints_crash_03.cc @@ -41,7 +41,7 @@ test() AffineConstraints cm(owned, relevant); - cm.add_line(0); + cm.constrain_dof_to_zero(0); cm.close(); AffineConstraints cm2(cm); diff --git a/tests/mpi/crash_05.cc b/tests/mpi/crash_05.cc index 76ad1f756c..f70d3f396e 100644 --- a/tests/mpi/crash_05.cc +++ b/tests/mpi/crash_05.cc @@ -22,7 +22,7 @@ 905: An error occurred in line <1898> of file in function 905: void -dealii::AffineConstraints::add_line(dealii::AffineConstraints::size_type) +dealii::AffineConstraints::constrain_dof_to_zero(dealii::AffineConstraints::size_type) 905: The violated condition was: 905: line != numbers::invalid_size_type 905: The name and call sequence of the exception was: 905: ExcInternalError() 905: Additional Information: 905: (none) 905: diff --git a/tests/multigrid-global-coarsening/parallel_multigrid.cc b/tests/multigrid-global-coarsening/parallel_multigrid.cc index aca0dc688a..185b746cfc 100644 --- a/tests/multigrid-global-coarsening/parallel_multigrid.cc +++ b/tests/multigrid-global-coarsening/parallel_multigrid.cc @@ -109,7 +109,8 @@ public: { face->get_mg_dof_indices(level, local_dofs); for (unsigned int i = 0; i < fe.dofs_per_face; ++i) - constraints.add_line(local_dofs[i]); + if (constraints.is_constrained(local_dofs[i]) == false) + constraints.constrain_dof_to_zero(local_dofs[i]); } } } diff --git a/tests/multigrid-global-coarsening/parallel_multigrid_fullydistributed.cc b/tests/multigrid-global-coarsening/parallel_multigrid_fullydistributed.cc index e39bca030d..4ae6381bfd 100644 --- a/tests/multigrid-global-coarsening/parallel_multigrid_fullydistributed.cc +++ b/tests/multigrid-global-coarsening/parallel_multigrid_fullydistributed.cc @@ -114,7 +114,8 @@ public: { face->get_mg_dof_indices(level, local_dofs); for (unsigned int i = 0; i < fe.dofs_per_face; ++i) - constraints.add_line(local_dofs[i]); + if (constraints.is_constrained(local_dofs[i]) == false) + constraints.constrain_dof_to_zero(local_dofs[i]); } } } diff --git a/tests/multigrid-global-coarsening/parallel_multigrid_interleave.cc b/tests/multigrid-global-coarsening/parallel_multigrid_interleave.cc index debcb77147..6a598fd04c 100644 --- a/tests/multigrid-global-coarsening/parallel_multigrid_interleave.cc +++ b/tests/multigrid-global-coarsening/parallel_multigrid_interleave.cc @@ -120,7 +120,8 @@ public: { face->get_mg_dof_indices(level, local_dofs); for (unsigned int i = 0; i < fe.dofs_per_face; ++i) - constraints.add_line(local_dofs[i]); + if (constraints.is_constrained(local_dofs[i]) == false) + constraints.constrain_dof_to_zero(local_dofs[i]); } } } diff --git a/tests/multigrid-global-coarsening/parallel_multigrid_interleave_renumber.cc b/tests/multigrid-global-coarsening/parallel_multigrid_interleave_renumber.cc index 05db905214..1a02458326 100644 --- a/tests/multigrid-global-coarsening/parallel_multigrid_interleave_renumber.cc +++ b/tests/multigrid-global-coarsening/parallel_multigrid_interleave_renumber.cc @@ -121,7 +121,8 @@ public: { face->get_mg_dof_indices(level, local_dofs); for (unsigned int i = 0; i < fe.dofs_per_face; ++i) - constraints.add_line(local_dofs[i]); + if (constraints.is_constrained(local_dofs[i]) == false) + constraints.constrain_dof_to_zero(local_dofs[i]); } } } @@ -161,7 +162,8 @@ public: { face->get_mg_dof_indices(level, local_dofs); for (unsigned int i = 0; i < fe.dofs_per_face; ++i) - constraints.add_line(local_dofs[i]); + if (constraints.is_constrained(local_dofs[i]) == false) + constraints.constrain_dof_to_zero(local_dofs[i]); } } } diff --git a/tests/multigrid-global-coarsening/parallel_multigrid_mf.cc b/tests/multigrid-global-coarsening/parallel_multigrid_mf.cc index 49e38c344a..41bd2928dc 100644 --- a/tests/multigrid-global-coarsening/parallel_multigrid_mf.cc +++ b/tests/multigrid-global-coarsening/parallel_multigrid_mf.cc @@ -109,7 +109,8 @@ public: { face->get_mg_dof_indices(level, local_dofs); for (unsigned int i = 0; i < fe.dofs_per_face; ++i) - constraints.add_line(local_dofs[i]); + if (constraints.is_constrained(local_dofs[i]) == false) + constraints.constrain_dof_to_zero(local_dofs[i]); } } } diff --git a/tests/multigrid/constrained_dofs_07.cc b/tests/multigrid/constrained_dofs_07.cc index 4da2a04d81..e6aa5afc55 100644 --- a/tests/multigrid/constrained_dofs_07.cc +++ b/tests/multigrid/constrained_dofs_07.cc @@ -64,7 +64,7 @@ check() { if (level_constraints.can_store_line(face_dofs[i])) { - level_constraints.add_line(face_dofs[i]); + level_constraints.constrain_dof_to_zero(face_dofs[i]); level_constraints.set_inhomogeneity(face_dofs[i], 5.0); } } diff --git a/tests/multigrid/transfer_matrix_free_13.cc b/tests/multigrid/transfer_matrix_free_13.cc index 38c1c1369e..197fa2106b 100644 --- a/tests/multigrid/transfer_matrix_free_13.cc +++ b/tests/multigrid/transfer_matrix_free_13.cc @@ -62,7 +62,7 @@ check() { if (user_constraints.can_store_line(face_dofs[i])) { - user_constraints.add_line(face_dofs[i]); + user_constraints.constrain_dof_to_zero(face_dofs[i]); user_constraints.set_inhomogeneity(face_dofs[i], 5.0); } } diff --git a/tests/multigrid/transfer_prebuilt_05.cc b/tests/multigrid/transfer_prebuilt_05.cc index 64123fbc11..7a0239ef6f 100644 --- a/tests/multigrid/transfer_prebuilt_05.cc +++ b/tests/multigrid/transfer_prebuilt_05.cc @@ -59,7 +59,7 @@ check() { if (user_constraints.can_store_line(face_dofs[i])) { - user_constraints.add_line(face_dofs[i]); + user_constraints.constrain_dof_to_zero(face_dofs[i]); user_constraints.set_inhomogeneity(face_dofs[i], 5.0); } } diff --git a/tests/remote_point_evaluation/vector_tools_evaluate_at_points_02.cc b/tests/remote_point_evaluation/vector_tools_evaluate_at_points_02.cc index 2328401dd4..f6934fb505 100644 --- a/tests/remote_point_evaluation/vector_tools_evaluate_at_points_02.cc +++ b/tests/remote_point_evaluation/vector_tools_evaluate_at_points_02.cc @@ -193,9 +193,9 @@ public: if (global_ids[i] == numbers::invalid_size_type) continue; - constraints.add_line(global_ids[i]); - constraints.set_inhomogeneity(global_ids[i], - evaluation_point_results[i]); + constraints.add_constraint(global_ids[i], + {}, + evaluation_point_results[i]); } } constraints.close();