dune-fem  2.4.1-rc
Classes | Public Types | Public Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
Dune::Fem::AdaptationManagerBase< GridType, RestProlOperatorImp > Class Template Reference

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 </local/tomalk/somewhere/tmp/dune-fem/dune/fem/space/common/adaptmanager.hh>

Inheritance diagram for Dune::Fem::AdaptationManagerBase< GridType, RestProlOperatorImp >:
Inheritance graph

Public Types

typedef GridType::Traits::LocalIdSet LocalIdSet
 

Public Member Functions

 AdaptationManagerBase (GridType &grid, RestProlOperatorImp &rpOp, const ParameterReader &parameter=Parameter::container())
 constructor of AdaptationManagerBase The following optional parameter can be used

0 == none, 1 == generic, 2 == call back (only AlbertaGrid and ALUGrid)

AdaptationMethod: 1 # default value More...
 
virtual ~AdaptationManagerBase ()
 destructor More...
 
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) More...
 
virtual bool loadBalance ()
 default load balancing method which does nothing More...
 
virtual int balanceCounter () const
 default load balancing counter is zero More...
 
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...
 
virtual double loadBalanceTime () const
 time that last load balance cycle took 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)
 

Static Protected Member Functions

static DofManagerTypegetDofManager (const GridType &grid)
 

Protected Attributes

GridType & grid_
 corresponding grid More...
 
DofManagerTypedm_
 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...
 

Detailed Description

template<class GridType, class RestProlOperatorImp>
class Dune::Fem::AdaptationManagerBase< GridType, RestProlOperatorImp >

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.

Member Typedef Documentation

template<class GridType , class RestProlOperatorImp >
typedef GridType :: Traits :: LocalIdSet Dune::Fem::AdaptationManagerBase< GridType, RestProlOperatorImp >::LocalIdSet

Constructor & Destructor Documentation

template<class GridType , class RestProlOperatorImp >
Dune::Fem::AdaptationManagerBase< GridType, RestProlOperatorImp >::AdaptationManagerBase ( GridType &  grid,
RestProlOperatorImp &  rpOp,
const ParameterReader parameter = Parameter::container() 
)
inline

constructor of AdaptationManagerBase The following optional parameter can be used

0 == none, 1 == generic, 2 == call back (only AlbertaGrid and ALUGrid)

AdaptationMethod: 1 # default value

Parameters
gridGrid that adaptation is done for
rpOprestriction and prlongation operator that describes how the user data is projected to other grid levels the following two lines:
template<class GridType , class RestProlOperatorImp >
virtual Dune::Fem::AdaptationManagerBase< GridType, RestProlOperatorImp >::~AdaptationManagerBase ( )
inlinevirtual

destructor

Member Function Documentation

template<class GridType , class RestProlOperatorImp >
virtual void Dune::Fem::AdaptationManagerBase< GridType, RestProlOperatorImp >::adapt ( )
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 >.

References Dune::Fem::ThreadManager::singleThreadMode().

template<class GridType , class RestProlOperatorImp >
virtual double Dune::Fem::AdaptationManagerBase< GridType, RestProlOperatorImp >::adaptationTime ( ) const
inlinevirtual

time that last adaptation cycle took

Reimplemented from Dune::Fem::AdaptationManagerInterface.

template<class GridType >
virtual bool Dune::Fem::AdaptationMethod< GridType >::adaptive ( ) const
inlinevirtualinherited

returns true if adaptation manager as adaptation method different to NONE

Returns
true if adaptation method is not NONE, false otherwise

Reimplemented from Dune::Fem::AdaptationManagerInterface.

template<class GridType , class RestProlOperatorImp >
virtual int Dune::Fem::AdaptationManagerBase< GridType, RestProlOperatorImp >::balanceCounter ( ) const
inlinevirtual

default load balancing counter is zero

Reimplemented from Dune::Fem::AdaptationManagerInterface.

Reimplemented in Dune::Fem::AdaptationManager< GridType, RestProlOperatorImp >.

template<class GridType , class RestProlOperatorImp >
static DofManagerType& Dune::Fem::AdaptationManagerBase< GridType, RestProlOperatorImp >::getDofManager ( const GridType &  grid)
inlinestaticprotected
template<class GridType , class RestProlOperatorImp >
RestProlOperatorImp& Dune::Fem::AdaptationManagerBase< GridType, RestProlOperatorImp >::getRestProlOp ( )
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

template<class GridType , class RestProlOperatorImp >
virtual bool Dune::Fem::AdaptationManagerBase< GridType, RestProlOperatorImp >::loadBalance ( )
inlinevirtual

default load balancing method which does nothing

Reimplemented from Dune::Fem::AdaptationManagerInterface.

Reimplemented in Dune::Fem::AdaptationManager< GridType, RestProlOperatorImp >.

virtual double Dune::Fem::LoadBalancerInterface::loadBalanceTime ( ) const
inlinevirtualinherited

time that last load balance cycle took

Reimplemented in Dune::Fem::AdaptationManager< GridType, RestProlOperatorImp >, and Dune::Fem::LoadBalancer< GridType >.

template<class GridType >
virtual const char* Dune::Fem::AdaptationMethod< GridType >::methodName ( ) const
inlinevirtualinherited

returns name of adaptation method

Returns
name of adaptation method

Reimplemented from Dune::Fem::AdaptationManagerInterface.

template<class DiscrOpType >
void Dune::Fem::ObjPointerStorage::saveObjPointer ( DiscrOpType *  discrOp)
inlineinherited

Store new generated DiscreteOperator Pointer.

References Dune::Fem::ObjPointer< ObjType >::next.

template<class DiscrOpType , class LocalOpType >
void Dune::Fem::ObjPointerStorage::saveObjPointer ( DiscrOpType *  discrOp,
LocalOpType *  lop 
)
inlineinherited

Store new generated DiscreteOperator Pointer and the LocalOperator pointer

Member Data Documentation

template<class GridType >
AdaptationMethodType Dune::Fem::AdaptationMethod< GridType >::adaptationMethod_
protectedinherited

method identifier

template<class GridType , class RestProlOperatorImp >
double Dune::Fem::AdaptationManagerBase< GridType, RestProlOperatorImp >::adaptTime_
protected

time that adaptation took

template<class GridType , class RestProlOperatorImp >
DofManagerType& Dune::Fem::AdaptationManagerBase< GridType, RestProlOperatorImp >::dm_
protected

DofManager corresponding to grid.

template<class GridType , class RestProlOperatorImp >
GridType& Dune::Fem::AdaptationManagerBase< GridType, RestProlOperatorImp >::grid_
protected

corresponding grid

template<class GridType , class RestProlOperatorImp >
RestProlOperatorImp& Dune::Fem::AdaptationManagerBase< GridType, RestProlOperatorImp >::rpOp_
protected

Restriction and Prolongation Operator.

template<class GridType , class RestProlOperatorImp >
bool Dune::Fem::AdaptationManagerBase< GridType, RestProlOperatorImp >::wasChanged_
mutableprotected

flag for restriction


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