]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove auto as typename, added comment for dimensional problem
authorNicola Demo <demo.nicola@gmail.com>
Wed, 23 Mar 2016 12:07:25 +0000 (13:07 +0100)
committerNicola Demo <demo.nicola@gmail.com>
Wed, 23 Mar 2016 12:07:25 +0000 (13:07 +0100)
include/deal.II/grid/grid_generator.h
source/grid/grid_generator.cc

index 93c4075f93843ea76b577535ed172c5e89eb4f59..ddc2f0deb1f13a5ef07803a7c86a065ce3bf4790 100644 (file)
@@ -575,9 +575,9 @@ namespace GridGenerator
    * the interval [<i>(left+right)/2,right</i>] for each coordinate. If the
    * @p colorize flag is set, the @p boundary_ids of the surfaces are
    * assigned, such that the left boundary is 0, and the others are set with
-   * growing number accordingly to the counterclockwise. This function will
-   * create the classical L-shape in 2d and it will look like the following
-   * in 3d:
+   * growing number accordingly to the counterclockwise. Colorize option works
+   * only with 2-dimensional problem. This function will create the classical 
+   * L-shape in 2d and it will look like the following in 3d:
    *
    * @image html hyper_l.png
    *
index f74d6f98b3b8f6d86eeff79b604c9af44e849e4f..76cf1562d7b210a929c1fb280df667d30f6820ae 100644 (file)
@@ -350,7 +350,6 @@ namespace GridGenerator
         p1(i) = std::min(p_1(i), p_2(i));
         p2(i) = std::max(p_1(i), p_2(i));
       }
-    //
 
     std::vector<Point<spacedim> > vertices (GeometryInfo<dim>::vertices_per_cell);
     switch (dim)
@@ -2114,7 +2113,7 @@ namespace GridGenerator
 
     if (colorize)
       {
-        auto cell = tria.begin();
+        typename Triangulation<2>::cell_iterator cell = tria.begin();
 
         cell->face(0)->set_boundary_id(0);
         cell->face(2)->set_boundary_id(1);

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.