|
dune-fem 2.12-git
|
Loading...
Searching...
No Matches
adaptationmanager.hh
Go to the documentation of this file.
91 virtual bool isCallBackAdaptation() const { return (am_) ? (am_->isCallBackAdaptation()) : false; }
160 const bool output = ( ! noOutput && Parameter :: verbose( Parameter ::parameterOutput ) && MPIManager::isMainThread() );
194 std::cerr << "WARNING: AdaptationMethod: hierarchy not implemented, switching from 'generic' to 'callback'!" << std::endl;
317 AdaptationManagerBase ( GridType &grid, RestProlOperatorImp &rpOp, const ParameterReader ¶meter = Parameter::container() )
350 DUNE_THROW(InvalidStateException,"AdaptationManagerBase::adapt: only call in single thread mode!");
672 AdaptationManager ( GridType &grid, RestProlOperatorImp &rpOp, int balanceCounter, const ParameterReader ¶meter = Parameter::container() )
680 DUNE_THROW(InvalidStateException,"Only one instance of AdaptationManager allowed per grid instance");
702 AdaptationManager ( GridType &grid, RestProlOperatorImp &rpOp, const ParameterReader ¶meter = Parameter::container() )
831 explicit AdaptationManager ( DiscreteFunctionSpaceType &space, DataProjectionType &&dataProjection )
930 using BaseType = Dune::Fem::hpDG::DataProjection< DiscreteFunctionSpace, DataProjectionWrapper >;
int maxLevel() const
SLList< T, A > & operator=(const SLList< T, A > &other)
virtual void operator()()=0
#define DUNE_THROW(E,...)
interfaces and wrappers needed for the callback adaptation provided by AlbertaGrid and ALUGrid
GhostEntity
STL namespace.
double elapsed() const noexcept
bool preAdapt()
void postAdapt()
bool loadBalance()
bool adapt()
void globalRefine(int refCount)
static void backupValue(const std::string &token, const T &value)
Definition persistencemanager.hh:395
static void restoreValue(const std::string &token, T &value)
Definition persistencemanager.hh:401
base class for auto persistent objects
Definition persistencemanager.hh:580
static ParameterContainer & container()
Definition io/parameter.hh:199
static bool verbose()
obtain the cached value for fem.verbose with default verbosity level 2
Definition io/parameter.hh:466
Definition misc/capabilities.hh:167
static bool isMainThread()
return true if the current thread is the main thread (i.e. thread 0)
Definition mpimanager.hh:448
Definition objpointer.hh:42
AdaptationManagerInterface class.
Definition adaptationmanager.hh:61
virtual double adaptationTime() const
time that last adaptation cycle took
Definition adaptationmanager.hh:124
virtual const char * methodName() const
returns name of adaptation method
Definition adaptationmanager.hh:96
virtual void adapt()
on call of this method the internal adaptation operator is called.
Definition adaptationmanager.hh:72
virtual bool adaptive() const
returns true if adaptation manager as adaptation method different to NONE
Definition adaptationmanager.hh:85
virtual ~AdaptationManagerInterface()
destructor
Definition adaptationmanager.hh:67
virtual bool loadBalance()
call load balance, returns true if grid was changed
Definition adaptationmanager.hh:112
AdaptationManagerInterface()
default constructor
Definition adaptationmanager.hh:64
AdaptationManagerInterface & operator=(const AdaptationManagerInterface &am)
Assignment operator, pointer to adaptation manager is stored.
Definition adaptationmanager.hh:104
virtual int balanceCounter() const
Definition adaptationmanager.hh:118
virtual bool isCallBackAdaptation() const
return true if callback adaptation is used.
Definition adaptationmanager.hh:91
AdaptationMethod is a simple adaptation method reader class.
Definition adaptationmanager.hh:137
virtual ~AdaptationMethod()
virtual destructor
Definition adaptationmanager.hh:205
AdaptationMethodType adaptationMethod_
method identifier
Definition adaptationmanager.hh:226
virtual const char * methodName() const
returns name of adaptation method
Definition adaptationmanager.hh:208
virtual bool adaptive() const
returns true if adaptation manager as adaptation method different to NONE
Definition adaptationmanager.hh:219
AdaptationMethod(const GridType &grid, const ParameterReader ¶meter=Parameter::container(), const bool noOutput=false)
constructor of AdaptationMethod The following optional parameters are used
Definition adaptationmanager.hh:155
AdaptationMethodType
type of adaptation method
Definition adaptationmanager.hh:140
@ none
no adaptation is performed
Definition adaptationmanager.hh:140
@ generic
a generic restriction and prolongation algorithm is used
Definition adaptationmanager.hh:141
@ callback
the callback mechanism from AlbertaGrid and ALUGrid is used
Definition adaptationmanager.hh:142
static const int defaultMethod
default method is generic
Definition adaptationmanager.hh:146
virtual bool isCallBackAdaptation() const
return true if callback adaptation is used.
Definition adaptationmanager.hh:222
This class manages the adaptation process. If the method adapt is called, then the grid is adapted an...
Definition adaptationmanager.hh:238
virtual int balanceCounter() const
default load balancing counter is zero
Definition adaptationmanager.hh:371
virtual ~AdaptationManagerBase()
destructor
Definition adaptationmanager.hh:327
AdaptationManagerBase(GridType &grid, RestProlOperatorImp &rpOp, const ParameterReader ¶meter=Parameter::container())
constructor of AdaptationManagerBase The following optional parameter can be used
Definition adaptationmanager.hh:317
double adaptTime_
time that adaptation took
Definition adaptationmanager.hh:601
GridType & grid_
corresponding grid
Definition adaptationmanager.hh:592
bool wasChanged_
flag for restriction
Definition adaptationmanager.hh:604
RestProlOperatorImp & rpOp_
Restriction and Prolongation Operator.
Definition adaptationmanager.hh:598
virtual bool loadBalance()
default load balancing method which does nothing
Definition adaptationmanager.hh:365
virtual double adaptationTime() const
time that last adaptation cycle took
Definition adaptationmanager.hh:377
static DofManagerType & getDofManager(const GridType &grid)
Definition adaptationmanager.hh:383
GridType::Traits::LocalIdSet LocalIdSet
Definition adaptationmanager.hh:306
virtual void adapt()
according to adaption method parameter the adaption procedure is done, 0 == no adaptation 1 == generi...
Definition adaptationmanager.hh:344
RestProlOperatorImp & getRestProlOp()
Definition adaptationmanager.hh:332
DofManagerType & dm_
DofManager corresponding to grid.
Definition adaptationmanager.hh:595
factory class to create adaptation manager reference counter
Definition adaptationmanager.hh:610
static ObjectType * createObject(const KeyType &key)
Definition adaptationmanager.hh:611
static void deleteObject(ObjectType *obj)
Definition adaptationmanager.hh:615
This class manages the adaptation process including a load balancing after the adaptation step....
Definition adaptationmanager.hh:631
int balanceCounter() const
returns actual balanceCounter for checkpointing
Definition adaptationmanager.hh:772
void restore()
retore internal data
Definition adaptationmanager.hh:782
AdaptationManager(GridType &grid, RestProlOperatorImp &rpOp, int balanceCounter, const ParameterReader ¶meter=Parameter::container())
constructor of AdaptationManager
Definition adaptationmanager.hh:672
virtual double loadBalanceTime() const
time that last load balance cycle took
Definition adaptationmanager.hh:729
void backup() const
backup internal data
Definition adaptationmanager.hh:775
virtual bool loadBalance()
call load balance, returns true if grid was changed
Definition adaptationmanager.hh:715
virtual void adapt()
on call of this method the internal adaptation operator is called.
Definition adaptationmanager.hh:735
AdaptationManager(GridType &grid, RestProlOperatorImp &rpOp, const ParameterReader ¶meter=Parameter::container())
constructor of AdaptationManager
Definition adaptationmanager.hh:702
~AdaptationManager()
destructor decreasing reference counter
Definition adaptationmanager.hh:708
A class with one static method apply to globally refine a grid. All index sets are adapted to the new...
Definition adaptationmanager.hh:981
static void apply(GridType &grid, const int step)
apply global refinement and also adjust index sets and managed dof storage. However,...
Definition adaptationmanager.hh:988
A class with one static method apply for invoking the local adaptation procedure on a given grid inst...
Definition adaptationmanager.hh:1005
static void apply(GridType &grid)
apply local refinement and also adjust index sets and managed dof storage. However,...
Definition adaptationmanager.hh:1011
Definition adaptcallbackhandle.hh:26
Definition dofmanager.hh:786
This class manages the adaptation process. If the method adapt is called, then the grid is adapted an...
Definition loadbalancer.hh:66
discrete function space
T endl(T... args)
T space(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8