3 #ifndef DUNE_GRID_HOSTGRIDACCESS_HH
4 #define DUNE_GRID_HOSTGRIDACCESS_HH
16 template<
class HostGr
id,
class CoordFunction,
class Allocator >
26 template<
class Gr
id >
27 struct HostGridAccess;
38 template<
class HG,
class CoordFunction,
class Allocator >
83 static const HostGrid &
hostGrid (
const Grid &grid )
88 template<
class Entity >
89 static const typename Codim< Entity::codimension >::HostEntity &
92 return hostEntity< Entity::codimension >( entity );
96 static const typename Codim< codim >::HostEntity &
99 return Grid::getRealImplementation( entity ).hostEntity();
102 template<
class HostIntersection >
103 static const HostIntersection &
106 return Grid::getRealImplementation( intersection ).hostIntersection();
135 template<
int codim >
163 static const HostGrid &
hostGrid (
const Grid &grid )
168 template<
class Entity >
169 static const typename Codim< Entity::codimension >::HostEntity &
172 return hostEntity< Entity::codimension >( entity );
175 template<
int codim >
176 static const typename Codim< codim >::HostEntity &
179 return *Grid::getRealImplementation( entity ).hostEntity_;
182 static const HostLeafIntersection &
185 return *Grid::getRealImplementation( intersection ).hostIterator_;
188 static const HostLevelIntersection &
191 return *Grid::getRealImplementation( intersection ).hostIterator_;
197 #endif // #ifndef DUNE_GRID_HOSTGRIDACCESS_HH
Intersection of a mesh entities of codimension 0 ("elements") with a "neighboring" element or with th...
Definition: albertagrid/dgfparser.hh:26
HostGrid::template Codim< codim >::Entity HostEntity
type of the host entity
Definition: hostgridaccess.hh:144
HostGrid::Traits::LeafIntersection HostLeafIntersection
type of the host leaf intersection
Definition: hostgridaccess.hh:75
HostGrid::Traits::LeafIntersection HostLeafIntersection
type of the host leaf intersection
Definition: hostgridaccess.hh:155
Grid::template Codim< codim >::Entity Entity
type of the IdGrid entity
Definition: hostgridaccess.hh:139
Grid::Traits::LevelIntersection LevelIntersection
type of the IdGrid level intersection
Definition: hostgridaccess.hh:152
Wrapper class for entities.
Definition: common/entity.hh:61
Definition: geometrygrid/intersection.hh:19
static const HostLevelIntersection & hostIntersection(const LevelIntersection &intersection)
Definition: hostgridaccess.hh:189
Grid::Traits::LeafIntersection LeafIntersection
type of the IdGrid leaf intersection
Definition: hostgridaccess.hh:150
HostGrid::Traits::LevelIntersection HostLevelIntersection
type of the host level intersection
Definition: hostgridaccess.hh:157
provides access to host grid objects from GeometryGrid
Definition: identitygrid.hh:37
Grid::template Codim< codim >::EntityPointer EntityPointer
type of the IdGrid entity pointer
Definition: hostgridaccess.hh:141
static const HostIntersection & hostIntersection(const Intersection< const Grid, GeoGrid::Intersection< const Grid, HostIntersection > > &intersection)
Definition: hostgridaccess.hh:104
grid wrapper replacing the geometriesGeometryGrid wraps another DUNE grid and replaces its geometry b...
Definition: geometrygrid/declaration.hh:10
HostGrid::template Codim< codim >::EntityPointer HostEntityPointer
type of the host entity pointer
Definition: hostgridaccess.hh:66
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:491
static const Codim< codim >::HostEntity & hostEntity(const typename Codim< codim >::Entity &entity)
Definition: hostgridaccess.hh:97
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:486
Grid::Traits::LevelIntersection LevelIntersection
type of the GeometryGrid level intersection
Definition: hostgridaccess.hh:72
Grid::template Codim< codim >::EntityPointer EntityPointer
type of the GeometryGrid entity pointer
Definition: hostgridaccess.hh:61
Provides a meta grid that is identical to its host.
Definition: identitygrid.hh:33
Grid::Traits::LeafIntersection LeafIntersection
type of the GeometryGrid leaf intersection
Definition: hostgridaccess.hh:70
static const HostLeafIntersection & hostIntersection(const LeafIntersection &intersection)
Definition: hostgridaccess.hh:183
GeometryGrid< HG, CoordFunction, Allocator > Grid
Definition: hostgridaccess.hh:44
HostGrid::Traits::LevelIntersection HostLevelIntersection
type of the host level intersection
Definition: hostgridaccess.hh:77
static const Codim< codim >::HostEntity & hostEntity(const typename Codim< codim >::Entity &entity)
Definition: hostgridaccess.hh:177
IdentityGrid< HG > Grid
Definition: hostgridaccess.hh:124
static const HostGrid & hostGrid(const Grid &grid)
Get underlying HostGrid.
Definition: hostgridaccess.hh:163
HG HostGrid
type of HostGrid
Definition: hostgridaccess.hh:127
static const Codim< Entity::codimension >::HostEntity & hostEntity(const Entity &entity)
Definition: hostgridaccess.hh:90
static const Codim< Entity::codimension >::HostEntity & hostEntity(const Entity &entity)
Definition: hostgridaccess.hh:170
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:59
Grid::HostGrid HostGrid
type of HostGrid
Definition: hostgridaccess.hh:47
HostGrid::template Codim< codim >::EntityPointer HostEntityPointer
type of the host entity pointer
Definition: hostgridaccess.hh:146
HostGridType & getHostGrid() const
Returns the hostgrid this IdentityGrid lives in.
Definition: identitygrid.hh:491
Include standard header files.
Definition: agrid.hh:59
const HostGrid & hostGrid() const
Definition: geometrygrid/grid.hh:629
static const HostGrid & hostGrid(const Grid &grid)
Get underlying HostGrid.
Definition: hostgridaccess.hh:83