1 #ifndef DUNE_FEM_DOFSTORAGE_HH 2 #define DUNE_FEM_DOFSTORAGE_HH 20 template <DofStoragePolicy p>
30 numComponents_(numComponents)
45 return combinedIndex%numComponents_;
49 return combinedIndex/numComponents_;
55 return containedIndex*numComponents_ + component;
59 const int numComponents_;
81 return combinedIndex/size_;
86 return combinedIndex%size_;
92 return containedIndex + component*size_;
100 template <
unsigned int dimRange>
108 assert( numComponents ==
int(dimRange) );
124 return combinedIndex % dimRange;
129 return combinedIndex / dimRange;
135 const int component)
const 137 return containedIndex * dimRange + component;
145 #endif // #ifndef DUNE_FEM_DOFSTORAGE_HH int component(int combinedIndex) const
Definition: dofstorage.hh:44
PointBasedDofConversionUtility(int numComponents)
Definition: dofstorage.hh:105
int component(int combinedIndex) const
Definition: dofstorage.hh:80
Definition: dofstorage.hh:21
DofConversionUtility(int numComponents)
Definition: dofstorage.hh:29
int combinedDof(const int containedIndex, const int component) const
Definition: dofstorage.hh:134
Specialisation for PointBased approach.
Definition: dofstorage.hh:101
void newSize(const int size)
Definition: dofstorage.hh:118
int component(const int combinedIndex) const
Definition: dofstorage.hh:122
Definition: dofstorage.hh:16
int combinedDof(int containedIndex, int component) const
Definition: dofstorage.hh:54
static DofStoragePolicy policy()
Find out what type of policy this is.
Definition: dofstorage.hh:34
void newSize(int size)
Definition: dofstorage.hh:40
int containedDof(const int combinedIndex) const
Number of the (scalar) base function belonging to base function index.
Definition: dofstorage.hh:127
int containedDof(int combinedIndex) const
Number of the (scalar) base function belonging to base function index.
Definition: dofstorage.hh:48
Definition: coordinate.hh:4
int combinedDof(int containedIndex, int component) const
Definition: dofstorage.hh:91
Definition: dofstorage.hh:16
static DofStoragePolicy policy()
Find out what type of policy this is.
Definition: dofstorage.hh:73
void newSize(int size)
Set new size after adaptation.
Definition: dofstorage.hh:76
int containedDof(int combinedIndex) const
Number of the (scalar) base function belonging to base function index.
Definition: dofstorage.hh:85
DofConversionUtility(int size)
Definition: dofstorage.hh:68
DofStoragePolicy
Definition: dofstorage.hh:16
static DofStoragePolicy policy()
Find out what type of policy this is.
Definition: dofstorage.hh:112