dune-fem 2.8.0
|
This class manages the adaptation process. If the method adapt is called, then the grid is adapted and also all the data belonging to the given dof manager will be rearranged for data set where it is necessary to keep the data. More...
#include <dune/fem/space/common/adaptationmanager.hh>
Public Types | |
typedef GridType::Traits::LocalIdSet | LocalIdSet |
Public Member Functions | |
AdaptationManagerBase (GridType &grid, RestProlOperatorImp &rpOp, const ParameterReader ¶meter=Parameter::container()) | |
constructor of AdaptationManagerBase The following optional parameter can be used | |
virtual | ~AdaptationManagerBase () |
destructor | |
RestProlOperatorImp & | getRestProlOp () |
virtual void | adapt () |
according to adaption method parameter the adaption procedure is done, 0 == no adaptation 1 == generic adaption 2 == grid call back adaptation (only in AlbertaGrid and ALUGrid) | |
virtual bool | loadBalance () |
default load balancing method which does nothing | |
virtual int | balanceCounter () const |
default load balancing counter is zero | |
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 | |
virtual double | loadBalanceTime () const |
time that last load balance cycle took | |
template<class DiscrOpType > | |
void | saveObjPointer (DiscrOpType *discrOp) |
Store new generated DiscreteOperator Pointer. | |
template<class DiscrOpType , class LocalOpType > | |
void | saveObjPointer (DiscrOpType *discrOp, LocalOpType *lop) |
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 | |
This class manages the adaptation process. If the method adapt is called, then the grid is adapted and also all the data belonging to the given dof manager will be rearranged for data set where it is necessary to keep the data.
typedef GridType::Traits::LocalIdSet Dune::Fem::AdaptationManagerBase< GridType, RestProlOperatorImp >::LocalIdSet |
|
inline |
constructor of AdaptationManagerBase The following optional parameter can be used
AdaptationMethod: 1 # default value
grid | Grid that adaptation is done for |
rpOp | restriction and prlongation operator that describes how the user data is projected to other grid levels the following two lines: |
|
inlinevirtual |
destructor
|
inlinevirtual |
according to adaption method parameter the adaption procedure is done, 0 == no adaptation 1 == generic adaption 2 == grid call back adaptation (only in AlbertaGrid and ALUGrid)
Reimplemented from Dune::Fem::AdaptationManagerInterface.
Reimplemented in Dune::Fem::AdaptationManager< GridType, RestProlOperatorImp >.
|
inlinevirtual |
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.
|
inlinevirtual |
default load balancing counter is zero
Reimplemented from Dune::Fem::AdaptationManagerInterface.
Reimplemented in Dune::Fem::AdaptationManager< GridType, RestProlOperatorImp >.
|
inlinestaticprotected |
|
inline |
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
|
inlinevirtual |
default load balancing method which does nothing
Reimplemented from Dune::Fem::AdaptationManagerInterface.
Reimplemented in Dune::Fem::AdaptationManager< GridType, RestProlOperatorImp >.
|
inlinevirtualinherited |
time that last load balance cycle took
Reimplemented in Dune::Fem::AdaptationManager< GridType, RestProlOperatorImp >, Dune::Fem::hpDG::AdaptationManager< DiscreteFunctionSpace, DataProjection >, and Dune::Fem::LoadBalancer< GridType >.
|
inlinevirtualinherited |
returns name of adaptation method
Reimplemented from Dune::Fem::AdaptationManagerInterface.
|
inlineinherited |
Store new generated DiscreteOperator Pointer.
|
inlineinherited |
Store new generated DiscreteOperator Pointer and the LocalOperator pointer
|
protectedinherited |
method identifier
|
protected |
time that adaptation took
|
protected |
DofManager corresponding to grid.
|
protected |
corresponding grid
|
protected |
Restriction and Prolongation Operator.
|
mutableprotected |
flag for restriction