From: guido Date: Wed, 10 Mar 1999 12:38:52 +0000 (+0000) Subject: quads_per_face added X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85d4cfe4b65c876b8ee78fcf89ed37e168ce1acb;p=dealii-svn.git quads_per_face added git-svn-id: https://svn.dealii.org/trunk@985 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/include/grid/geometry_info.h b/deal.II/deal.II/include/grid/geometry_info.h index ab243ab2bf..c112cf6945 100644 --- a/deal.II/deal.II/include/grid/geometry_info.h +++ b/deal.II/deal.II/include/grid/geometry_info.h @@ -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; i1) ? 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; i1) ? 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.