1 #ifndef DUNE_FEM_GRIDPART_IDGRIDPART_GEOMETRY_HH 2 #define DUNE_FEM_GRIDPART_IDGRIDPART_GEOMETRY_HH 6 #include <dune/grid/common/geometry.hh> 24 template<
class Traits >
32 typedef typename HostGeometryType::ctype
ctype;
40 : hostGeometry_( hostGeometry )
43 operator bool ()
const {
return bool( hostGeometry_ ); }
45 GeometryType
type ()
const {
return hostGeometry_.type(); }
46 bool affine ()
const {
return hostGeometry_.affine(); }
48 int corners ()
const {
return hostGeometry_.corners(); }
49 GlobalVector
corner (
const int i )
const {
return hostGeometry_.corner( i ); }
50 GlobalVector
center ()
const {
return hostGeometry_.center(); }
52 GlobalVector
global (
const LocalVector &
local )
const {
return hostGeometry_.global( local ); }
53 LocalVector
local (
const GlobalVector &
global )
const {
return hostGeometry_.local( global ); }
56 ctype
volume ()
const {
return hostGeometry_.volume(); }
60 return hostGeometry_.jacobianTransposed( local );
65 return hostGeometry_.jacobianInverseTransposed( local );
69 HostGeometryType hostGeometry_;
77 template<
int mydim,
class Gr
idFamily >
80 typedef typename std::remove_const< GridFamily >::type::Traits::HostGridPartType
HostGridPartType;
82 static const int dimension = HostGridPartType::dimension;
86 typedef typename HostGridPartType::template Codim< codimension >::GeometryType
HostGeometryType;
94 template<
int mydim,
int cdim,
class Gr
idFamily >
107 : Base( hostGeometry )
116 template<
int mydim,
class Gr
idFamily >
119 typedef typename std::remove_const< GridFamily >::type::Traits::HostGridPartType
HostGridPartType;
121 static const int dimension = HostGridPartType::dimension;
125 typedef typename HostGridPartType::template Codim< codimension >::LocalGeometryType
HostGeometryType;
133 template<
int mydim,
int cdim,
class Gr
idFamily >
146 : Base( hostGeometry )
154 #endif // #ifndef DUNE_FEM_GRIDPART_IDGRIDPART_GEOMETRY_HH Base::HostGeometryType HostGeometryType
Definition: idgridpart/geometry.hh:140
Traits::HostGeometryType HostGeometryType
Definition: idgridpart/geometry.hh:27
LocalVector local(const GlobalVector &global) const
Definition: idgridpart/geometry.hh:53
IdLocalGeometry(const HostGeometryType &hostGeometry)
Definition: idgridpart/geometry.hh:145
GlobalVector global(const LocalVector &local) const
Definition: idgridpart/geometry.hh:52
HostGridPartType::template Codim< codimension >::LocalGeometryType HostGeometryType
Definition: idgridpart/geometry.hh:125
bool affine() const
Definition: idgridpart/geometry.hh:46
JacobianTransposed jacobianTransposed(const LocalVector &local) const
Definition: idgridpart/geometry.hh:58
IdGeometry(const HostGeometryType &hostGeometry)
Definition: idgridpart/geometry.hh:106
GlobalVector center() const
Definition: idgridpart/geometry.hh:50
Definition: idgridpart/geometry.hh:78
HostGeometryType::JacobianInverseTransposed JacobianInverseTransposed
Definition: idgridpart/geometry.hh:37
GlobalVector corner(const int i) const
Definition: idgridpart/geometry.hh:49
FieldVector< ctype, coorddimension > GlobalVector
Definition: idgridpart/geometry.hh:34
Definition: idgridpart/geometry.hh:117
static const int mydimension
Definition: idgridpart/geometry.hh:29
Definition: idgridpart/geometry.hh:25
Definition: coordinate.hh:4
int corners() const
Definition: idgridpart/geometry.hh:48
Definition: idgridpart/geometry.hh:17
std::remove_const< GridFamily >::type::Traits::HostGridPartType HostGridPartType
Definition: idgridpart/geometry.hh:80
JacobianInverseTransposed jacobianInverseTransposed(const LocalVector &local) const
Definition: idgridpart/geometry.hh:63
IdLocalGeometry()
Definition: idgridpart/geometry.hh:142
HostGeometryType::ctype ctype
Definition: idgridpart/geometry.hh:32
ctype integrationElement(const LocalVector &local) const
Definition: idgridpart/geometry.hh:55
Definition: idgridpart/geometry.hh:18
static const int coorddimension
Definition: idgridpart/geometry.hh:30
HostGeometryType::JacobianTransposed JacobianTransposed
Definition: idgridpart/geometry.hh:36
IdGeometry()
Definition: idgridpart/geometry.hh:103
FieldVector< ctype, mydimension > LocalVector
Definition: idgridpart/geometry.hh:33
HostGridPartType::template Codim< codimension >::GeometryType HostGeometryType
Definition: idgridpart/geometry.hh:86
IdBasicGeometry(const HostGeometryType &hostGeometry)
Definition: idgridpart/geometry.hh:39
GeometryType type() const
Definition: idgridpart/geometry.hh:45
std::remove_const< GridFamily >::type::Traits::HostGridPartType HostGridPartType
Definition: idgridpart/geometry.hh:119
Base::HostGeometryType HostGeometryType
Definition: idgridpart/geometry.hh:101
ctype volume() const
Definition: idgridpart/geometry.hh:56