From 331ea9c65cfc83b815a7802fc4466dad92bd5a57 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Mon, 9 Jan 2023 11:35:10 -0500 Subject: [PATCH] Update source/lac/sparsity_tools.cc Co-authored-by: David Wells --- source/lac/sparsity_tools.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/lac/sparsity_tools.cc b/source/lac/sparsity_tools.cc index e5bc4b8668..0b45cbfb96 100644 --- a/source/lac/sparsity_tools.cc +++ b/source/lac/sparsity_tools.cc @@ -621,7 +621,7 @@ namespace SparsityTools DynamicSparsityPattern::size_type next_free_number = 0; // enumerate the first round dofs - for (unsigned int last_round_dof : last_round_dofs) + for (const auto &last_round_dof : last_round_dofs) new_indices[last_round_dof] = next_free_number++; // now do as many steps as needed to renumber all dofs -- 2.39.5