]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Simplify a test. 17621/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 28 Aug 2024 02:28:35 +0000 (20:28 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 28 Aug 2024 02:43:39 +0000 (20:43 -0600)
tests/lac/constraints_make_consistent_in_parallel_03.cc

index 37fa665648908d0073bf8abb77551c54df1d011b..4165e7db5d65cea127f8c5605db0ad84ec9a898a 100644 (file)
@@ -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,

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.