]> https://gitweb.dealii.org/ - dealii.git/commitdiff
GridGenerators: modernize a cell loop and use range-based for 14452/head
authorMatthias Maier <tamiko@43-1.org>
Wed, 23 Nov 2022 10:25:07 +0000 (04:25 -0600)
committerMatthias Maier <tamiko@43-1.org>
Wed, 23 Nov 2022 12:17:17 +0000 (06:17 -0600)
source/grid/grid_generator.cc

index 1fd8c8c070a85d54222131a6845662b9bb692c79..497d9506fd8222618ef4430176840f0dda3f9462 100644 (file)
@@ -1422,9 +1422,7 @@ namespace GridGenerator
 #  ifdef DEBUG
           unsigned int count = 0;
 #  endif
-          for (Triangulation<3>::cell_iterator cell = tria.begin();
-               cell != tria.end();
-               ++cell)
+          for (const auto &cell : tria.cell_iterators())
             if (cell->face(5)->at_boundary())
               {
                 cell->face(5)->set_all_boundary_ids(1);

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.