DUNE-FUNCTIONS (2.7)
defaultlocalview.hh
52 using hasIndices = decltype(std::declval<NodeIndexSet_>().indices(std::declval<std::vector<typename NodeIndexSet_::MultiIndex>>().begin()));
62 static_assert(models<Concept::BasisTree<GridView>, Tree>(), "Tree type passed to DefaultLocalView does not model the BasisNode concept.");
The restriction of a finite element basis to a single element.
Definition: defaultlocalview.hh:25
void unbind()
Unbind from the current element.
Definition: defaultlocalview.hh:107
typename GlobalBasis::GridView GridView
The grid view the global FE basis lives on.
Definition: defaultlocalview.hh:35
typename GridView::template Codim< 0 >::Entity Element
Type of the grid element we are bound to.
Definition: defaultlocalview.hh:38
const Tree & tree() const
Return the local ansatz tree associated to the bound entity.
Definition: defaultlocalview.hh:117
void bind(const Element &e)
Bind the view to a grid element.
Definition: defaultlocalview.hh:71
const Element & element() const
Return the grid element that the view is bound to.
Definition: defaultlocalview.hh:98
MultiIndex index(size_type i) const
Maps from subtree index set [0..size-1] to a globally unique multi index in global basis.
Definition: defaultlocalview.hh:141
size_type size() const
Total number of degrees of freedom on this element.
Definition: defaultlocalview.hh:124
GB GlobalBasis
The global FE basis that this is a view on.
Definition: defaultlocalview.hh:32
size_type maxSize() const
Maximum local size for any element on the GridView.
Definition: defaultlocalview.hh:135
std::size_t size_type
The type used for sizes.
Definition: defaultlocalview.hh:41
bool isBound() const
Return if the view is bound to a grid element.
Definition: defaultlocalview.hh:90
typename NodeIndexSet::MultiIndex MultiIndex
Type used for global numbering of the basis vectors.
Definition: defaultlocalview.hh:47
typename GlobalBasis::PreBasis::Node Tree
Tree of local finite elements / local shape function sets.
Definition: defaultlocalview.hh:44
DefaultLocalView(const GlobalBasis &globalBasis)
Construct local view for a given global finite element basis.
Definition: defaultlocalview.hh:57
const GlobalBasis & globalBasis() const
Return the global basis that we are a view on.
Definition: defaultlocalview.hh:148
Definition: polynomial.hh:10
![Creative Commons License](https://i.creativecommons.org/l/by-sa/4.0/80x15.png)