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();
provides a wrapper for ALBERTA's el_info structure
provides a wrapper for ALBERTA's mesh structure
Include standard header files.
Definition: agrid.hh:58
[ provides Dune::Grid ]
Definition: agrid.hh:107
Definition: albertagrid/entityseed.hh:16
ElementInfo elementInfo(const MeshPointer &mesh) const
Definition: albertagrid/entityseed.hh:63
AlbertaGridEntitySeed(const ElementInfo &elementInfo, int subEntity)
Definition: albertagrid/entityseed.hh:53
Alberta::ElementInfo< dimension > ElementInfo
Definition: albertagrid/entityseed.hh:45
Grid::template Codim< codimension >::Entity Entity
Definition: albertagrid/entityseed.hh:48
Alberta::MeshPointer< dimension > MeshPointer
Definition: albertagrid/entityseed.hh:44
AlbertaGrid< dim, dimworld > Grid
Definition: albertagrid/entityseed.hh:37
ElementInfo::Seed Seed
Definition: albertagrid/entityseed.hh:46
int subEntity() const
Definition: albertagrid/entityseed.hh:64
AlbertaGridEntitySeed()
Definition: albertagrid/entityseed.hh:50
bool isValid() const
Definition: albertagrid/entityseed.hh:58
AlbertaGrid< dim, dimworld > Grid
Definition: albertagrid/entityseed.hh:80
Alberta::MeshPointer< dimension > MeshPointer
Definition: albertagrid/entityseed.hh:87
AlbertaGridEntitySeed(const ElementInfo &elementInfo)
Definition: albertagrid/entityseed.hh:96
Alberta::ElementInfo< dimension > ElementInfo
Definition: albertagrid/entityseed.hh:88
Grid::template Codim< codimension >::Entity Entity
Definition: albertagrid/entityseed.hh:91
AlbertaGridEntitySeed()
Definition: albertagrid/entityseed.hh:93
bool isValid() const
Definition: albertagrid/entityseed.hh:100
int subEntity() const
Definition: albertagrid/entityseed.hh:106
ElementInfo::Seed Seed
Definition: albertagrid/entityseed.hh:89
ElementInfo elementInfo(const MeshPointer &mesh) const
Definition: albertagrid/entityseed.hh:105