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;
137 return containedIndex * dimRange +
component;
Definition: bindguard.hh:11
DofStoragePolicy
Definition: dofstorage.hh:16
@ PointBased
Definition: dofstorage.hh:16
@ VariableBased
Definition: dofstorage.hh:16
Definition: dofstorage.hh:21
static DofStoragePolicy policy()
Find out what type of policy this is.
Definition: dofstorage.hh:34
DofConversionUtility(int numComponents)
Definition: dofstorage.hh:29
int containedDof(int combinedIndex) const
Number of the (scalar) base function belonging to base function index.
Definition: dofstorage.hh:48
void newSize(int size)
Definition: dofstorage.hh:40
int combinedDof(int containedIndex, int component) const
Definition: dofstorage.hh:54
int component(int combinedIndex) const
Definition: dofstorage.hh:44
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
void newSize(int size)
Set new size after adaptation.
Definition: dofstorage.hh:76
int component(int combinedIndex) const
Definition: dofstorage.hh:80
int combinedDof(int containedIndex, int component) const
Definition: dofstorage.hh:91
static DofStoragePolicy policy()
Find out what type of policy this is.
Definition: dofstorage.hh:73
Specialisation for PointBased approach.
Definition: dofstorage.hh:101
int component(const int combinedIndex) const
Definition: dofstorage.hh:122
void newSize(const int size)
Definition: dofstorage.hh:118
static DofStoragePolicy policy()
Find out what type of policy this is.
Definition: dofstorage.hh:112
PointBasedDofConversionUtility(int numComponents)
Definition: dofstorage.hh:105
int combinedDof(const int containedIndex, const int component) const
Definition: dofstorage.hh:134
int containedDof(const int combinedIndex) const
Number of the (scalar) base function belonging to base function index.
Definition: dofstorage.hh:127