5#ifndef DUNE_GRID_HOSTGRIDACCESS_HH
6#define DUNE_GRID_HOSTGRIDACCESS_HH
18 template<
class HostGr
id,
class CoordFunction,
class Allocator >
28 template<
class Gr
id >
29 struct HostGridAccess;
40 template<
class HG,
class CoordFunction,
class Allocator >
86 template<
class Entity >
87 static const typename Codim< Entity::codimension >::HostEntity &
90 return hostEntity< Entity::codimension >( entity );
94 static const typename Codim< codim >::HostEntity &
97 return entity.impl().hostEntity();
100 template<
class HostIntersection >
101 static const HostIntersection &
104 return intersection.impl().hostIntersection();
133 template<
int codim >
162 template<
class Entity >
163 static const typename Codim< Entity::codimension >::HostEntity &
166 return hostEntity< Entity::codimension >( entity );
169 template<
int codim >
170 static const typename Codim< codim >::HostEntity &
173 return *entity.impl().hostEntity_;
176 static const HostLeafIntersection &
179 return *intersection.impl().hostIterator_;
182 static const HostLevelIntersection &
185 return *intersection.impl().hostIterator_;
Include standard header files.
Definition: agrid.hh:60
Intersection of a mesh entity of codimension 0 ("element") with a "neighboring" element or with the d...
Definition: common/intersection.hh:164
Wrapper class for entities.
Definition: common/entity.hh:66
GridFamily::Traits::LeafIntersection LeafIntersection
A type that is a model of Dune::Intersection, an intersections of two codimension 1 of two codimensio...
Definition: common/grid.hh:456
GridFamily::Traits::LevelIntersection LevelIntersection
A type that is a model of Dune::Intersection, an intersections of two codimension 1 of two codimensio...
Definition: common/grid.hh:461
grid wrapper replacing the geometries
Definition: geometrygrid/grid.hh:86
const HostGrid & hostGrid() const
obtain constant reference to the host grid
Definition: geometrygrid/grid.hh:538
Definition: geometrygrid/intersection.hh:22
Provides a meta grid that is identical to its host.
Definition: identitygrid.hh:88
HostGridType & getHostGrid() const
Returns the hostgrid this IdentityGrid lives in.
Definition: identitygrid.hh:394
provides access to host grid objects from GeometryGrid
Definition: identitygrid.hh:37
Grid::HostGrid HostGrid
type of HostGrid
Definition: hostgridaccess.hh:49
HostGrid::Traits::LevelIntersection HostLevelIntersection
type of the host level intersection
Definition: hostgridaccess.hh:75
static const Codim< Entity::codimension >::HostEntity & hostEntity(const Entity &entity)
Definition: hostgridaccess.hh:88
static const Codim< codim >::HostEntity & hostEntity(const typename Codim< codim >::Entity &entity)
Definition: hostgridaccess.hh:95
static const HostIntersection & hostIntersection(const Intersection< const Grid, GeoGrid::Intersection< const Grid, HostIntersection > > &intersection)
Definition: hostgridaccess.hh:102
GeometryGrid< HG, CoordFunction, Allocator > Grid
Definition: hostgridaccess.hh:46
Grid::Traits::LeafIntersection LeafIntersection
type of the GeometryGrid leaf intersection
Definition: hostgridaccess.hh:68
HostGrid::Traits::LeafIntersection HostLeafIntersection
type of the host leaf intersection
Definition: hostgridaccess.hh:73
static const HostGrid & hostGrid(const Grid &grid)
Get underlying HostGrid.
Definition: hostgridaccess.hh:81
Grid::Traits::LevelIntersection LevelIntersection
type of the GeometryGrid level intersection
Definition: hostgridaccess.hh:70
HostGrid::template Codim< codim >::Entity HostEntity
type of the host entity
Definition: hostgridaccess.hh:64
Grid::template Codim< codim >::Entity Entity
type of the GeometryGrid entity
Definition: hostgridaccess.hh:61
Grid::Traits::LeafIntersection LeafIntersection
type of the IdGrid leaf intersection
Definition: hostgridaccess.hh:144
HG HostGrid
type of HostGrid
Definition: hostgridaccess.hh:125
IdentityGrid< HG > Grid
Definition: hostgridaccess.hh:122
static const Codim< codim >::HostEntity & hostEntity(const typename Codim< codim >::Entity &entity)
Definition: hostgridaccess.hh:171
HostGrid::Traits::LevelIntersection HostLevelIntersection
type of the host level intersection
Definition: hostgridaccess.hh:151
Grid::Traits::LevelIntersection LevelIntersection
type of the IdGrid level intersection
Definition: hostgridaccess.hh:146
static const HostLeafIntersection & hostIntersection(const LeafIntersection &intersection)
Definition: hostgridaccess.hh:177
HostGrid::Traits::LeafIntersection HostLeafIntersection
type of the host leaf intersection
Definition: hostgridaccess.hh:149
static const Codim< Entity::codimension >::HostEntity & hostEntity(const Entity &entity)
Definition: hostgridaccess.hh:164
static const HostLevelIntersection & hostIntersection(const LevelIntersection &intersection)
Definition: hostgridaccess.hh:183
static const HostGrid & hostGrid(const Grid &grid)
Get underlying HostGrid.
Definition: hostgridaccess.hh:157
Grid::template Codim< codim >::Entity Entity
type of the IdGrid entity
Definition: hostgridaccess.hh:137
HostGrid::template Codim< codim >::Entity HostEntity
type of the host entity
Definition: hostgridaccess.hh:140