5#ifndef DUNE_GRID_YASPGRIDGEOMETRY_HH
6#define DUNE_GRID_YASPGRIDGEOMETRY_HH
29 template<
int mydim,
int cdim,
class Gr
idImp>
30 class YaspGeometry :
public AxisAlignedCubeGeometry<typename GridImp::ctype,mydim,cdim>
34 typedef typename GridImp::ctype
ctype;
37 YaspGeometry (
const FieldVector<ctype, cdim>& ll,
const FieldVector<ctype, cdim>& ur,
const std::bitset<cdim>& shift)
38 : AxisAlignedCubeGeometry<
ctype,mydim,cdim>(ll,ur,shift)
40 assert(mydim == shift.count());
45 template<
int mydim,
class Gr
idImp>
46 class YaspGeometry<mydim,mydim,GridImp> :
public AxisAlignedCubeGeometry<typename GridImp::ctype,mydim,mydim>
49 typedef typename GridImp::ctype
ctype;
52 YaspGeometry (
const FieldVector<ctype, mydim>& ll,
const FieldVector<ctype, mydim>& ur)
53 : AxisAlignedCubeGeometry<
ctype,mydim,mydim>(ll,ur)
58 : AxisAlignedCubeGeometry<
ctype,mydim,mydim>(other)
63 template<
int cdim,
class Gr
idImp>
64 class YaspGeometry<0,cdim,GridImp> :
public AxisAlignedCubeGeometry<typename GridImp::ctype,0,cdim>
67 typedef typename GridImp::ctype
ctype;
71 : AxisAlignedCubeGeometry<typename GridImp::
ctype,0,cdim>( p )
74 YaspGeometry (
const FieldVector< ctype, cdim > &p,
const FieldVector< ctype, cdim > &,
const std::bitset<cdim> &)
75 : AxisAlignedCubeGeometry<typename GridImp::
ctype,0,cdim>( p )
Include standard header files.
Definition: agrid.hh:60
The general version that handles all codimensions but 0 and dim.
Definition: yaspgridgeometry.hh:31
YaspGeometry(const FieldVector< ctype, cdim > &ll, const FieldVector< ctype, cdim > &ur, const std::bitset< cdim > &shift)
constructor from midpoint and extension and a bitset defining which unit vectors span the entity
Definition: yaspgridgeometry.hh:37
GridImp::ctype ctype
define type used for coordinates in grid module
Definition: yaspgridgeometry.hh:34
YaspGeometry(const YaspGeometry &other)
copy constructor (skipping temporary variables)
Definition: yaspgridgeometry.hh:57
GridImp::ctype ctype
Definition: yaspgridgeometry.hh:49
YaspGeometry(const FieldVector< ctype, mydim > &ll, const FieldVector< ctype, mydim > &ur)
constructor from midpoint and extension
Definition: yaspgridgeometry.hh:52
YaspGeometry(const FieldVector< ctype, cdim > &p, const FieldVector< ctype, cdim > &, const std::bitset< cdim > &)
Definition: yaspgridgeometry.hh:74
YaspGeometry(const FieldVector< ctype, cdim > &p)
constructor
Definition: yaspgridgeometry.hh:70
GridImp::ctype ctype
Definition: yaspgridgeometry.hh:67