]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
new colors for enclosed square
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 21 May 2000 13:41:24 +0000 (13:41 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 21 May 2000 13:41:24 +0000 (13:41 +0000)
git-svn-id: https://svn.dealii.org/trunk@2913 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/grid/grid_generator.h
deal.II/deal.II/source/grid/grid_generator.cc

index 9675c23bac8f78dc6703db4e7c2e59672c305b9b..45d895607f30ac83d0c3d1bf7547a6e0368f98f8 100644 (file)
@@ -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.
                                      */
index e0cad384a8ce829b66bd33190613930d09905d3b..d5690361fc32542f1b5ac13b0133cfe7c1bd05d0 100644 (file)
@@ -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<CellData<2> > cells(9);

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.