5#ifndef DUNE_ALBERTA_ENTITYSEED_HH
6#define DUNE_ALBERTA_ENTITYSEED_HH
17 template<
int codim,
class Gr
id >
18 class AlbertaGridEntitySeed;
25 template<
int dim,
int dimworld >
35 template<
int codim,
int dim,
int dimworld >
36 class AlbertaGridEntitySeed< codim, const AlbertaGrid< dim, 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;
46 typedef Alberta::MeshPointer< dimension > MeshPointer;
47 typedef Alberta::ElementInfo< dimension > ElementInfo;
48 typedef typename ElementInfo::Seed Seed;
50 typedef typename Grid::template Codim< codimension >::Entity Entity;
52 AlbertaGridEntitySeed ( )
55 AlbertaGridEntitySeed (
const ElementInfo &elementInfo,
int subEntity )
56 : seed_( elementInfo.seed() ),
57 subEntity_( subEntity )
62 return seed_.isValid();
65 ElementInfo elementInfo (
const MeshPointer &mesh )
const {
return ElementInfo( mesh, seed_ ); }
66 int subEntity ()
const {
return subEntity_; }
78 template<
int dim,
int dimworld >
79 class AlbertaGridEntitySeed< 0, const AlbertaGrid< dim, 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;
89 typedef Alberta::MeshPointer< dimension > MeshPointer;
90 typedef Alberta::ElementInfo< dimension > ElementInfo;
91 typedef typename ElementInfo::Seed Seed;
93 typedef typename Grid::template Codim< codimension >::Entity Entity;
95 AlbertaGridEntitySeed ( )
98 explicit AlbertaGridEntitySeed (
const ElementInfo &elementInfo )
99 : seed_( elementInfo.seed() )
102 bool isValid ()
const
104 return seed_.isValid();
107 ElementInfo elementInfo (
const MeshPointer &mesh )
const {
return ElementInfo( mesh, seed_ ); }
108 int subEntity ()
const {
return 0; }
provides a wrapper for ALBERTA's el_info structure
provides a wrapper for ALBERTA's mesh structure
Dune namespace.
Definition: alignedallocator.hh:13