dune-grid
2.1.1
|
#include <dune/grid/geometrygrid/grid.hh>
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 |
typedef DuneCoordTraits< typename HostGrid::ctype > Dune::GenericGeometry::GlobalGeometryTraits< GeometryGrid< HostGrid, CoordFunction, Allocator > >::CoordTraits |
types needed in matrix-vector operations
Reimplemented from Dune::GenericGeometry::DefaultGeometryTraits< HostGrid::ctype, HostGrid::dimension, CoordFunction::dimRange >.
typedef GeometryGrid< HostGrid, CoordFunction, Allocator > Dune::GenericGeometry::GlobalGeometryTraits< GeometryGrid< HostGrid, CoordFunction, Allocator > >::Grid |
typedef GeoGrid::IntersectionCoordVector< const Grid > Dune::GenericGeometry::GlobalGeometryTraits< GeometryGrid< HostGrid, CoordFunction, Allocator > >::IntersectionCoordVector |
const int Dune::GenericGeometry::GlobalGeometryTraits< GeometryGrid< HostGrid, CoordFunction, Allocator > >::dimGrid = HostGrid::dimension [static] |
dimension of the grid
Reimplemented from Dune::GenericGeometry::DefaultGeometryTraits< HostGrid::ctype, HostGrid::dimension, CoordFunction::dimRange >.
const int Dune::GenericGeometry::GlobalGeometryTraits< GeometryGrid< HostGrid, CoordFunction, Allocator > >::dimWorld = CoordFunction::dimRange [static] |
dimension of the world
Reimplemented from Dune::GenericGeometry::DefaultGeometryTraits< HostGrid::ctype, HostGrid::dimension, CoordFunction::dimRange >.
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 >.
const unsigned int Dune::GenericGeometry::GlobalGeometryTraits< GeometryGrid< HostGrid, CoordFunction, Allocator > >::topologyId = Capabilities::hasSingleGeometryType< HostGrid >::topologyId [static] |