DUNE-FEM (unstable)

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 <dune/fem/space/common/adaptationmanager.hh>

Public Member Functions

 AdaptationManagerBase (GridType &grid, RestProlOperatorImp &rpOp, const ParameterReader &parameter=Parameter::container())
 constructor of AdaptationManagerBase The following optional parameter can be used More...
 
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 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 bool isCallBackAdaptation () const
 return true if callback adaptation is used. More...
 
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 Public Attributes

static const int defaultMethod = 1
 default method is generic
 

Protected Attributes

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

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.

Constructor & Destructor Documentation

◆ AdaptationManagerBase()

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:

Member Function Documentation

◆ adaptationTime()

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.

◆ adaptive()

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.

References Dune::Fem::AdaptationMethod< GridType >::adaptationMethod_, and Dune::Fem::AdaptationMethod< GridType >::none.

◆ getRestProlOp()

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

◆ isCallBackAdaptation()

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

◆ methodName()

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

◆ saveObjPointer()

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

Store new generated DiscreteOperator Pointer and the LocalOperator pointer

References Dune::Fem::ObjPointerStorage::saveObjPointer().


The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.80.0 (Apr 27, 22:29, 2024)