Go to the documentation of this file.
3 #ifndef DUNE_FUNCTIONS_FUNCTIONSPACEBASES_DEFAULTLOCALVIEW_HH
4 #define DUNE_FUNCTIONS_FUNCTIONSPACEBASES_DEFAULTLOCALVIEW_HH
9 #include <dune/common/concept.hh>
24 using PrefixPath = TypeTree::HybridTreePath<>;
32 using GridView =
typename GlobalBasis::GridView;
35 using Element =
typename GridView::template Codim<0>::Entity;
41 using Tree =
typename GlobalBasis::PreBasis::template Node<PrefixPath>;
131 #endif // DUNE_FUNCTIONS_FUNCTIONSPACEBASES_DEFAULTLOCALVIEW_HH
Definition: concepts.hh:85
size_type size() const
Total number of degrees of freedom on this element.
Definition: defaultlocalview.hh:90
const GlobalBasis * globalBasis_
Definition: defaultlocalview.hh:119
Definition: polynomial.hh:7
typename GridView::template Codim< 0 >::Entity Element
Type of the grid element we are bound to.
Definition: defaultlocalview.hh:35
The restriction of a finite element basis to a single element.
Definition: defaultlocalview.hh:22
const GlobalBasis & globalBasis() const
Return the global basis that we are a view on.
Definition: defaultlocalview.hh:108
typename GlobalBasis::GridView GridView
The grid view the global FE basis lives on.
Definition: defaultlocalview.hh:32
size_type maxSize() const
Maximum local size for any element on the GridView.
Definition: defaultlocalview.hh:101
DefaultLocalView(const GlobalBasis &globalBasis)
Construct local view for a given global finite element basis.
Definition: defaultlocalview.hh:44
Tree tree_
Definition: defaultlocalview.hh:121
void bind(const Element &e)
Bind the view to a grid element.
Definition: defaultlocalview.hh:57
std::size_t size_type
The type used for sizes.
Definition: defaultlocalview.hh:38
void initializeTree(Tree &tree, std::size_t treeIndexOffset=0)
Definition: nodes.hh:274
void unbind()
Unbind from the current element.
Definition: defaultlocalview.hh:76
void bindTree(Tree &tree, const Entity &entity, std::size_t offset=0)
Definition: nodes.hh:267
GB GlobalBasis
The global FE basis that this is a view on.
Definition: defaultlocalview.hh:29
Element element_
Definition: defaultlocalview.hh:120
typename GlobalBasis::PreBasis::template Node< PrefixPath > Tree
Tree of local finite elements / local shape function sets.
Definition: defaultlocalview.hh:41
const Element & element() const
Return the grid element that the view is bound to.
Definition: defaultlocalview.hh:67
const Tree & tree() const
Return the local ansatz tree associated to the bound entity.
Definition: defaultlocalview.hh:83
const DefaultLocalView & rootLocalView() const
Definition: defaultlocalview.hh:113