From 6c45e15dafcd1548c787c5e9a9306a5bad313de0 Mon Sep 17 00:00:00 2001 From: Luca Heltai Date: Thu, 13 Apr 2023 16:25:04 +0300 Subject: [PATCH] Fix tidy. --- source/dofs/dof_tools.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/dofs/dof_tools.cc b/source/dofs/dof_tools.cc index cf2d1b5280..fa49c31753 100644 --- a/source/dofs/dof_tools.cc +++ b/source/dofs/dof_tools.cc @@ -1381,13 +1381,13 @@ namespace DoFTools c0_to_c1; // map volume mesh face -> codimension 1 dof cell - for (auto c1_cell : c1_dh.active_cell_iterators()) + for (const auto &c1_cell : c1_dh.active_cell_iterators()) if (c1_to_c0.find(c1_cell) != c1_to_c0.end()) c0_to_c1[c1_to_c0.at(c1_cell)] = c1_cell; // generate a mapping that maps codimension-1 cells // to codimension-0 cells and faces - for (auto cell : + for (const auto &cell : c0_dh.active_cell_iterators()) // disp_dof.active_cell_iterators()) for (const auto f : cell->face_indices()) if (cell->face(f)->at_boundary() && -- 2.39.5