dune-fem 2.8.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Member Functions | List of all members
Dune::Fem::RestrictProlongInterfaceDefault< Traits > Class Template Reference

Interface default implementation for derived classes. More...

#include <dune/fem/space/common/restrictprolonginterface.hh>

Inheritance diagram for Dune::Fem::RestrictProlongInterfaceDefault< Traits >:
Inheritance graph

Public Types

typedef BaseType::DomainFieldType DomainFieldType
 
typedef Traits::RestProlImp RestProlImp
 type of restrict-prolong operator implementation
 

Public Member Functions

void setFatherChildWeight (const DomainFieldType &weight) const
 explicit set volume ratio of son and father
 
void initialize ()
 
void finalize ()
 
template<class Entity >
void restrictFinalize (const Entity &father) const
 restrictFinalize is for some spaces where a local matrix inversion is carried out after restriction.
 
template<class Entity >
void restrictLocal (const Entity &father, const Entity &son, bool initialize) const
 restrict data to father
 
template<class Entity , class LocalGeometry >
void restrictLocal (const Entity &father, const Entity &son, const LocalGeometry &geometryInFather, bool initialize) const
 restrict data to father
 
template<class Entity >
void prolongLocal (const Entity &father, const Entity &son, bool initialize) const
 prolong data to children
 
template<class Entity , class LocalGeometry >
void prolongLocal (const Entity &father, const Entity &son, const LocalGeometry &geometryInFather, bool initialize) const
 prolong data to children
 
template<class Communicator >
void addToList (Communicator &comm)
 add discrete function to communicator
 
template<class LoadBalancer >
void addToLoadBalancer (LoadBalancer &lb)
 add discrete function to load balancer
 

Protected Member Functions

template<class IndexSet , class Entity >
bool entitiesAreCopies (const IndexSet &indexSet, const Entity &father, const Entity &son) const
 return true if father and son have the same index
 
template<class Entity >
DomainFieldType calcWeight (const Entity &father, const Entity &son) const
 calculates the weight, i.e. (volume son)/(volume father)
 
const RestProlImpasImp () const
 
RestProlImpasImp ()
 

Detailed Description

template<class Traits>
class Dune::Fem::RestrictProlongInterfaceDefault< Traits >

Interface default implementation for derived classes.

Member Typedef Documentation

◆ DomainFieldType

template<class Traits >
typedef BaseType::DomainFieldType Dune::Fem::RestrictProlongInterfaceDefault< Traits >::DomainFieldType

◆ RestProlImp

template<class Traits >
typedef Traits::RestProlImp Dune::Fem::RestrictProlongInterface< Traits >::RestProlImp
inherited

type of restrict-prolong operator implementation

Member Function Documentation

◆ addToList()

template<class Traits >
template<class Communicator >
void Dune::Fem::RestrictProlongInterface< Traits >::addToList ( Communicator &  comm)
inlineinherited

add discrete function to communicator

Parameters
[in]commCommunicator to add the discrete functions to

◆ addToLoadBalancer()

template<class Traits >
template<class LoadBalancer >
void Dune::Fem::RestrictProlongInterface< Traits >::addToLoadBalancer ( LoadBalancer lb)
inlineinherited

add discrete function to load balancer

Parameters
[in]lbLoadBalancer to add the discrete functions to

◆ asImp() [1/2]

template<class Traits >
RestProlImp & Dune::Fem::RestrictProlongInterface< Traits >::asImp ( )
inlineprotectedinherited

◆ asImp() [2/2]

template<class Traits >
const RestProlImp & Dune::Fem::RestrictProlongInterface< Traits >::asImp ( ) const
inlineprotectedinherited

◆ calcWeight()

template<class Traits >
template<class Entity >
DomainFieldType Dune::Fem::RestrictProlongInterface< Traits >::calcWeight ( const Entity &  father,
const Entity &  son 
) const
inlineprotectedinherited

calculates the weight, i.e. (volume son)/(volume father)

Parameters
[in]fatherFather Entity
[in]sonSon Entity
Returns
proportion between fahter and son volume

◆ entitiesAreCopies()

template<class Traits >
template<class IndexSet , class Entity >
bool Dune::Fem::RestrictProlongInterfaceDefault< Traits >::entitiesAreCopies ( const IndexSet indexSet,
const Entity &  father,
const Entity &  son 
) const
inlineprotected

return true if father and son have the same index

◆ finalize()

template<class Traits >
void Dune::Fem::RestrictProlongInterfaceDefault< Traits >::finalize ( )
inline

◆ initialize()

template<class Traits >
void Dune::Fem::RestrictProlongInterfaceDefault< Traits >::initialize ( )
inline

◆ prolongLocal() [1/2]

template<class Traits >
template<class Entity >
void Dune::Fem::RestrictProlongInterface< Traits >::prolongLocal ( const Entity &  father,
const Entity &  son,
bool  initialize 
) const
inlineinherited

prolong data to children

◆ prolongLocal() [2/2]

template<class Traits >
template<class Entity , class LocalGeometry >
void Dune::Fem::RestrictProlongInterface< Traits >::prolongLocal ( const Entity &  father,
const Entity &  son,
const LocalGeometry &  geometryInFather,
bool  initialize 
) const
inlineinherited

prolong data to children

◆ restrictFinalize()

template<class Traits >
template<class Entity >
void Dune::Fem::RestrictProlongInterfaceDefault< Traits >::restrictFinalize ( const Entity &  father) const
inline

restrictFinalize is for some spaces where a local matrix inversion is carried out after restriction.

◆ restrictLocal() [1/2]

template<class Traits >
template<class Entity >
void Dune::Fem::RestrictProlongInterface< Traits >::restrictLocal ( const Entity &  father,
const Entity &  son,
bool  initialize 
) const
inlineinherited

restrict data to father

◆ restrictLocal() [2/2]

template<class Traits >
template<class Entity , class LocalGeometry >
void Dune::Fem::RestrictProlongInterface< Traits >::restrictLocal ( const Entity &  father,
const Entity &  son,
const LocalGeometry &  geometryInFather,
bool  initialize 
) const
inlineinherited

restrict data to father

◆ setFatherChildWeight()

template<class Traits >
void Dune::Fem::RestrictProlongInterfaceDefault< Traits >::setFatherChildWeight ( const DomainFieldType weight) const
inline

explicit set volume ratio of son and father

Parameters
[in]weightvolume of son / volume of father
Note
If this ratio is set, it is assume to be constant.

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