From: Matthias Maier Date: Wed, 23 Nov 2022 10:21:13 +0000 (-0600) Subject: GridGenerator: avoid a warning in release mode X-Git-Tag: v9.5.0-rc1~824^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=184371e064184292920bd26f9f552e8bb43fcc22;p=dealii.git GridGenerator: avoid a warning in release mode --- 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()); }