From: Guido Kanschat Date: Sun, 21 May 2000 13:41:24 +0000 (+0000) Subject: new colors for enclosed square X-Git-Tag: v8.0.0~20492 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57abf5b04da50f7be9e15a9885e50521e7c9ff96;p=dealii.git new colors for enclosed square git-svn-id: https://svn.dealii.org/trunk@2913 0785d39b-7218-0410-832d-ea1e28bc413d --- 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);