dune-fem 2.8.0
|
This class manages the adaptation process including a load balancing after the adaptation step. This class is created by the AdaptationManager for each grid instance. See AdaptationManager for details. More...
#include <dune/fem/space/common/adaptationmanager.hh>
Public Types | |
typedef GridType::Traits::LocalIdSet | LocalIdSet |
Public Member Functions | |
AdaptationManager (GridType &grid, RestProlOperatorImp &rpOp, int balanceCounter, const ParameterReader ¶meter=Parameter::container()) | |
constructor of AdaptationManager | |
AdaptationManager (GridType &grid, RestProlOperatorImp &rpOp, const ParameterReader ¶meter=Parameter::container()) | |
constructor of AdaptationManager | |
~AdaptationManager () | |
destructor decreasing reference counter | |
virtual bool | loadBalance () |
call load balance, returns true if grid was changed | |
virtual double | loadBalanceTime () const |
time that last load balance cycle took | |
virtual void | adapt () |
on call of this method the internal adaptation operator is called. | |
int | balanceCounter () const |
returns actual balanceCounter for checkpointing | |
void | backup () const |
backup internal data | |
void | restore () |
retore internal data | |
RestProlOperatorImp & | getRestProlOp () |
virtual double | adaptationTime () const |
time that last adaptation cycle took | |
virtual const char * | methodName () const |
returns name of adaptation method | |
virtual bool | adaptive () const |
returns true if adaptation manager as adaptation method different to NONE | |
template<class DiscrOpType > | |
void | saveObjPointer (DiscrOpType *discrOp) |
Store new generated DiscreteOperator Pointer. | |
template<class DiscrOpType , class LocalOpType > | |
void | saveObjPointer (DiscrOpType *discrOp, LocalOpType *lop) |
void | communicate () const |
template<class DiscreteFunctionType > | |
void | addToLoadBalancer (DiscreteFunctionType &df) |
add discrete function to data inliner/xtractor list | |
template<class DiscreteFunctionType > | |
void | addDiscreteFunction (DiscreteFunctionType &df) |
add discrete function to data inliner/xtractor list | |
template<class DiscreteFunctionType , class ContainsCheck > | |
void | addDiscreteFunction (DiscreteFunctionType &df, const ContainsCheck &containsCheck) |
add discrete function to data inliner/xtractor list | |
Protected Member Functions | |
virtual void | insertSubData () |
insert possible sub data of object | |
virtual void | removeSubData () |
remove possible sub data of object | |
virtual void * | pointer () |
Static Protected Member Functions | |
static DofManagerType & | getDofManager (const GridType &grid) |
Protected Attributes | |
GridType & | grid_ |
corresponding grid | |
DofManagerType & | dm_ |
DofManager corresponding to grid. | |
RestProlOperatorImp & | rpOp_ |
Restriction and Prolongation Operator. | |
double | adaptTime_ |
time that adaptation took | |
bool | wasChanged_ |
flag for restriction | |
AdaptationMethodType | adaptationMethod_ |
method identifier | |
GridType & | grid_ |
corresponding grid | |
DofManagerType & | dm_ |
DofManager corresponding to grid. | |
std::vector< LocalDataCollectorPairType > | localList_ |
std::vector< DataCollectorPairType > | collList_ |
std::set< const IsDiscreteFunction * > | listOfFcts_ |
CommunicationManagerList | commList_ |
double | balanceTime_ |
This class manages the adaptation process including a load balancing after the adaptation step. This class is created by the AdaptationManager for each grid instance. See AdaptationManager for details.
|
inherited |
|
inline |
constructor of AdaptationManager
The following optional parameters are used:
grid | Grid that adaptation is done for |
rpOp | restriction and prlongation operator that describes how the user data is projected to other grid levels |
balanceCounter | start counter for balance cycle (default = 0) |
parameter | Parameter class holding parameters |
|
inline |
constructor of AdaptationManager
The following optional parameters are used:
grid | Grid that adaptation is done for |
rpOp | restriction and prlongation operator that describes how the user data is projected to other grid levels |
parameter | Parameter class holding parameters |
|
inline |
destructor decreasing reference counter
|
inlinevirtual |
on call of this method the internal adaptation operator is called.
Reimplemented from Dune::Fem::AdaptationManagerBase< GridType, RestProlOperatorImp >.
|
inlinevirtualinherited |
time that last adaptation cycle took
Reimplemented from Dune::Fem::AdaptationManagerInterface.
|
inlinevirtualinherited |
returns true if adaptation manager as adaptation method different to NONE
Reimplemented from Dune::Fem::AdaptationManagerInterface.
|
inlineinherited |
add discrete function to data inliner/xtractor list
|
inlineinherited |
add discrete function to data inliner/xtractor list
|
inlineinherited |
add discrete function to data inliner/xtractor list
|
inlinevirtual |
backup internal data
Implements Dune::Fem::PersistentObject.
|
inlinevirtual |
returns actual balanceCounter for checkpointing
Reimplemented from Dune::Fem::AdaptationManagerBase< GridType, RestProlOperatorImp >.
|
inlineinherited |
|
inlinestaticprotectedinherited |
|
inlineinherited |
no public method, but has to be public, because all AdaptationManagers must be able to call this method and the template parameters are allways different
|
inlineprotectedvirtualinherited |
insert possible sub data of object
Reimplemented in Dune::Fem::DiscreteFunctionDefault< Impl >, Dune::Fem::DiscreteFunctionDefault< AdaptiveDiscreteFunction< DiscreteFunctionSpace > >, Dune::Fem::DiscreteFunctionDefault< BlockVectorDiscreteFunction< DiscreteFunctionSpace, BlockVector > >, Dune::Fem::DiscreteFunctionDefault< CombinedDiscreteFunction< ContainedDiscreteFunctionImp, N > >, Dune::Fem::DiscreteFunctionDefault< HierarchicalDiscreteFunction< DiscreteFunctionSpace > >, Dune::Fem::DiscreteFunctionDefault< ISTLBlockVectorDiscreteFunction< DiscreteFunctionSpace, Block > >, Dune::Fem::DiscreteFunctionDefault< TupleDiscreteFunction< DiscreteFunctions ... > >, and Dune::Fem::DiscreteFunctionDefault< VectorDiscreteFunction< DiscreteFunctionSpace, Vector > >.
|
inlinevirtual |
call load balance, returns true if grid was changed
Reimplemented from Dune::Fem::AdaptationManagerBase< GridType, RestProlOperatorImp >.
|
inlinevirtual |
time that last load balance cycle took
Reimplemented from Dune::Fem::LoadBalancer< GridType >.
|
inlinevirtualinherited |
returns name of adaptation method
Reimplemented from Dune::Fem::AdaptationManagerInterface.
|
inlineprotectedvirtualinherited |
Reimplemented in Dune::Fem::PersistenceManager::WrapObject< ObjectType, false >.
|
inlineprotectedvirtualinherited |
remove possible sub data of object
Reimplemented in Dune::Fem::DiscreteFunctionDefault< Impl >, Dune::Fem::DiscreteFunctionDefault< AdaptiveDiscreteFunction< DiscreteFunctionSpace > >, Dune::Fem::DiscreteFunctionDefault< BlockVectorDiscreteFunction< DiscreteFunctionSpace, BlockVector > >, Dune::Fem::DiscreteFunctionDefault< CombinedDiscreteFunction< ContainedDiscreteFunctionImp, N > >, Dune::Fem::DiscreteFunctionDefault< HierarchicalDiscreteFunction< DiscreteFunctionSpace > >, Dune::Fem::DiscreteFunctionDefault< ISTLBlockVectorDiscreteFunction< DiscreteFunctionSpace, Block > >, Dune::Fem::DiscreteFunctionDefault< TupleDiscreteFunction< DiscreteFunctions ... > >, and Dune::Fem::DiscreteFunctionDefault< VectorDiscreteFunction< DiscreteFunctionSpace, Vector > >.
|
inlinevirtual |
retore internal data
Implements Dune::Fem::PersistentObject.
|
inlineinherited |
Store new generated DiscreteOperator Pointer.
|
inlineinherited |
Store new generated DiscreteOperator Pointer and the LocalOperator pointer
|
protectedinherited |
method identifier
|
protectedinherited |
time that adaptation took
|
protectedinherited |
|
protectedinherited |
|
mutableprotectedinherited |
|
protectedinherited |
DofManager corresponding to grid.
|
protectedinherited |
DofManager corresponding to grid.
|
protectedinherited |
corresponding grid
|
protectedinherited |
corresponding grid
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
Restriction and Prolongation Operator.
|
mutableprotectedinherited |
flag for restriction