From 257f3916072d26bf0ebba5eedca8845f456e9c3e Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 27 Aug 2024 20:28:35 -0600 Subject: [PATCH] Simplify a test. --- .../lac/constraints_make_consistent_in_parallel_03.cc | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/tests/lac/constraints_make_consistent_in_parallel_03.cc b/tests/lac/constraints_make_consistent_in_parallel_03.cc index 37fa665648..4165e7db5d 100644 --- a/tests/lac/constraints_make_consistent_in_parallel_03.cc +++ b/tests/lac/constraints_make_consistent_in_parallel_03.cc @@ -49,20 +49,15 @@ main(int argc, char **argv) owned_elements.add_range(1, 3); relevant_elements.add_range(0, n_indices); constraints.reinit(owned_elements, relevant_elements); - constraints.add_line(0); - constraints.add_entry(0, 1, 0.5); - constraints.add_entry(0, 2, 0.5); - constraints.add_line(2); - constraints.add_entry(2, 3, 1.5); + constraints.add_constraint(0, {{1, 0.5}, {2, 0.5}}); + constraints.add_constraint(2, {{3, 1.5}}); } else if (my_proc == 2) { owned_elements.add_range(3, n_indices); relevant_elements.add_range(0, n_indices); constraints.reinit(owned_elements, relevant_elements); - constraints.add_line(0); - constraints.add_entry(0, 1, 0.5); - constraints.add_entry(0, 3, 0.5); + constraints.add_constraint(0, {{1, 0.5}, {3, 0.5}}); } constraints.make_consistent_in_parallel(owned_elements, -- 2.39.5