1#ifndef DUNE_FEM_COMBINEDDOFSTORAGE_HH
2#define DUNE_FEM_COMBINEDDOFSTORAGE_HH
16 template<
class ContainedMapper,
int N, DofStoragePolicy policy >
22 template<
class ContainedMapper ,
int N >
37 template<
class ContainedMapper,
int N >
66 return combinedIndex / containedSize();
72 return combinedIndex % containedSize();
79 return containedIndex + (component * containedSize());
87 return mapper_.size();
93 template<
class MapperImp,
int N, DofStoragePolicy policy >
106 component_( component ),
109 assert(component_ < N);
120 return mapper_.size();
130 utilGlobal_.newSize( mapper_.size() );
131 return utilGlobal_.combinedDof(index, component_);
136 const unsigned int component_;
Definition: bindguard.hh:11
DofStoragePolicy
Definition: dofstorage.hh:16
@ PointBased
Definition: dofstorage.hh:16
@ VariableBased
Definition: dofstorage.hh:16
Definition: combineddofstorage.hh:17
ContainedMapper ContainedMapperType
Definition: combineddofstorage.hh:29
CombinedDofConversionUtility(const ContainedMapperType &mapper, const int numComponents)
Definition: combineddofstorage.hh:31
ContainedMapper ContainedMapperType
Definition: combineddofstorage.hh:41
void newSize(int size)
Set new size after adaptation.
Definition: combineddofstorage.hh:59
int containedSize() const
Definition: combineddofstorage.hh:85
int component(int combinedIndex) const
Definition: combineddofstorage.hh:64
int combinedDof(int containedIndex, int component) const
Definition: combineddofstorage.hh:77
CombinedDofConversionUtility(const ContainedMapperType &mapper, int size)
constructor
Definition: combineddofstorage.hh:48
int containedDof(int combinedIndex) const
Number of the (scalar) base function belonging to base function index.
Definition: combineddofstorage.hh:70
static DofStoragePolicy policy()
Find out what type of policy this is.
Definition: combineddofstorage.hh:53
const ContainedMapperType & mapper_
Definition: combineddofstorage.hh:83
Definition: combineddofstorage.hh:96
ThisType & operator=(const ThisType &)=delete
CombinedSubMapper(ThisType &&)=default
ThisType & operator=(ThisType &&)=delete
unsigned int range() const
Definition: combineddofstorage.hh:123
CombinedDofConversionUtility< ContainedMapperType, N, policy > DofConversionType
Definition: combineddofstorage.hh:102
CombinedSubMapper(const ContainedMapperType &mapper, unsigned int component)
Definition: combineddofstorage.hh:104
unsigned int operator[](unsigned int index) const
Definition: combineddofstorage.hh:128
MapperImp ContainedMapperType
Definition: combineddofstorage.hh:101
CombinedSubMapper(const ThisType &)=default
unsigned int size() const
Total number of degrees of freedom.
Definition: combineddofstorage.hh:118
Specialisation for PointBased approach.
Definition: dofstorage.hh:101
Abstract index mapper interface.
Definition: subvector.hh:45