Interface for adaption loops. More...
#include <AdaptBase.hpp>
Inherited by AdaptInstationary, and AdaptStationary.
Public Member Functions | |
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. | |
Protected Attributes | |
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(). | |
Interface for adaption loops.
|
pure virtual |
Pure virtual method. Must be overloaded by sub classes to perform a concrete adaption loop.
Implemented in AdaptInstationary, and AdaptStationary.