1 #ifndef DUNE_IDENTITYGRIDGEOMETRY_HH
2 #define DUNE_IDENTITYGRIDGEOMETRY_HH
8 #include <dune/common/fmatrix.hh>
9 #include <dune/common/typetraits.hh>
10 #include <dune/grid/common/geometry.hh>
14 template<
int mydim,
int coorddim,
class Gr
idImp>
16 public GeometryDefaultImplementation <mydim, coorddim, GridImp, IdentityGridGeometry>
20 typedef typename GridImp::ctype ctype;
33 typedef typename GridImp::HostGridType::Traits::template Codim<CodimInHostGrid>::Geometry
HostGridGeometryType;
36 typedef typename SelectType<coorddim==DimensionWorld, HostGridGeometryType, HostGridLocalGeometryType>::Type
HostGridGeometry;
49 GeometryType
type ()
const {
65 const FieldVector<ctype, coorddim>
corner (
int i)
const {
72 FieldVector<ctype, coorddim>
global (
const FieldVector<ctype, mydim>&
local)
const{
85 FieldVector<ctype, mydim>
local (
const FieldVector<ctype, coorddim>&
global)
const {
114 namespace FacadeOptions
117 template<
int mydim,
int coorddim,
class Gr
idImp >
120 static const bool v =
false;