]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
quads_per_face added
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 10 Mar 1999 12:38:52 +0000 (12:38 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 10 Mar 1999 12:38:52 +0000 (12:38 +0000)
git-svn-id: https://svn.dealii.org/trunk@985 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/grid/geometry_info.h

index ab243ab2bfc192e87aa73a6cb20972b6629c62db..c112cf694585a2fd0a4872f38504a05cd5cafbfc 100644 (file)
@@ -19,6 +19,7 @@ struct GeometryInfo<0>
     static const unsigned int lines_per_cell = 0;
     static const unsigned int quads_per_cell = 0;
     static const unsigned int hexes_per_cell = 0;
+    static const unsigned int children_per_cell = 0;
 };
 
 
@@ -59,7 +60,7 @@ struct GeometryInfo
                                      * Number of children each face has
                                      * when the adjacent cell is refined.
                                      */
-    static const unsigned int subfaces_per_face = ((_dim>1) ? GeometryInfo<_dim-1>::children_per_cell : 0);
+    static const unsigned int subfaces_per_face = GeometryInfo<_dim-1>::children_per_cell;
 
                                     /**
                                      * Number of vertices a cell has.
@@ -75,19 +76,17 @@ struct GeometryInfo
                                      * #for (i=0; i<vertices_per_face; ++i)#,
                                      * at least if #i# is an #unsigned int#.
                                      */
-    static const unsigned int vertices_per_face = ((_dim>1) ? GeometryInfo<_dim-1>::vertices_per_cell : 0);
+    static const unsigned int vertices_per_face = GeometryInfo<_dim-1>::vertices_per_cell;
 
                                     /**
                                      * Number of lines each face has.
-                                     * Since this is not useful in one
-                                     * dimension, we provide a useless
-                                     * number (in the hope that a compiler
-                                     * may warn when it sees constructs like
-                                     * #for (i=0; i<lines_per_face; ++i)#,
-                                     * at least if #i# is an #unsigned int#.
                                      */
-    static const unsigned int lines_per_face = ((_dim>1) ? GeometryInfo<_dim-1>::lines_per_cell : 0);
+    static const unsigned int lines_per_face = GeometryInfo<_dim-1>::lines_per_cell;
     
+                                    /**
+                                     * Number of quads on each face.
+                                     */
+    static const unsigned int quads_per_face = GeometryInfo<_dim-1>::quads_per_cell;
 
                                     /**
                                      * Number of lines of a cell.

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.