3 #ifndef DUNE_ALBERTA_ENTITYSEED_HH
4 #define DUNE_ALBERTA_ENTITYSEED_HH
15 template<
int codim,
class Gr
id >
23 template<
int dim,
int dimworld >
33 template<
int codim,
int dim,
int dimworld >
39 static const int codimension = codim;
40 static const int dimension = dim;
41 static const int mydimension = dimension - codimension;
42 static const int dimensionworld = dimworld;
46 typedef typename ElementInfo::Seed
Seed;
48 typedef typename Grid::template Codim< codimension >::Entity
Entity;
54 : seed_( elementInfo.seed() ),
55 subEntity_( subEntity )
60 return seed_.isValid();
76 template<
int dim,
int dimworld >
82 static const int codimension = 0;
83 static const int dimension = dim;
84 static const int mydimension = dimension - codimension;
85 static const int dimensionworld = dimworld;
89 typedef typename ElementInfo::Seed
Seed;
91 typedef typename Grid::template Codim< codimension >::Entity
Entity;
97 : seed_( elementInfo.seed() )
102 return seed_.isValid();
112 #endif // #if HAVE_ALBERTA
116 #endif // #ifndef DUNE_ALBERTA_ENTITYSEED_HH
AlbertaGridEntitySeed(const ElementInfo &elementInfo, int subEntity)
Definition: albertagrid/entityseed.hh:53
Grid::template Codim< codimension >::Entity Entity
Definition: albertagrid/entityseed.hh:48
AlbertaGrid< dim, dimworld > Grid
Definition: albertagrid/entityseed.hh:37
Alberta::ElementInfo< dimension > ElementInfo
Definition: albertagrid/entityseed.hh:88
bool isValid() const
Definition: albertagrid/entityseed.hh:100
provides a wrapper for ALBERTA's mesh structure
ElementInfo elementInfo(const MeshPointer &mesh) const
Definition: albertagrid/entityseed.hh:63
AlbertaGridEntitySeed()
Definition: albertagrid/entityseed.hh:93
AlbertaGrid< dim, dimworld > Grid
Definition: albertagrid/entityseed.hh:80
[ provides Dune::Grid ]
Definition: agrid.hh:137
bool isValid() const
Definition: albertagrid/entityseed.hh:58
Grid::template Codim< codimension >::Entity Entity
Definition: albertagrid/entityseed.hh:91
provides a wrapper for ALBERTA's el_info structure
int subEntity() const
Definition: albertagrid/entityseed.hh:106
Alberta::MeshPointer< dimension > MeshPointer
Definition: albertagrid/entityseed.hh:44
ElementInfo elementInfo(const MeshPointer &mesh) const
Definition: albertagrid/entityseed.hh:105
Alberta::MeshPointer< dimension > MeshPointer
Definition: albertagrid/entityseed.hh:87
Alberta::ElementInfo< dimension > ElementInfo
Definition: albertagrid/entityseed.hh:45
AlbertaGridEntitySeed()
Definition: albertagrid/entityseed.hh:50
int subEntity() const
Definition: albertagrid/entityseed.hh:64
AlbertaGridEntitySeed(const ElementInfo &elementInfo)
Definition: albertagrid/entityseed.hh:96
ElementInfo::Seed Seed
Definition: albertagrid/entityseed.hh:46
Definition: albertagrid/entityseed.hh:16
ElementInfo::Seed Seed
Definition: albertagrid/entityseed.hh:89