Skip to content

Commit

Permalink
GridGenerators: modernize a cell loop and use range-based for
Browse files Browse the repository at this point in the history
  • Loading branch information
tamiko committed Nov 23, 2022
1 parent e2eba3f commit a9515f5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions source/grid/grid_generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a9515f5

Please sign in to comment.