]> https://gitweb.dealii.org/ - dealii.git/commitdiff
GridGenerator::half_hyper_shell warning 9301/head
authorTimo Heister <timo.heister@gmail.com>
Mon, 13 Jan 2020 16:00:44 +0000 (11:00 -0500)
committerTimo Heister <timo.heister@gmail.com>
Mon, 13 Jan 2020 16:01:49 +0000 (11:01 -0500)
- remove unused variable warning in release mode
- document that n_cells is not used

include/deal.II/grid/grid_generator.h
source/grid/grid_generator.cc

index 4c8e04ab733c435a6d24aac08258fe423a70a9b4..9d33ae87e287bcf8f6f6cacccb294371cc8775c1 100644 (file)
@@ -1063,9 +1063,10 @@ namespace GridGenerator
    * rotational symmetry, in which case the half shell in 2d represents a
    * shell in 3d.
    *
-   * If the number of initial cells is zero (as is the default), then it is
-   * computed adaptively such that the resulting elements have the least
-   * aspect ratio.
+   * If the number of initial cells @p n_cells is zero in 2d (as is the
+   * default), then it is computed adaptively such that the resulting elements
+   * have the least aspect ratio. The argument is ignored in 3d, where the
+   * coarse mesh always has 5 cells.
    *
    * If colorize is set to <code>true</code>, the inner, outer, and the part
    * of the boundary where $x=0$, get indicator 0, 1, and 2,
index 99b9a09ec7919f159ffe2b7e5e018ec13efc7d45..4962ec7668fa46ea7536e6e0ab55ecf9a68a9c27 100644 (file)
@@ -5484,16 +5484,15 @@ namespace GridGenerator
 
   // Implementation for 3D only
   template <>
-  void half_hyper_shell(Triangulation<3> & tria,
-                        const Point<3> &   center,
-                        const double       inner_radius,
-                        const double       outer_radius,
-                        const unsigned int n,
-                        const bool         colorize)
+  void half_hyper_shell(Triangulation<3> &tria,
+                        const Point<3> &  center,
+                        const double      inner_radius,
+                        const double      outer_radius,
+                        const unsigned int /*n_cells*/,
+                        const bool colorize)
   {
     Assert((inner_radius > 0) && (inner_radius < outer_radius),
            ExcInvalidRadii());
-    AssertIndexRange(n, 5);
 
     // These are for the two lower squares
     const double d = outer_radius / std::sqrt(2.0);

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.