From d30557fbdcc48adcea83e84dcaedb697e7f3fee1 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Wed, 23 Nov 2022 04:25:07 -0600 Subject: [PATCH] GridGenerators: modernize a cell loop and use range-based for --- source/grid/grid_generator.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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); -- 2.39.5