From: Wolfgang Bangerth Date: Wed, 28 Aug 2024 02:28:35 +0000 (-0600) Subject: Simplify a test. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F17621%2Fhead;p=dealii.git Simplify a test. --- 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,