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 >
92 return hostEntity< Entity::codimension >( entity );
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 >
172 return hostEntity< Entity::codimension >( entity );
175 template<
int codim >
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 HostGrid::Traits::LeafIntersection HostLeafIntersection
type of the host leaf intersection
Definition: hostgridaccess.hh:75
Grid::Traits::LeafIntersection LeafIntersection
type of the IdGrid leaf intersection
Definition: hostgridaccess.hh:150
Intersection of a mesh entities of codimension 0 ("elements") with a "neighboring" element or with th...
Definition: albertagrid/dgfparser.hh:26
HostGridType & getHostGrid() const
Returns the hostgrid this IdentityGrid lives in.
Definition: identitygrid.hh:491
static const HostLevelIntersection & hostIntersection(const LevelIntersection &intersection)
Definition: hostgridaccess.hh:189
HostGrid::template Codim< codim >::Entity HostEntity
type of the host entity
Definition: hostgridaccess.hh:64
const HostGrid & hostGrid() const
Definition: geometrygrid/grid.hh:629
HostGrid::Traits::LeafIntersection HostLeafIntersection
type of the host leaf intersection
Definition: hostgridaccess.hh:155
Grid::Traits::LevelIntersection LevelIntersection
type of the GeometryGrid level intersection
Definition: hostgridaccess.hh:72
HostGrid::template Codim< codim >::Entity HostEntity
type of the host entity
Definition: hostgridaccess.hh:144
Grid::Traits::LeafIntersection LeafIntersection
type of the GeometryGrid leaf intersection
Definition: hostgridaccess.hh:70
Wrapper class for entities.
Definition: common/entity.hh:61
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
HostGrid::Traits::LevelIntersection HostLevelIntersection
type of the host level intersection
Definition: hostgridaccess.hh:157
static const Codim< codim >::HostEntity & hostEntity(const typename Codim< codim >::Entity &entity)
Definition: hostgridaccess.hh:97
static const HostGrid & hostGrid(const Grid &grid)
Get underlying HostGrid.
Definition: hostgridaccess.hh:83
HG HostGrid
type of HostGrid
Definition: hostgridaccess.hh:127
static const Codim< Entity::codimension >::HostEntity & hostEntity(const Entity &entity)
Definition: hostgridaccess.hh:90
HostGrid::template Codim< codim >::EntityPointer HostEntityPointer
type of the host entity pointer
Definition: hostgridaccess.hh:146
grid wrapper replacing the geometriesGeometryGrid wraps another DUNE grid and replaces its geometry b...
Definition: geometrygrid/declaration.hh:10
Grid::template Codim< codim >::Entity Entity
type of the GeometryGrid entity
Definition: hostgridaccess.hh:59
Grid::template Codim< codim >::EntityPointer EntityPointer
type of the IdGrid entity pointer
Definition: hostgridaccess.hh:141
provides access to host grid objects from GeometryGrid
Definition: identitygrid.hh:37
static const HostLeafIntersection & hostIntersection(const LeafIntersection &intersection)
Definition: hostgridaccess.hh:183
Grid::HostGrid HostGrid
type of HostGrid
Definition: hostgridaccess.hh:47
GeometryGrid< HG, CoordFunction, Allocator > Grid
Definition: hostgridaccess.hh:44
Grid::Traits::LevelIntersection LevelIntersection
type of the IdGrid level intersection
Definition: hostgridaccess.hh:152
static const HostGrid & hostGrid(const Grid &grid)
Get underlying HostGrid.
Definition: hostgridaccess.hh:163
HostGrid::Traits::LevelIntersection HostLevelIntersection
type of the host level intersection
Definition: hostgridaccess.hh:77
Definition: geometrygrid/intersection.hh:19
HostGrid::template Codim< codim >::EntityPointer HostEntityPointer
type of the host entity pointer
Definition: hostgridaccess.hh:66
Include standard header files.
Definition: agrid.hh:59
static const HostIntersection & hostIntersection(const Intersection< const Grid, GeoGrid::Intersection< const Grid, HostIntersection > > &intersection)
Definition: hostgridaccess.hh:104
IdentityGrid< HG > Grid
Definition: hostgridaccess.hh:124
Grid::template Codim< codim >::Entity Entity
type of the IdGrid entity
Definition: hostgridaccess.hh:139
static const Codim< Entity::codimension >::HostEntity & hostEntity(const Entity &entity)
Definition: hostgridaccess.hh:170
static const Codim< codim >::HostEntity & hostEntity(const typename Codim< codim >::Entity &entity)
Definition: hostgridaccess.hh:177
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
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