dune-fem 2.8-git
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | List of all members
Dune::Fem::__DynamicNonBlockMapper::AdaptiveDofMapper< T > Class Template Reference

#include <dune/fem/space/mapper/dynamicnonblockmapper.hh>

Inheritance diagram for Dune::Fem::__DynamicNonBlockMapper::AdaptiveDofMapper< T >:
Inheritance graph

Public Types

typedef BaseType::Traits Traits
 
typedef Traits::BlockMapperType BlockMapperType
 
typedef Traits::ElementType ElementType
 
typedef Traits::SizeType SizeType
 
typedef Traits::GlobalKeyType GlobalKeyType
 
typedef Traits::DofMapperType DofMapperType
 type of the DofMapper implementation More...
 
typedef ElementType EntityType
 

Public Member Functions

 AdaptiveDofMapper (BlockMapperType &blockMapper, int blockSize)
 
bool consecutive () const
 
SizeType numBlocks () const
 
SizeType numberOfHoles (int block) const
 
GlobalKeyType oldIndex (int hole, int block) const
 
GlobalKeyType newIndex (int hole, int block) const
 
SizeType oldOffSet (const int block) const
 
SizeType offSet (const int block) const
 
SizeType size () const
 
bool contains (const int codim) const
 
bool fixedDataSize (int codim) const
 
void mapEach (const ElementType &element, Functor f) const
 
void mapEach (const ElementType &element, Functor f) const
 map each local DoF number to a global key More...
 
void map (const ElementType &element, std::vector< GlobalKeyType > &indices) const
 
void onSubEntity (const ElementType &element, int i, int c, std::vector< bool > &indices) const
 
void mapEachEntityDof (const Entity &entity, Functor f) const
 
void mapEntityDofs (const Entity &entity, std::vector< GlobalKeyType > &indices) const
 
int maxNumDofs () const
 
SizeType numDofs (const ElementType &element) const
 
SizeType numDofs (const ElementType &element) const
 obtain number of DoFs on an entity More...
 
SizeType numEntityDofs (const Entity &entity) const
 
const BlockMapperTypeblockMapper () const
 
int blockSize () const
 
void update ()
 update DoF mapping after grid modification More...
 

Static Public Member Functions

static constexpr bool consecutive () noexcept
 

Protected Member Functions

const ImplementationasImp () const
 
ImplementationasImp ()
 

Static Protected Member Functions

static const ImplementationasImp (const ThisType &other)
 
static ImplementationasImp (ThisType &other)
 

Member Typedef Documentation

◆ BlockMapperType

template<class T >
typedef Traits::BlockMapperType Dune::Fem::__DynamicNonBlockMapper::AdaptiveDofMapper< T >::BlockMapperType

◆ DofMapperType

typedef Traits::DofMapperType Dune::Fem::DofMapper< T >::DofMapperType
inherited

type of the DofMapper implementation

◆ ElementType

template<class T >
typedef Traits::ElementType Dune::Fem::__DynamicNonBlockMapper::AdaptiveDofMapper< T >::ElementType

◆ EntityType

typedef ElementType Dune::Fem::DofMapper< T >::EntityType
inherited

◆ GlobalKeyType

template<class T >
typedef Traits::GlobalKeyType Dune::Fem::__DynamicNonBlockMapper::AdaptiveDofMapper< T >::GlobalKeyType

◆ SizeType

◆ Traits

Constructor & Destructor Documentation

◆ AdaptiveDofMapper()

template<class T >
Dune::Fem::__DynamicNonBlockMapper::AdaptiveDofMapper< T >::AdaptiveDofMapper ( BlockMapperType blockMapper,
int  blockSize 
)
inline

Member Function Documentation

◆ asImp() [1/4]

Implementation & Dune::Fem::BartonNackmanInterface< Interface, Implementation >::asImp ( )
inlineprotectedinherited

◆ asImp() [2/4]

const Implementation & Dune::Fem::BartonNackmanInterface< Interface, Implementation >::asImp ( ) const
inlineprotectedinherited

◆ asImp() [3/4]

static const Implementation & Dune::Fem::BartonNackmanInterface< Interface, Implementation >::asImp ( const ThisType other)
inlinestaticprotectedinherited

◆ asImp() [4/4]

static Implementation & Dune::Fem::BartonNackmanInterface< Interface, Implementation >::asImp ( ThisType other)
inlinestaticprotectedinherited

◆ blockMapper()

◆ blockSize()

int Dune::Fem::__DynamicNonBlockMapper::DofMapper< T, Dune::Fem::AdaptiveDofMapper >::blockSize ( ) const
inlineinherited

◆ consecutive() [1/2]

template<class T >
bool Dune::Fem::__DynamicNonBlockMapper::AdaptiveDofMapper< T >::consecutive ( ) const
inline

◆ consecutive() [2/2]

static constexpr bool Dune::Fem::__DynamicNonBlockMapper::DofMapper< T, Dune::Fem::AdaptiveDofMapper >::consecutive ( )
inlinestaticconstexprnoexceptinherited

◆ contains()

bool Dune::Fem::__DynamicNonBlockMapper::DofMapper< T, Dune::Fem::AdaptiveDofMapper >::contains ( const int  codim) const
inlineinherited

◆ fixedDataSize()

bool Dune::Fem::__DynamicNonBlockMapper::DofMapper< T, Dune::Fem::AdaptiveDofMapper >::fixedDataSize ( int  codim) const
inlineinherited

◆ map()

void Dune::Fem::__DynamicNonBlockMapper::DofMapper< T, Dune::Fem::AdaptiveDofMapper >::map ( const ElementType element,
std::vector< GlobalKeyType > &  indices 
) const
inlineinherited

◆ mapEach() [1/2]

void Dune::Fem::DofMapper< T >::mapEach ( const ElementType element,
Functor  f 
) const
inlineinherited

map each local DoF number to a global key

Parameters
[in]elementelement, the DoFs belong to
[in]ffunctor to call for each DoF

The functor has to be a copyable object satisfying the following interface:

struct Functor
{
// application operator
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.

◆ mapEach() [2/2]

void Dune::Fem::__DynamicNonBlockMapper::DofMapper< T, Dune::Fem::AdaptiveDofMapper >::mapEach ( const ElementType element,
Functor  f 
) const
inlineinherited

◆ mapEachEntityDof()

void Dune::Fem::__DynamicNonBlockMapper::DofMapper< T, Dune::Fem::AdaptiveDofMapper >::mapEachEntityDof ( const Entity &  entity,
Functor  f 
) const
inlineinherited

◆ mapEntityDofs()

void Dune::Fem::__DynamicNonBlockMapper::DofMapper< T, Dune::Fem::AdaptiveDofMapper >::mapEntityDofs ( const Entity &  entity,
std::vector< GlobalKeyType > &  indices 
) const
inlineinherited

◆ maxNumDofs()

int Dune::Fem::__DynamicNonBlockMapper::DofMapper< T, Dune::Fem::AdaptiveDofMapper >::maxNumDofs ( ) const
inlineinherited

◆ newIndex()

template<class T >
GlobalKeyType Dune::Fem::__DynamicNonBlockMapper::AdaptiveDofMapper< T >::newIndex ( int  hole,
int  block 
) const
inline

◆ numberOfHoles()

template<class T >
SizeType Dune::Fem::__DynamicNonBlockMapper::AdaptiveDofMapper< T >::numberOfHoles ( int  block) const
inline

◆ numBlocks()

template<class T >
SizeType Dune::Fem::__DynamicNonBlockMapper::AdaptiveDofMapper< T >::numBlocks ( ) const
inline

◆ numDofs() [1/2]

SizeType Dune::Fem::DofMapper< T >::numDofs ( const ElementType element) const
inlineinherited

obtain number of DoFs on an entity

Parameters
[in]elemententity of codimension 0
Returns
number of DoFs on the entity

◆ numDofs() [2/2]

SizeType Dune::Fem::__DynamicNonBlockMapper::DofMapper< T, Dune::Fem::AdaptiveDofMapper >::numDofs ( const ElementType element) const
inlineinherited

◆ numEntityDofs()

SizeType Dune::Fem::__DynamicNonBlockMapper::DofMapper< T, Dune::Fem::AdaptiveDofMapper >::numEntityDofs ( const Entity &  entity) const
inlineinherited

◆ offSet()

template<class T >
SizeType Dune::Fem::__DynamicNonBlockMapper::AdaptiveDofMapper< T >::offSet ( const int  block) const
inline

◆ oldIndex()

template<class T >
GlobalKeyType Dune::Fem::__DynamicNonBlockMapper::AdaptiveDofMapper< T >::oldIndex ( int  hole,
int  block 
) const
inline

◆ oldOffSet()

template<class T >
SizeType Dune::Fem::__DynamicNonBlockMapper::AdaptiveDofMapper< T >::oldOffSet ( const int  block) const
inline

◆ onSubEntity()

void Dune::Fem::__DynamicNonBlockMapper::DofMapper< T, Dune::Fem::AdaptiveDofMapper >::onSubEntity ( const ElementType element,
int  i,
int  c,
std::vector< bool > &  indices 
) const
inlineinherited

◆ size()

◆ update()

void Dune::Fem::AdaptiveDofMapper< T >::update ( )
inlineinherited

update DoF mapping after grid modification

Adaptive DoF mappers are considered to be always up to date and this method does nothing.


The documentation for this class was generated from the following file: