]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use the correct type for a variable. 11542/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 14 Jan 2021 17:29:54 +0000 (10:29 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 14 Jan 2021 17:29:54 +0000 (10:29 -0700)
source/grid/grid_generator.cc

index 1c346a464e77ea95317453533c8aa2cd80036b41..9b72cf3b50a61aac63270c2d166b0fc86f82d807 100644 (file)
@@ -1308,12 +1308,9 @@ namespace GridGenerator
                 Assert(false, ExcInternalError());
             }
 
-      for (typename Triangulation<dim, spacedim>::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);

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.