From: Martin Kronbichler Date: Wed, 11 Oct 2023 09:10:11 +0000 (+0200) Subject: AffineConstraints: Use more efficient function in add_constraint X-Git-Tag: relicensing~412^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e17a701bf54e60f9caccb5d6843908cc4dd953a;p=dealii.git AffineConstraints: Use more efficient function in add_constraint --- diff --git a/include/deal.II/lac/affine_constraints.h b/include/deal.II/lac/affine_constraints.h index abfe8f8644..5f013060fa 100644 --- a/include/deal.II/lac/affine_constraints.h +++ b/include/deal.II/lac/affine_constraints.h @@ -2305,8 +2305,7 @@ AffineConstraints::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); }