]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
avoid another problem in 1D
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 11 Nov 2010 18:22:14 +0000 (18:22 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 11 Nov 2010 18:22:14 +0000 (18:22 +0000)
git-svn-id: https://svn.dealii.org/trunk@22691 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/grid/grid_generator.cc

index 71ac661a7be1437fa6c4043aaf7ed75852c2aa7c..7cacf890ad6505b2095b9021a3e5beb09a4dffb7 100644 (file)
@@ -129,7 +129,7 @@ GridGenerator::hyper_rectangle (Triangulation<dim,spacedim> &tria,
   tria.create_triangulation (vertices, cells, SubCellData());
 
                                   // Assign boundary indicators
-  if (colorize && (spacedim == dim))
+  if (colorize)
     colorize_hyper_rectangle (tria);
 }
 
@@ -995,7 +995,7 @@ GridGenerator::subdivided_hyper_rectangle (
   tria.create_triangulation (points, cells, t);
 
                                   // set boundary indicator
-  if (colorize)
+  if (colorize && dim>1)
     {
       double eps = 0.01 * delta;
       Triangulation<dim>::cell_iterator cell = tria.begin_raw(),

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.