DUNE-FEM (unstable)
adaptationmanager.hh
91 virtual bool isCallBackAdaptation() const { return (am_) ? (am_->isCallBackAdaptation()) : false; }
143 };
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 >;
interfaces and wrappers needed for the callback adaptation provided by AlbertaGrid and ALUGrid
discrete function space
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
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
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
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
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
base class for auto persistent objects
Definition: persistencemanager.hh:580
GridPartType::GridType GridType
type of underlying dune grid
Definition: discretefunctionspace.hh:214
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
Definition: objpointer.hh:42
static bool verbose()
obtain the cached value for fem.verbose with default verbosity level 2
Definition: parameter.hh:466
Manages the testriction and prolongation of discrete functions in -adaptive computations.
Definition: adaptationmanager.hh:811
void adapt()
perform adaptation
Definition: adaptationmanager.hh:861
int balanceCounter() const
please doc me
Definition: adaptationmanager.hh:899
bool adaptive() const
returns true
Definition: adaptationmanager.hh:858
AdaptationManager(const ThisType &)=delete
Deleted methods.
double adaptationTime() const
return time spent on adaptation
Definition: adaptationmanager.hh:887
bool loadBalance()
please doc me
Definition: adaptationmanager.hh:896
const char * methodName() const
return name of adaptation method
Definition: adaptationmanager.hh:884
double loadBalanceTime() const
please doc me
Definition: adaptationmanager.hh:902
Abstract definition of the local restriction and prolongation of discrete functions.
Definition: dataprojection.hh:29
Default exception if a function was called while the object is not in a valid state for that function...
Definition: exceptions.hh:281
double elapsed() const noexcept
Get elapsed user-time from last reset until now/last stop in seconds.
Definition: timer.hh:77
constexpr GeometryType none(unsigned int dim)
Returns a GeometryType representing a singular of dimension dim.
Definition: type.hh:471
STL namespace.
factory class to create adaptation manager reference counter
Definition: adaptationmanager.hh:610
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
A simple timing class.
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 12, 23:30, 2024)