From ca61b8844c6cdfee3c89d2c0872f91a0c8d9cbe5 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 10 Oct 2023 09:19:14 -0600 Subject: [PATCH] Convert AffineConstraints::add_constraint() to take an ArrayView. --- include/deal.II/lac/affine_constraints.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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 " -- 2.39.5