dune-fem 2.8-git
|
An -adaptive Dune::Fem::DofMapper.
More...
#include <dune/fem/space/hpdg/blockmapper.hh>
Classes | |
struct | Reserve |
struct | Resize |
Public Types | |
using | ThisType = DiscontinuousGalerkinBlockMapper< GridPart, LocalKeys > |
using | BaseType = AdaptiveDofMapper< DiscontinuousGalerkinBlockMapperTraits< GridPart, LocalKeys > > |
using | SizeType = typename BaseType::SizeType |
size type More... | |
using | GlobalKeyType = typename BaseType::GlobalKeyType |
global key type More... | |
using | GridPartType = GridPart |
grid part type More... | |
using | ElementType = typename BaseType::ElementType |
element type More... | |
using | LocalKeysType = LocalKeys |
basis function sets type More... | |
using | KeyType = typename LocalKeysType::KeyType |
key type More... | |
using | DofManagerType = DofManager< GridType > |
dof manager type More... | |
typedef DiscontinuousGalerkinBlockMapperTraits< GridPart, LocalKeys > | Traits |
typedef Traits::DofMapperType | DofMapperType |
type of the DofMapper implementation More... | |
typedef ElementType | EntityType |
Public Member Functions | |
bool | consecutive () const |
return true if compress will affect data More... | |
SizeType | oldOffSet (const int block) const |
return old offsets for given block More... | |
SizeType | offSet (const int block) const |
return current offsets for given block More... | |
SizeType | numBlocks () const |
return number of supported blocks More... | |
void | update () |
update DoF mapping after grid modification More... | |
bool | contains (const int codim) const |
returns true if DoFs for given codimension exist More... | |
bool | fixedDataSize (const int codim) const |
Check, whether the data in a codimension has fixed size. More... | |
void | mapEach (const ElementType &element, Functor f) const |
map each local DoF number to a global key More... | |
void | mapEachEntityDof (const Entity &entity, Functor f) const |
map each local DoF number to a global key More... | |
Construction | |
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) | |
Copying and assignment | |
DiscontinuousGalerkinBlockMapper (const ThisType &)=delete | |
copy constructor More... | |
DiscontinuousGalerkinBlockMapper (ThisType &&)=default | |
move constructor More... | |
ThisType & | operator= (const ThisType &)=delete |
assignment operator More... | |
ThisType & | operator= (ThisType &&)=default |
move assignment operator More... | |
Adaptation interface | |
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 More... | |
void | mark (const KeyType &key, const ElementType &element) |
set key to be assigned to an entity after next call to adapt() More... | |
KeyType | getMark (const ElementType &element) const |
get key to be assigned to an entity after next call to adapt() More... | |
template<class Function > | |
bool | adapt (Function function) |
please doc me More... | |
bool | adapt () |
please doc me More... | |
Protected Member Functions | |
const Implementation & | asImp () const |
Implementation & | asImp () |
Static Protected Member Functions | |
static const Implementation & | asImp (const ThisType &other) |
static Implementation & | asImp (ThisType &other) |
Public interface for adaptation managers | |
const DofManagerType & | dofManager () const |
return DOF manager More... | |
void | insertEntity (const GridElementType &gridElement) |
add DOFs for element More... | |
void | removeEntity (const GridElementType &gridElement) |
mark DOFs for removal More... | |
void | insertNewEntity (const GridElementType &gridElement) |
add DOFs for new element More... | |
void | resize () |
bool | compress () |
compress DOF mapping More... | |
template<class Traits > | |
void | write (OutStreamInterface< Traits > &) |
this mapper has no I/O capabilities More... | |
template<class Traits > | |
void | read (InStreamInterface< Traits > &) |
this mapper has no I/O capabilities More... | |
void | backup () const |
this mapper has no I/O capabilities More... | |
void | restore () |
this mapper has no I/O capabilities More... | |
Interface methods | |
SizeType | size () const |
return number of dofs More... | |
int | maxNumDofs () const |
return upper bound for number of dofs More... | |
SizeType | numDofs (const ElementType &element) const |
return number of dofs for given element More... | |
template<class Entity > | |
SizeType | numEntityDofs (const Entity &entity) const |
return number of dofs for given element More... | |
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 More... | |
template<class Entity , class Function > | |
void | mapEachEntityDof (const Entity &entity, Function function) const |
map local dof to global key More... | |
SizeType | numberOfHoles (const int block) const |
return number of holes during compression More... | |
GlobalKeyType | oldIndex (const int hole, const int block) const |
return old index of given hole during compression More... | |
GlobalKeyType | newIndex (const int hole, const int block) const |
return new index of given hole during compression More... | |
static constexpr bool | contains (const int codim) |
return true if dofs are associated to codimension More... | |
static constexpr bool | fixedDataSize (int codim) |
return true if number of dofs is fixed for given codimension More... | |
static constexpr bool | consecutive () |
return true (this mapper yields a consecutive DOF numbering) More... | |
static constexpr SizeType | oldOffSet (const int block) |
return 0 (this mapper has no offset) More... | |
static constexpr SizeType | offSet (const int block) |
return 0 (this mapper has no offset) More... | |
static constexpr SizeType | numBlocks () |
return 1 (this mapper has one block) More... | |
An -adaptive Dune::Fem::DofMapper.
GridPart | a Dune::Fem::GridPart type |
LocalKeys | see documentation below |
using Dune::Fem::hpDG::DiscontinuousGalerkinBlockMapper< GridPart, LocalKeys >::BaseType = AdaptiveDofMapper< DiscontinuousGalerkinBlockMapperTraits< GridPart, LocalKeys > > |
using Dune::Fem::hpDG::DiscontinuousGalerkinBlockMapper< GridPart, LocalKeys >::DofManagerType = DofManager< GridType > |
dof manager type
|
inherited |
type of the DofMapper implementation
using Dune::Fem::hpDG::DiscontinuousGalerkinBlockMapper< GridPart, LocalKeys >::ElementType = typename BaseType::ElementType |
element type
|
inherited |
using Dune::Fem::hpDG::DiscontinuousGalerkinBlockMapper< GridPart, LocalKeys >::GlobalKeyType = typename BaseType::GlobalKeyType |
global key type
using Dune::Fem::hpDG::DiscontinuousGalerkinBlockMapper< GridPart, LocalKeys >::GridPartType = GridPart |
grid part type
using Dune::Fem::hpDG::DiscontinuousGalerkinBlockMapper< GridPart, LocalKeys >::KeyType = typename LocalKeysType::KeyType |
key type
using Dune::Fem::hpDG::DiscontinuousGalerkinBlockMapper< GridPart, LocalKeys >::LocalKeysType = LocalKeys |
basis function sets type
using Dune::Fem::hpDG::DiscontinuousGalerkinBlockMapper< GridPart, LocalKeys >::SizeType = typename BaseType::SizeType |
size type
using Dune::Fem::hpDG::DiscontinuousGalerkinBlockMapper< GridPart, LocalKeys >::ThisType = DiscontinuousGalerkinBlockMapper< GridPart, LocalKeys > |
|
inherited |
|
inline |
|
inline |
|
delete |
copy constructor
|
default |
move constructor
|
inline |
please doc me
bool Dune::Fem::hpDG::DiscontinuousGalerkinBlockMapper< GridPart, LocalKeys >::adapt | ( | Function | function | ) |
please doc me
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlinestaticprotectedinherited |
|
inlinestaticprotectedinherited |
|
inline |
this mapper has no I/O capabilities
bool Dune::Fem::hpDG::DiscontinuousGalerkinBlockMapper< GridPart, LocalKeys >::compress |
compress DOF mapping
|
inlinestaticconstexpr |
return true (this mapper yields a consecutive DOF numbering)
|
inlineinherited |
return true if compress will affect data
|
inlinestaticconstexpr |
return true if dofs are associated to codimension
|
inlineinherited |
returns true if DoFs for given codimension exist
[in] | codim | codimension to check |
|
inline |
return DOF manager
|
inlineinherited |
Check, whether the data in a codimension has fixed size.
|
inlinestaticconstexpr |
return true if number of dofs is fixed for given codimension
|
inline |
get key to be assigned to an entity after next call to adapt()
|
inline |
add DOFs for element
|
inline |
add DOFs for new element
|
inline |
get key currently assigned to an entity
|
inline |
map local dof to global key
|
inlineinherited |
map each local DoF number to a global key
[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:
For each DoF to be mapped, this method will call the application operator once.
|
inline |
map local dof to global key
|
inlineinherited |
map each local DoF number to a global key
[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:
For each DoF to be mapped, this method will call the application operator once.
|
inline |
set key to be assigned to an entity after next call to adapt()
|
inline |
return upper bound for number of dofs
|
inline |
return new index of given hole during compression
|
inline |
return number of holes during compression
|
inlinestaticconstexpr |
return 1 (this mapper has one block)
|
inlineinherited |
return number of supported blocks
|
inline |
return number of dofs for given element
|
inline |
return number of dofs for given element
|
inlinestaticconstexpr |
return 0 (this mapper has no offset)
|
inlineinherited |
return current offsets for given block
|
inline |
return old index of given hole during compression
|
inlinestaticconstexpr |
return 0 (this mapper has no offset)
|
inlineinherited |
return old offsets for given block
|
inline |
|
delete |
assignment operator
|
default |
move assignment operator
|
inline |
this mapper has no I/O capabilities
|
inline |
mark DOFs for removal
|
inline |
|
inline |
this mapper has no I/O capabilities
|
inline |
return number of dofs
|
inlineinherited |
update DoF mapping after grid modification
Adaptive DoF mappers are considered to be always up to date and this method does nothing.
|
inline |
this mapper has no I/O capabilities