From 184371e064184292920bd26f9f552e8bb43fcc22 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Wed, 23 Nov 2022 04:21:13 -0600 Subject: [PATCH] GridGenerator: avoid a warning in release mode --- source/grid/grid_generator.cc | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/source/grid/grid_generator.cc b/source/grid/grid_generator.cc index bcd356c50b..1fd8c8c070 100644 --- a/source/grid/grid_generator.cc +++ b/source/grid/grid_generator.cc @@ -1414,25 +1414,23 @@ 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; +# endif for (Triangulation<3>::cell_iterator cell = tria.begin(); cell != tria.end(); ++cell) if (cell->face(5)->at_boundary()) { cell->face(5)->set_all_boundary_ids(1); +# ifdef DEBUG ++count; +# endif } Assert(count == 48, ExcInternalError()); } -- 2.39.5