1#ifndef DUNE_FEM_DOFMAPPER_HH
2#define DUNE_FEM_DOFMAPPER_HH
39 template<
class DofMapperTraits >
42 typename DofMapperTraits :: DofMapperType >
69 CHECK_INTERFACE_IMPLEMENTATION(
asImp().
size());
70 return asImp().size();
82 return asImp().contains( codim );
89 return asImp().fixedDataSize( codim );
115 template<
class Functor >
118 CHECK_AND_CALL_INTERFACE_IMPLEMENTATION(
asImp().
mapEach( element, f ) );
144 template<
class Entity,
class Functor >
155 return asImp().maxNumDofs();
166 CHECK_INTERFACE_IMPLEMENTATION(
asImp().
numDofs( element ) );
167 return asImp().numDofs( element );
184 template<
class Entity >
188 return asImp().numEntityDofs( entity );
202 CHECK_AND_CALL_INTERFACE_IMPLEMENTATION(
asImp().
update() );
216 template<
class DofMapperTraits >
236 return asImp().numberOfHoles(block);
242 CHECK_INTERFACE_IMPLEMENTATION(
asImp().
oldIndex(hole,block));
243 return asImp().oldIndex(hole,block);
249 CHECK_INTERFACE_IMPLEMENTATION(
asImp().
newIndex(hole,block));
250 return asImp().newIndex(hole,block);
257 return asImp().consecutive();
264 return asImp().oldOffSet(block);
270 CHECK_INTERFACE_IMPLEMENTATION(
asImp().
offSet(block));
271 return asImp().offSet(block);
278 return asImp().numBlocks();
Definition: bindguard.hh:11
Definition: bartonnackmaninterface.hh:17
const Implementation & asImp() const
Definition: bartonnackmaninterface.hh:37
Interface for calculating the size of a function space for a grid on a specified level....
Definition: mapper/dofmapper.hh:43
void update()
update DoF mapping after grid modification
Definition: mapper/dofmapper.hh:200
DofMapperTraits Traits
Definition: mapper/dofmapper.hh:48
ElementType EntityType
Definition: mapper/dofmapper.hh:59
bool contains(const int codim) const
returns true if DoFs for given codimension exist
Definition: mapper/dofmapper.hh:79
int maxNumDofs() const
obtain maximal number of DoFs on one entity
Definition: mapper/dofmapper.hh:152
const Implementation & asImp() const
Definition: bartonnackmaninterface.hh:37
SizeType numEntityDofs(const Entity &entity) const
obtain number of DoFs actually belonging to an entity
Definition: mapper/dofmapper.hh:185
Traits::DofMapperType DofMapperType
type of the DofMapper implementation
Definition: mapper/dofmapper.hh:51
SizeType numDofs(const ElementType &element) const
obtain number of DoFs on an entity
Definition: mapper/dofmapper.hh:164
void mapEach(const ElementType &element, Functor f) const
map each local DoF number to a global key
Definition: mapper/dofmapper.hh:116
Traits::ElementType ElementType
type of codimension 0 entities
Definition: mapper/dofmapper.hh:54
SizeType size() const
return number of dofs for special function space and grid on specified level
Definition: mapper/dofmapper.hh:67
bool fixedDataSize(const int codim) const
Check, whether the data in a codimension has fixed size.
Definition: mapper/dofmapper.hh:86
Traits::SizeType SizeType
type of size integer
Definition: mapper/dofmapper.hh:57
void mapEachEntityDof(const Entity &entity, Functor f) const
map each local DoF number to a global key
Definition: mapper/dofmapper.hh:145
Extended interface for adaptive DoF mappers.
Definition: mapper/dofmapper.hh:219
SizeType GlobalKeyType
at the moment this should be similar to SizeType
Definition: mapper/dofmapper.hh:230
SizeType numberOfHoles(const int block) const
return number of holes for data block
Definition: mapper/dofmapper.hh:233
SizeType oldOffSet(const int block) const
return old offsets for given block
Definition: mapper/dofmapper.hh:261
const Implementation & asImp() const
Definition: bartonnackmaninterface.hh:37
GlobalKeyType oldIndex(const int hole, const int block) const
return old index of hole for data block (with resprect to new offset)
Definition: mapper/dofmapper.hh:240
SizeType numBlocks() const
return number of supported blocks
Definition: mapper/dofmapper.hh:275
SizeType offSet(const int block) const
return current offsets for given block
Definition: mapper/dofmapper.hh:268
BaseType::SizeType SizeType
type of size integer
Definition: mapper/dofmapper.hh:227
GlobalKeyType newIndex(const int hole, const int block) const
return new index of hole for data block (with resprect to new offset)
Definition: mapper/dofmapper.hh:247
void update()
update DoF mapping after grid modification
Definition: mapper/dofmapper.hh:287
bool consecutive() const
return true if compress will affect data
Definition: mapper/dofmapper.hh:254