Dune::GenericGeometry::GlobalGeometryTraits< GeometryGrid< HostGrid, CoordFunction, Allocator > > Struct Template Reference

#include <dune/grid/geometrygrid/grid.hh>

Inheritance diagram for Dune::GenericGeometry::GlobalGeometryTraits< GeometryGrid< HostGrid, CoordFunction, Allocator > >:
Inheritance graph

List of all members.

Classes

struct  Caching
struct  Codim
struct  Mapping

Public Types

typedef GeometryGrid< HostGrid,
CoordFunction, Allocator > 
Grid
typedef DuneCoordTraits
< typename HostGrid::ctype > 
CoordTraits
 types needed in matrix-vector operations
typedef
GeoGrid::IntersectionCoordVector
< const Grid
IntersectionCoordVector

Static Public Attributes

static const int dimGrid = HostGrid::dimension
 dimension of the grid
static const int dimWorld = CoordFunction::dimRange
 dimension of the world
static const bool hybrid = !Capabilities::hasSingleGeometryType< HostGrid >::v
 may the grid contain elements of different type?
static const unsigned int topologyId = Capabilities::hasSingleGeometryType< HostGrid >::topologyId

template<class HostGrid, class CoordFunction, class Allocator>
struct Dune::GenericGeometry::GlobalGeometryTraits< GeometryGrid< HostGrid, CoordFunction, Allocator > >


Member Typedef Documentation

template<class HostGrid , class CoordFunction , class Allocator >
typedef DuneCoordTraits< typename HostGrid::ctype > Dune::GenericGeometry::GlobalGeometryTraits< GeometryGrid< HostGrid, CoordFunction, Allocator > >::CoordTraits
template<class HostGrid , class CoordFunction , class Allocator >
typedef GeometryGrid< HostGrid, CoordFunction, Allocator > Dune::GenericGeometry::GlobalGeometryTraits< GeometryGrid< HostGrid, CoordFunction, Allocator > >::Grid
template<class HostGrid , class CoordFunction , class Allocator >
typedef GeoGrid::IntersectionCoordVector< const Grid > Dune::GenericGeometry::GlobalGeometryTraits< GeometryGrid< HostGrid, CoordFunction, Allocator > >::IntersectionCoordVector

Member Data Documentation

template<class HostGrid , class CoordFunction , class Allocator >
const int Dune::GenericGeometry::GlobalGeometryTraits< GeometryGrid< HostGrid, CoordFunction, Allocator > >::dimGrid = HostGrid::dimension [static]
template<class HostGrid , class CoordFunction , class Allocator >
const int Dune::GenericGeometry::GlobalGeometryTraits< GeometryGrid< HostGrid, CoordFunction, Allocator > >::dimWorld = CoordFunction::dimRange [static]
template<class HostGrid , class CoordFunction , class Allocator >
const bool Dune::GenericGeometry::GlobalGeometryTraits< GeometryGrid< HostGrid, CoordFunction, Allocator > >::hybrid = !Capabilities::hasSingleGeometryType< HostGrid >::v [static]

may the grid contain elements of different type?

If the elements (entities of codimension 0) may differ in topology type, the grid is called hybrid (and this parameter must be set to true). In this case, all methods of the geometry implementation are virtual (but no other branching for topology type is used).

If the grid is non-hybrid, hybrid can be set to false. In this case, virtual methods are not necessary and, hence, the geometries are a little faster.

If hybrid is set to false, an additional parameter topologyId is required. It specifies the topological type of all elements in the grid. Here's an example:

  static const unsigned int topologyId = SimplexTopology< dimGrid >::type::id;

Reimplemented from Dune::GenericGeometry::DefaultGeometryTraits< HostGrid::ctype, HostGrid::dimension, CoordFunction::dimRange >.

template<class HostGrid , class CoordFunction , class Allocator >
const unsigned int Dune::GenericGeometry::GlobalGeometryTraits< GeometryGrid< HostGrid, CoordFunction, Allocator > >::topologyId = Capabilities::hasSingleGeometryType< HostGrid >::topologyId [static]

The documentation for this struct was generated from the following file:

Generated on Fri Apr 29 2011 with Doxygen (ver 1.7.1) [doxygen-log,error-log].