From e3e31199eef14c29b9733924e284626359917df2 Mon Sep 17 00:00:00 2001 From: wolf Date: Thu, 7 Jul 2005 15:20:51 +0000 Subject: [PATCH] Let the compiler generate all the data for the 4d case itself recursively. git-svn-id: https://svn.dealii.org/trunk@11098 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/include/grid/geometry_info.h | 90 ++------------------ 1 file changed, 5 insertions(+), 85 deletions(-) diff --git a/deal.II/deal.II/include/grid/geometry_info.h b/deal.II/deal.II/include/grid/geometry_info.h index 9378e244c6..3592c2b8c4 100644 --- a/deal.II/deal.II/include/grid/geometry_info.h +++ b/deal.II/deal.II/include/grid/geometry_info.h @@ -107,86 +107,6 @@ struct GeometryInfo<0> -/** - * Topological description of four dimensional cells. This class is - * required in some exotic cases where we compute information in a - * one-larger dimension than the present, and do so also in 3d (for - * example, stacking the solutions of a d-dimensional time dependent - * equation timestep after timestep in a (d+1)-dimensional space). - * - * This class contains as static members information on vertices and - * faces of a @p dim-dimensional grid cell. The interface is the same - * for all dimensions. If a value is of no use in a low dimensional - * cell, it is (correctly) set to zero, e.g. @p subfaces_per_cell in - * 1d. - * - * This information should always replace hard-coded numbers of - * vertices, neighbors and so on, since it can be used dimension - * independently. - * - * @author Wolfgang Bangerth, 1998 - */ -template <> -struct GeometryInfo<4> -{ - - /** - * Number of children a cell has. - */ - static const unsigned int children_per_cell = 16; - - /** - * Number of faces a cell has. - */ - static const unsigned int faces_per_cell = 8; - - /** - * Number of children each face has - * when the adjacent cell is refined. - */ - static const unsigned int subfaces_per_face = 8; - - /** - * Number of vertices a cell has. - */ - static const unsigned int vertices_per_cell = 16; - - /** - * Number of vertices each face - * has. - */ - static const unsigned int vertices_per_face = 8; - - /** - * Number of lines each face has. - */ - static const unsigned int lines_per_face = 12; - - /** - * Number of quads on each face. - */ - static const unsigned int quads_per_face = 6; - - /** - * Number of lines of a cell. - */ - static const unsigned int lines_per_cell = 32; - - /** - * Number of quadrilaterals of a - * cell. - */ - static const unsigned int quads_per_cell = 24; - - /** - * Number of hexahedra of a - * cell. - */ - static const unsigned int hexes_per_cell = 8; -}; - - - /** * This template specifies the interface to all topological structure * of the mesh cells. This template class can be instantiated for @@ -276,11 +196,11 @@ struct GeometryInfo GeometryInfo::quads_per_cell); /** - * List of numbers which - * denotes which face is opposite - * to a given face. In 1d, this - * list is {1,0}, in 2d {2, 3, 0, 1}, - * in 3d {1, 0, 4, 5, 2, 3}. + * List of numbers which denotes which + * face is opposite to a given face. In + * 1d, this list is {1,0}, in 2d + * {2, 3, 0, 1}, in 3d {1, + * 0, 4, 5, 2, 3}. */ static const unsigned int opposite_face[faces_per_cell]; -- 2.39.5