4 #ifndef DUNE_GEOMETRY_GENERICGEOMETRY_REFERENCEELEMENTS_HH
5 #define DUNE_GEOMETRY_GENERICGEOMETRY_REFERENCEELEMENTS_HH
11 #include <dune/common/array.hh>
12 #include <dune/common/fvector.hh>
13 #include <dune/common/typetraits.hh>
14 #include <dune/common/visibility.hh>
21 namespace GenericGeometry
27 template<
class Topology,
class ctype >
38 template<
unsigned int codim >
44 template<
unsigned int codim,
unsigned int subcodim >
45 static unsigned int subNumbering (
unsigned int i,
unsigned int j )
50 template<
unsigned int codim,
unsigned int subcodim >
51 static unsigned int size (
unsigned int i )
58 static const FieldVector< ctype, dimension > &
94 class BaryCenterArray;
100 for(
unsigned int i = 0; i <
numNormals; ++i )
109 for(
unsigned int k = 0; k <
numCorners; ++k )
111 unsigned int j = Numbering :: number( 0, k );
117 baryCenter_ *= ctype( 1 ) / ctype( numCorners );
120 Dune::array< CoordinateType, numCorners > corners_;
122 Dune::array< CoordinateType, numNormals > normals_;
129 #endif // DUNE_GEOMETRY_GENERICGEOMETRY_REFERENCEELEMENTS_HH