dune-fem
2.4.1-rc
|
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 </local/tomalk/somewhere/tmp/dune-fem/dune/fem/space/common/adaptmanager.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 The following optional parameters from the Dune::Parameter class are used 0 == none, 1 == generic, 2 == call back (only AlbertaGrid and ALUGrid)fem.adaptation.method: 1 # default value More... | |
AdaptationManager (GridType &grid, RestProlOperatorImp &rpOp, const ParameterReader ¶meter=Parameter::container()) | |
~AdaptationManager () | |
destructor decreasing reference counter More... | |
virtual bool | loadBalance () |
call load balance, returns true if grid was changed More... | |
virtual int | balanceCounter () const |
return number of cycles since last application of load balance More... | |
virtual double | loadBalanceTime () const |
time that last load balance cycle took More... | |
virtual void | adapt () |
on call of this method the internal adaptation operator is called. More... | |
RestProlOperatorImp & | getRestProlOp () |
virtual double | adaptationTime () const |
time that last adaptation cycle took More... | |
virtual const char * | methodName () const |
returns name of adaptation method More... | |
virtual bool | adaptive () const |
returns true if adaptation manager as adaptation method different to NONE More... | |
template<class DiscrOpType > | |
void | saveObjPointer (DiscrOpType *discrOp) |
Store new generated DiscreteOperator Pointer. More... | |
template<class DiscrOpType , class LocalOpType > | |
void | saveObjPointer (DiscrOpType *discrOp, LocalOpType *lop) |
void | backup () const |
backup internal data More... | |
void | restore () |
retore internal data More... | |
template<class DiscreteFunctionType > | |
void | addToLoadBalancer (DiscreteFunctionType &df) |
add discrete function to data inliner/xtractor list More... | |
template<class DiscreteFunctionType > | |
void | addDiscreteFunction (DiscreteFunctionType &df) |
add discrete function to data inliner/xtractor list More... | |
template<class DiscreteFunctionType , class ContainsCheck > | |
void | addDiscreteFunction (DiscreteFunctionType &df, const ContainsCheck &containsCheck) |
add discrete function to data inliner/xtractor list More... | |
Protected Member Functions | |
int | getBalanceStep (int balanceCounter, const ParameterReader ¶meter=Parameter::container()) const |
virtual void | insertSubData () |
insert possible sub data of object More... | |
virtual void | removeSubData () |
remove possible sub data of object More... | |
virtual void * | pointer () |
Static Protected Member Functions | |
static DofManagerType & | getDofManager (const GridType &grid) |
Protected Attributes | |
GridType & | grid_ |
corresponding grid More... | |
DofManagerType & | dm_ |
DofManager corresponding to grid. More... | |
RestProlOperatorImp & | rpOp_ |
Restriction and Prolongation Operator. More... | |
double | adaptTime_ |
time that adaptation took More... | |
bool | wasChanged_ |
flag for restriction More... | |
AdaptationMethodType | adaptationMethod_ |
method identifier More... | |
GridType & | grid_ |
corresponding grid More... | |
DofManagerType & | dm_ |
DofManager corresponding to grid. More... | |
const int | balanceStep_ |
int | balanceCounter_ |
std::vector< LocalDataCollectorPairType > | localList_ |
std::vector< DataCollectorPairType > | collList_ |
std::set< const IsDiscreteFunction * > | listOfFcts_ |
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 from the Dune::Parameter class 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) |
|
inline |
|
inline |
destructor decreasing reference counter
|
inlinevirtual |
on call of this method the internal adaptation operator is called.
Reimplemented from Dune::Fem::AdaptationManagerBase< GridType, RestProlOperatorImp >.
References Dune::Fem::AdaptationManagerInterface::adaptive(), Dune::Fem::CommunicationManagerList::exchange(), and Dune::Fem::AdaptationManagerInterface::loadBalance().
|
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
Referenced by Dune::Fem::RestrictProlongDefault< DiscreteFunction >::addToLoadBalancer().
|
inlinevirtualinherited |
backup internal data
Implements Dune::Fem::PersistentObject.
References Dune::Fem::PersistenceManager::backupValue().
|
inlinevirtual |
return number of cycles since last application of load balance
Reimplemented from Dune::Fem::AdaptationManagerBase< GridType, RestProlOperatorImp >.
|
inlineprotectedinherited |
|
inlinestaticprotectedinherited |
References Dune::Fem::make_entity().
|
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< VectorDiscreteFunction< DiscreteFunctionSpace, Vector > >, Dune::Fem::DiscreteFunctionDefault< BlockVectorDiscreteFunction< DiscreteFunctionSpace, BlockVector > >, Dune::Fem::DiscreteFunctionDefault< ISTLBlockVectorDiscreteFunction< DiscreteFunctionSpace, Block > >, and Dune::Fem::DiscreteFunctionDefault< CombinedDiscreteFunction< ContainedDiscreteFunctionImp, N > >.
Referenced by Dune::Fem::PersistenceManager::insertObject().
|
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< VectorDiscreteFunction< DiscreteFunctionSpace, Vector > >, Dune::Fem::DiscreteFunctionDefault< BlockVectorDiscreteFunction< DiscreteFunctionSpace, BlockVector > >, Dune::Fem::DiscreteFunctionDefault< ISTLBlockVectorDiscreteFunction< DiscreteFunctionSpace, Block > >, and Dune::Fem::DiscreteFunctionDefault< CombinedDiscreteFunction< ContainedDiscreteFunctionImp, N > >.
Referenced by Dune::Fem::PersistenceManager::removeObject().
|
inlinevirtualinherited |
retore internal data
Implements Dune::Fem::PersistentObject.
References Dune::Fem::PersistenceManager::restoreValue().
|
inlineinherited |
Store new generated DiscreteOperator Pointer.
References Dune::Fem::ObjPointer< ObjType >::next.
|
inlineinherited |
Store new generated DiscreteOperator Pointer and the LocalOperator pointer
|
protectedinherited |
method identifier
|
protectedinherited |
time that adaptation took
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
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