From 2e763dddefafe6c458cf056a324e69e4f302abf6 Mon Sep 17 00:00:00 2001 From: Guido Kanschat Date: Thu, 11 Nov 2010 18:22:14 +0000 Subject: [PATCH] avoid another problem in 1D git-svn-id: https://svn.dealii.org/trunk@22691 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/grid/grid_generator.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deal.II/source/grid/grid_generator.cc b/deal.II/source/grid/grid_generator.cc index 71ac661a7b..7cacf890ad 100644 --- a/deal.II/source/grid/grid_generator.cc +++ b/deal.II/source/grid/grid_generator.cc @@ -129,7 +129,7 @@ GridGenerator::hyper_rectangle (Triangulation &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::cell_iterator cell = tria.begin_raw(), -- 2.39.5