DUNE PDELab (2.8)

Dune::PDELab::LocalOrderingBase< ES, DI, CI > Class Template Reference

Entity-wise orderings. More...

#include <dune/pdelab/ordering/localorderingbase.hh>

Public Member Functions

template<typename ItIn , typename ItOut >
void map_lfs_indices (const ItIn begin, const ItIn end, ItOut out) const
 Set last index of container indices. More...
 

Protected Member Functions

template<class Node >
Traits::SizeType node_size (const Node &node, typename Traits::ContainerIndex suffix, const typename Traits::DOFIndex::EntityIndex &index) const
 Gives the size for a given entity and suffix. More...
 
void setup_fixed_size_possible ()
 Initial setup of the flag indicating whether a fixed size ordering is possible. More...
 

Detailed Description

template<typename ES, typename DI, typename CI>
class Dune::PDELab::LocalOrderingBase< ES, DI, CI >

Entity-wise orderings.

A tree structure of this class is able to provide (multi-index) indexations for each entity in an entity set.

Template Parameters
ESEntity Set
DIDOFIndex
CIContainerIndex

Member Function Documentation

◆ map_lfs_indices()

template<typename ES , typename DI , typename CI >
template<typename ItIn , typename ItOut >
void Dune::PDELab::LocalOrderingBase< ES, DI, CI >::map_lfs_indices ( const ItIn  begin,
const ItIn  end,
ItOut  out 
) const
inline

Set last index of container indices.

For a (view) list of dof indices, this method will fill or append the last index of the same ammount of container indices.

Template Parameters
ItInDOFIndexViewIterator<DOFIterator>
ItOutstd::vector<CI>::iterator
Parameters
beginbegin iterator for (view) list of dof indices
endbegin iterator for (view) list of dof indices
outbegin iterator of container indices to be filled out

◆ node_size()

template<typename ES , typename DI , typename CI >
template<class Node >
Traits::SizeType Dune::PDELab::LocalOrderingBase< ES, DI, CI >::node_size ( const Node &  node,
typename Traits::ContainerIndex  suffix,
const typename Traits::DOFIndex::EntityIndex &  index 
) const
inlineprotected

Gives the size for a given entity and suffix.

This method is used by typetree class derived from this class

Parameters
nodeTypeTree version of this class
suffixMultiIndex with a partial path to a container
indexEntity index to compute the size
Returns
Traits::SizeType The size required for such a path.

References Dune::Hybrid::forEach().

◆ setup_fixed_size_possible()

template<typename ES , typename DI , typename CI >
void Dune::PDELab::LocalOrderingBase< ES, DI, CI >::setup_fixed_size_possible ( )
inlineprotected

Initial setup of the flag indicating whether a fixed size ordering is possible.

For a non-leaf ordering, a fixed size ordering is possible if all children can support it, so we implement that logic here.

Note
Leaf orderings will usually want to extract this a priori information from somewhere else, so they should override this method (the correct method will get called even without a virtual call, as the call happens from a TypeTree visitor that is aware of the precise type of the ordering).

References Dune::TypeTree::child().


The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Dec 21, 23:30, 2024)