]> https://gitweb.dealii.org/ - dealii.git/commitdiff
AffineConstraints: Use more efficient function in add_constraint 16122/head
authorMartin Kronbichler <martin.kronbichler@uni-a.de>
Wed, 11 Oct 2023 09:10:11 +0000 (11:10 +0200)
committerMartin Kronbichler <martin.kronbichler@uni-a.de>
Wed, 11 Oct 2023 09:10:11 +0000 (11:10 +0200)
include/deal.II/lac/affine_constraints.h

index abfe8f8644a13f0ac743138bca436c2443367038..5f013060facc432354be8456f0c3fae002ef260b 100644 (file)
@@ -2305,8 +2305,7 @@ AffineConstraints<number>::add_constraint(
                     "that is already constrained."));
 
   add_line(constrained_dof);
-  for (const auto &dep : dependencies)
-    add_entry(constrained_dof, dep.first, dep.second);
+  add_entries(constrained_dof, dependencies);
   set_inhomogeneity(constrained_dof, inhomogeneity);
 }
 

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.