From 64a676bbb6047a648390d2502e00df93469ea958 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 14 Jan 2021 10:29:54 -0700 Subject: [PATCH] Use the correct type for a variable. --- source/grid/grid_generator.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/source/grid/grid_generator.cc b/source/grid/grid_generator.cc index 1c346a464e..9b72cf3b50 100644 --- a/source/grid/grid_generator.cc +++ b/source/grid/grid_generator.cc @@ -1308,12 +1308,9 @@ namespace GridGenerator Assert(false, ExcInternalError()); } - for (typename Triangulation::cell_iterator cell = - tria.begin(); - cell != tria.end(); - ++cell) + for (const auto &cell : tria.cell_iterators()) { - char id = 0; + types::material_id id = 0; for (unsigned int d = 0; d < dim; ++d) if (cell->center()(d) > 0) id += (1 << d); -- 2.39.5