3 #ifndef DUNE_IDENTITYGRIDGEOMETRY_HH
4 #define DUNE_IDENTITYGRIDGEOMETRY_HH
10 #include <dune/common/fmatrix.hh>
11 #include <dune/common/typetraits.hh>
12 #include <dune/grid/common/geometry.hh>
16 template<
int mydim,
int coorddim,
class Gr
idImp>
18 public GeometryDefaultImplementation <mydim, coorddim, GridImp, IdentityGridGeometry>
22 typedef typename GridImp::ctype ctype;
32 typedef typename GridImp::HostGridType::Traits::template Codim<CodimInHostGrid>::Geometry
HostGridGeometryType;
35 typedef typename conditional<coorddim==DimensionWorld, HostGridGeometryType, HostGridLocalGeometryType>::type
HostGridGeometry;
51 GeometryType
type ()
const {
67 const FieldVector<ctype, coorddim>
corner (
int i)
const {
74 FieldVector<ctype, coorddim>
global (
const FieldVector<ctype, mydim>&
local)
const {
87 FieldVector<ctype, mydim>
local (
const FieldVector<ctype, coorddim>&
global)
const {
116 namespace FacadeOptions
119 template<
int mydim,
int coorddim,
class Gr
idImp >
122 static const bool v =
false;