]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid a pointless comparison. 3436/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 3 Nov 2016 17:55:03 +0000 (11:55 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 3 Nov 2016 17:55:03 +0000 (11:55 -0600)
The function works in 3d, so checking for 'dim>1' makes no difference.

source/grid/grid_generator.cc

index dad0f4a50a45f14b8979d02338bc7175e8fa89fe..6e4b71bbe0cf442e50f52ad30e94340ec16ed529 100644 (file)
@@ -1737,7 +1737,7 @@ namespace GridGenerator
     tria.create_triangulation (points, cells, t);
 
     // set boundary indicator
-    if (colorize && dim>1)
+    if (colorize)
       {
         double eps = 0.01 * delta;
         Triangulation<dim>::cell_iterator cell = tria.begin(),

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.