From: Daniel Arndt Date: Mon, 9 Jan 2023 16:35:10 +0000 (-0500) Subject: Update source/lac/sparsity_tools.cc X-Git-Tag: v9.5.0-rc1~673^2~3 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=331ea9c65cfc83b815a7802fc4466dad92bd5a57;p=dealii.git Update source/lac/sparsity_tools.cc Co-authored-by: David Wells --- 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