From: Matthias Maier Date: Wed, 23 Nov 2022 10:25:07 +0000 (-0600) Subject: GridGenerators: modernize a cell loop and use range-based for X-Git-Tag: v9.5.0-rc1~824^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d30557fbdcc48adcea83e84dcaedb697e7f3fee1;p=dealii.git GridGenerators: modernize a cell loop and use range-based for --- diff --git a/source/grid/grid_generator.cc b/source/grid/grid_generator.cc index 1fd8c8c070..497d9506fd 100644 --- a/source/grid/grid_generator.cc +++ b/source/grid/grid_generator.cc @@ -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);