Skip to content

Commit

Permalink
Merge pull request #14452 from tamiko/avoid_a_warning
Browse files Browse the repository at this point in the history
GridGenerator: avoid a warning in release mode
  • Loading branch information
tjhei committed Nov 23, 2022
2 parents bdae224 + d30557f commit 3cd25ce
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions source/grid/grid_generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1414,25 +1414,21 @@ namespace GridGenerator
}
else if (tria.n_cells() == 96)
{
// the 96-cell hypershell is
// based on a once refined
// 12-cell mesh. consequently,
// since the outer faces all
// are face_no==5 above, so
// they are here (unless they
// are in the interior). Use
// this to assign boundary
// indicators, but also make
// sure that we encounter
// exactly 48 such faces
// the 96-cell hypershell is based on a once refined 12-cell
// mesh. consequently, since the outer faces all are face_no==5
// above, so they are here (unless they are in the interior). Use
// this to assign boundary indicators, but also make sure that we
// encounter exactly 48 such faces
# ifdef DEBUG
unsigned int count = 0;
for (Triangulation<3>::cell_iterator cell = tria.begin();
cell != tria.end();
++cell)
# endif
for (const auto &cell : tria.cell_iterators())
if (cell->face(5)->at_boundary())
{
cell->face(5)->set_all_boundary_ids(1);
# ifdef DEBUG
++count;
# endif
}
Assert(count == 48, ExcInternalError());
}
Expand Down

0 comments on commit 3cd25ce

Please sign in to comment.