From: Wolfgang Bangerth Date: Tue, 10 Oct 2023 15:19:14 +0000 (-0600) Subject: Convert AffineConstraints::add_constraint() to take an ArrayView. X-Git-Tag: relicensing~406^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca61b8844c6cdfee3c89d2c0872f91a0c8d9cbe5;p=dealii.git Convert AffineConstraints::add_constraint() to take an ArrayView. --- diff --git a/include/deal.II/lac/affine_constraints.h b/include/deal.II/lac/affine_constraints.h index 5f013060fa..470a405e91 100644 --- a/include/deal.II/lac/affine_constraints.h +++ b/include/deal.II/lac/affine_constraints.h @@ -795,9 +795,10 @@ public: * @endcode */ void - add_constraint(const size_type constrained_dof, - const std::vector> &dependencies, - const number inhomogeneity = 0); + add_constraint( + const size_type constrained_dof, + const ArrayView> &dependencies, + const number inhomogeneity = 0); /** * Add a new line to the matrix. If the line already exists, then the @@ -2296,9 +2297,9 @@ inline AffineConstraints::AffineConstraints( template inline void AffineConstraints::add_constraint( - const size_type constrained_dof, - const std::vector> &dependencies, - const number inhomogeneity) + const size_type constrained_dof, + const ArrayView> &dependencies, + const number inhomogeneity) { Assert(is_constrained(constrained_dof) == false, ExcMessage("You cannot add a constraint for a degree of freedom "