From cb6d2e6016402f8287a7df2ce1519612ca1b9c23 Mon Sep 17 00:00:00 2001 From: guido Date: Sun, 21 May 2000 13:41:24 +0000 Subject: [PATCH] new colors for enclosed square git-svn-id: https://svn.dealii.org/trunk@2913 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/include/grid/grid_generator.h | 4 ++-- deal.II/deal.II/source/grid/grid_generator.cc | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/deal.II/deal.II/include/grid/grid_generator.h b/deal.II/deal.II/include/grid/grid_generator.h index 9675c23bac..45d895607f 100644 --- a/deal.II/deal.II/include/grid/grid_generator.h +++ b/deal.II/deal.II/include/grid/grid_generator.h @@ -122,8 +122,8 @@ class GridGenerator * id's according tho the * following scheme: extending * over the inner cube in - * x-direction: 2. In y-direction - * 4, in z-direction 8. The cells + * (+/-) x-direction: 1/2. In y-direction + * 4/8, in z-direction 16/32. The cells * at corners and edges (3d) get * these values bitwise or'd. */ diff --git a/deal.II/deal.II/source/grid/grid_generator.cc b/deal.II/deal.II/source/grid/grid_generator.cc index e0cad384a8..d5690361fc 100644 --- a/deal.II/deal.II/source/grid/grid_generator.cc +++ b/deal.II/deal.II/source/grid/grid_generator.cc @@ -114,9 +114,9 @@ void GridGenerator::enclosed_hyper_cube (Triangulation<2> &tria, for (unsigned int i1=0;i1<4;++i1) vertices[k++] = Point<2>(coords[i1], coords[i0]); - const unsigned char materials[9] = { 6,4,6, - 2,0,2, - 6,4,6 + const unsigned char materials[9] = { 5, 4, 6, + 1, 0, 2, + 9, 8,10 }; vector > cells(9); -- 2.39.5