From 651b9f77d05b5ec44ffc639edcc0f141143a8537 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Sat, 11 May 2019 23:18:13 -0500 Subject: [PATCH] source: favor auto & cell --- source/grid/grid_tools.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/grid/grid_tools.cc b/source/grid/grid_tools.cc index dfff05c3de..f63ec3d8f0 100644 --- a/source/grid/grid_tools.cc +++ b/source/grid/grid_tools.cc @@ -3827,7 +3827,7 @@ namespace GridTools tria.clear_user_data(); unsigned next_index = 1; - for (auto cell : tria.active_cell_iterators()) + for (auto &cell : tria.active_cell_iterators()) { if (dim > 1) for (unsigned int l = 0; l < GeometryInfo::lines_per_cell; ++l) @@ -3856,7 +3856,7 @@ namespace GridTools cell->manifold_id()); } } - for (auto cell : tria.active_cell_iterators()) + for (auto &cell : tria.active_cell_iterators()) { if (dim > 1) for (unsigned int l = 0; l < GeometryInfo::lines_per_cell; ++l) -- 2.39.5