5#ifndef DUNE_ALBERTA_ENTITYSEED_HH
6#define DUNE_ALBERTA_ENTITYSEED_HH
17 template<
int codim,
class Gr
id >
25 template<
int dim,
int dimworld >
35 template<
int codim,
int dim,
int dimworld >
41 static const int codimension = codim;
42 static const int dimension = dim;
43 static const int mydimension = dimension - codimension;
44 static const int dimensionworld = dimworld;
48 typedef typename ElementInfo::Seed
Seed;
50 typedef typename Grid::template Codim< codimension >::Entity
Entity;
56 : seed_( elementInfo.seed() ),
57 subEntity_( subEntity )
62 return seed_.isValid();
78 template<
int dim,
int dimworld >
84 static const int codimension = 0;
85 static const int dimension = dim;
86 static const int mydimension = dimension - codimension;
87 static const int dimensionworld = dimworld;
91 typedef typename ElementInfo::Seed
Seed;
93 typedef typename Grid::template Codim< codimension >::Entity
Entity;
99 : seed_( elementInfo.seed() )
104 return seed_.isValid();
provides a wrapper for ALBERTA's mesh structure
provides a wrapper for ALBERTA's el_info structure
Include standard header files.
Definition: agrid.hh:60
[ provides Dune::Grid ]
Definition: agrid.hh:109
Definition: albertagrid/entityseed.hh:18
ElementInfo elementInfo(const MeshPointer &mesh) const
Definition: albertagrid/entityseed.hh:65
AlbertaGridEntitySeed(const ElementInfo &elementInfo, int subEntity)
Definition: albertagrid/entityseed.hh:55
Alberta::ElementInfo< dimension > ElementInfo
Definition: albertagrid/entityseed.hh:47
Grid::template Codim< codimension >::Entity Entity
Definition: albertagrid/entityseed.hh:50
Alberta::MeshPointer< dimension > MeshPointer
Definition: albertagrid/entityseed.hh:46
AlbertaGrid< dim, dimworld > Grid
Definition: albertagrid/entityseed.hh:39
ElementInfo::Seed Seed
Definition: albertagrid/entityseed.hh:48
int subEntity() const
Definition: albertagrid/entityseed.hh:66
AlbertaGridEntitySeed()
Definition: albertagrid/entityseed.hh:52
bool isValid() const
Definition: albertagrid/entityseed.hh:60
AlbertaGrid< dim, dimworld > Grid
Definition: albertagrid/entityseed.hh:82
Alberta::MeshPointer< dimension > MeshPointer
Definition: albertagrid/entityseed.hh:89
AlbertaGridEntitySeed(const ElementInfo &elementInfo)
Definition: albertagrid/entityseed.hh:98
Alberta::ElementInfo< dimension > ElementInfo
Definition: albertagrid/entityseed.hh:90
Grid::template Codim< codimension >::Entity Entity
Definition: albertagrid/entityseed.hh:93
AlbertaGridEntitySeed()
Definition: albertagrid/entityseed.hh:95
bool isValid() const
Definition: albertagrid/entityseed.hh:102
int subEntity() const
Definition: albertagrid/entityseed.hh:108
ElementInfo::Seed Seed
Definition: albertagrid/entityseed.hh:91
ElementInfo elementInfo(const MeshPointer &mesh) const
Definition: albertagrid/entityseed.hh:107