From: Wolfgang Bangerth Date: Thu, 14 Jan 2021 17:29:54 +0000 (-0700) Subject: Use the correct type for a variable. X-Git-Tag: v9.3.0-rc1~627^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64a676bbb6047a648390d2502e00df93469ea958;p=dealii.git Use the correct type for a variable. --- 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);