From: Matthias Maier Date: Sun, 12 May 2019 04:18:13 +0000 (-0500) Subject: source: favor auto & cell X-Git-Tag: v9.1.0-rc1~43^2~4 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=651b9f77d05b5ec44ffc639edcc0f141143a8537;p=dealii.git source: favor auto & cell --- 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)