]> https://gitweb.dealii.org/ - dealii.git/commitdiff
GridGenerator: avoid a warning in release mode
authorMatthias Maier <tamiko@43-1.org>
Wed, 23 Nov 2022 10:21:13 +0000 (04:21 -0600)
committerMatthias Maier <tamiko@43-1.org>
Wed, 23 Nov 2022 12:16:45 +0000 (06:16 -0600)
source/grid/grid_generator.cc

index bcd356c50bc804f267c5940bf10dfe7c0410ff49..1fd8c8c070a85d54222131a6845662b9bb692c79 100644 (file)
@@ -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());
         }

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.