|
| bool | consecutive () const |
| | return true if compress will affect data
|
| |
| SizeType | oldOffSet (const int block) const |
| | return old offsets for given block
|
| |
| SizeType | offSet (const int block) const |
| | return current offsets for given block
|
| |
| SizeType | numBlocks () const |
| | return number of supported blocks
|
| |
| void | update () |
| | update DoF mapping after grid modification
|
| |
| bool | contains (const int codim) const |
| | returns true if DoFs for given codimension exist
|
| |
| bool | fixedDataSize (const int codim) const |
| | Check, whether the data in a codimension has fixed size.
|
| |
| template<class Functor > |
| void | mapEach (const ElementType &element, Functor f) const |
| | map each local DoF number to a global key
|
| |
| template<class Entity , class Functor > |
| void | mapEachEntityDof (const Entity &entity, Functor f) const |
| | map each local DoF number to a global key
|
| |
|
| template<class Function > |
| | DiscontinuousGalerkinBlockMapper (const GridPartType &gridPart, const LocalKeysType &localKeys, const KeyType &value, Function function) |
| |
| | DiscontinuousGalerkinBlockMapper (const GridPartType &gridPart, const LocalKeysType &localKeys, const KeyType &value) |
| |
|
| | DiscontinuousGalerkinBlockMapper (const ThisType &)=delete |
| | copy constructor
|
| |
| | DiscontinuousGalerkinBlockMapper (ThisType &&)=default |
| | move constructor
|
| |
| ThisType & | operator= (const ThisType &)=delete |
| | assignment operator
|
| |
| ThisType & | operator= (ThisType &&)=default |
| | move assignment operator
|
| |
|
| template<class Element > |
| std::enable_if<(std::is_same< Element, ElementType >::value||std::is_same< Element, GridElementType >::value), constKeyType & >::type | key (const Element &element) const |
| | get key currently assigned to an entity
|
| |
| void | mark (const KeyType &key, const ElementType &element) |
| | set key to be assigned to an entity after next call to adapt()
|
| |
| KeyType | getMark (const ElementType &element) const |
| | get key to be assigned to an entity after next call to adapt()
|
| |
| template<class Function > |
| bool | adapt (Function function) |
| | please doc me
|
| |
| bool | adapt () |
| | please doc me
|
| |
|
| SizeType | size () const |
| | return number of dofs
|
| |
| int | maxNumDofs () const |
| | return upper bound for number of dofs
|
| |
| SizeType | numDofs (const ElementType &element) const |
| | return number of dofs for given element
|
| |
| template<class Entity > |
| SizeType | numEntityDofs (const Entity &entity) const |
| | return number of dofs for given element
|
| |
| void | onSubEntity (const ElementType &element, int i, int c, std::vector< bool > &indices) const |
| |
| template<class Function > |
| void | mapEach (const ElementType &element, Function function) const |
| | map local dof to global key
|
| |
| template<class Entity , class Function > |
| void | mapEachEntityDof (const Entity &entity, Function function) const |
| | map local dof to global key
|
| |
| SizeType | numberOfHoles (const int block) const |
| | return number of holes during compression
|
| |
| GlobalKeyType | oldIndex (const int hole, const int block) const |
| | return old index of given hole during compression
|
| |
| GlobalKeyType | newIndex (const int hole, const int block) const |
| | return new index of given hole during compression
|
| |
| static constexpr bool | contains (const int codim) |
| | return true if dofs are associated to codimension
|
| |
| static constexpr bool | fixedDataSize (int codim) |
| | return true if number of dofs is fixed for given codimension
|
| |
| static constexpr bool | consecutive () |
| | return true (this mapper yields a consecutive DOF numbering)
|
| |
| static constexpr SizeType | oldOffSet (const int block) |
| | return 0 (this mapper has no offset)
|
| |
| static constexpr SizeType | offSet (const int block) |
| | return 0 (this mapper has no offset)
|
| |
| static constexpr SizeType | numBlocks () |
| | return 1 (this mapper has one block)
|
| |
template<class GridPart, class LocalKeys>
struct Dune::Fem::hpDG::DiscontinuousGalerkinBlockMapper< GridPart, LocalKeys >
An
-adaptive Dune::Fem::DofMapper.
- Template Parameters
-
| GridPart | a Dune::Fem::GridPart type |
| LocalKeys | see documentation below |
- Note
- The second template parameter is required to provide the following member methods:
struct LocalKeys
{
using KeyType = ImplementationDefined;
using DataType = ImplementationDefined;
std::size_t maxBlocks () const;
std::size_t blocks ( GeometryType type,
const KeyType &key )
const;
DataType encode (
const KeyType &key )
const;
KeyType decode (
const DataType &data )
const;
};
typename LocalKeysType::KeyType KeyType
key type
Definition: blockmapper.hh:120
template<class DofMapperTraits >
template<class Functor >
map each local DoF number to a global key
- Parameters
-
| [in] | element | element, the DoFs belong to |
| [in] | f | functor to call for each DoF |
The functor has to be a copyable object satisfying the following interface:
struct Functor
{
template< class GlobalKey >
void operator() ( const int localDoF, const GlobalKey &globalDoF );
};
For each DoF to be mapped, this method will call the application operator once.
- Note
- There is no guarantee on the order, in which the functor is applied.
-
The global key has to be compatible with the Dof storage.
template<class DofMapperTraits >
template<class Entity , class Functor >
| void Dune::Fem::DofMapper< DofMapperTraits >::mapEachEntityDof |
( |
const Entity & |
entity, |
|
|
Functor |
f |
|
) |
| const |
|
inlineinherited |
map each local DoF number to a global key
- Parameters
-
| [in] | entity | entity, the DoFs belong to |
| [in] | f | functor to call for each DoF |
The functor has to be a copyable object satisfying the following interface:
struct Functor
{
template< class GlobalKey >
void operator() ( const int localDoF, const GlobalKey &globalKey );
};
For each DoF to be mapped, this method will call the application operator once.
- Note
- There is no guarantee on the order, in which the functor is applied.
-
The global key has to be compatible with the Dof storage.