Contains all classes needed for space and time adaption. More...
#include <AdaptStationary.hpp>
Inherits AdaptBase.
Public Member Functions | |
AdaptStationary (std::string const &name, ProblemIterationInterface &problemIteration, AdaptInfo &adaptInfo) | |
Creates a AdaptStationary object with given name. | |
int | adapt () override |
Implementation of AdaptBase::adapt() More... | |
Public Member Functions inherited from AdaptBase | |
AdaptBase (std::string const &name, ProblemIterationInterface *problemIteration, AdaptInfo &adaptInfo, ProblemTimeInterface *problemTime=nullptr, AdaptInfo *initialAdaptInfo=nullptr) | |
Constructor. | |
virtual | ~AdaptBase ()=default |
Destructor. | |
virtual int | adapt ()=0 |
Pure virtual method. Must be overloaded by sub classes to perform a concrete adaption loop. More... | |
std::string const & | name () const |
Returns name. | |
ProblemIterationInterface * | problemIteration () const |
Returns problemIteration. | |
void | setProblemIteration (ProblemIterationInterface *problemIteration) |
AdaptInfo & | adaptInfo () const |
Returns adaptInfo. | |
ProblemTimeInterface * | problemTime () const |
Returns problemTime. | |
void | setProblemTime (ProblemTimeInterface *problemTime) |
AdaptInfo & | initialAdaptInfo () const |
Returns initialAdaptInfo. | |
Additional Inherited Members | |
Protected Attributes inherited from AdaptBase | |
std::string | name_ |
Name of the adaption loop. | |
ProblemIterationInterface * | problemIteration_ |
Problem iteration interface. | |
AdaptInfo & | adaptInfo_ |
Main adapt info. | |
ProblemTimeInterface * | problemTime_ |
problem time interface | |
AdaptInfo * | initialAdaptInfo_ |
Adapt info for initial adapt. Will be given to problemTime->solveInitialProblem(). | |
Contains all classes needed for space and time adaption.
AdaptStationary contains information about the adaptive procedure and the adapt procedure itself
|
overridevirtual |
Implementation of AdaptBase::adapt()
Implements AdaptBase.
References AdaptBase::adaptInfo_, ProblemIterationInterface::beginIteration(), ProblemIterationInterface::endIteration(), AdaptInfo::incSpaceIteration(), AdaptInfo::maxSpaceIteration(), ProblemIterationInterface::oneIteration(), AdaptBase::problemIteration_, AdaptInfo::spaceIteration(), and AdaptInfo::spaceToleranceReached().
Referenced by ProblemInstatBase::solveInitialProblem().