From: wolf Date: Wed, 17 Feb 1999 17:29:10 +0000 (+0000) Subject: More recursion for easy reading, as well as new field X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9428239f1def1edafb4bb16623ebafe924ad3959;p=dealii-svn.git More recursion for easy reading, as well as new field 'liens_per_face'. git-svn-id: https://svn.dealii.org/trunk@835 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 0be10a79d3..ab243ab2bf 100644 --- a/deal.II/deal.II/include/grid/geometry_info.h +++ b/deal.II/deal.II/include/grid/geometry_info.h @@ -59,7 +59,7 @@ struct GeometryInfo * Number of children each face has * when the adjacent cell is refined. */ - static const unsigned int subfaces_per_face = ((_dim>1) ? (1<<(_dim-1)) : 0); + static const unsigned int subfaces_per_face = ((_dim>1) ? GeometryInfo<_dim-1>::children_per_cell : 0); /** * Number of vertices a cell has. @@ -75,8 +75,19 @@ struct GeometryInfo * #for (i=0; i1) ? (1<<(_dim-1)) : 0); + static const unsigned int vertices_per_face = ((_dim>1) ? GeometryInfo<_dim-1>::vertices_per_cell : 0); + /** + * 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); + /** * Number of lines of a cell.