A master problem for a single non coupled problem. More...
#include <StandardProblemIteration.hpp>
Inherits ProblemIterationInterface.
Inherited by StandardProblemIterationAdaptor< ProblemStat< Traits > >, and StandardProblemIterationAdaptor< Model >.
Public Member Functions | |
StandardProblemIteration (ProblemStatBase &prob) | |
constructor | |
void | beginIteration (AdaptInfo &adaptInfo) override |
Implementation of ProblemIterationIterface::beginIteration() More... | |
Flag | oneIteration (AdaptInfo &adaptInfo, Flag toDo) override |
Implementation of ProblemIterationInterface::oneIteration() More... | |
void | endIteration (AdaptInfo &adaptInfo) override |
Implementation of ProblemIterationInterface::endIteration() More... | |
std::string const & | name () const override |
Returns the name of the problem. More... | |
int | numProblems () const override |
Returns number of managed problems. More... | |
ProblemStatBase & | problem (int number=0) override |
Return the managed ProblemStat problem, by number. More... | |
ProblemStatBase & | problem (std::string const &name) override |
Return the managed ProblemStat problem, by name. More... | |
virtual void | beginIteration (AdaptInfo &) |
Called before each adaption loop iteration. More... | |
virtual Flag | oneIteration (AdaptInfo &adaptInfo, Flag toDo=FULL_ITERATION)=0 |
Determines the execution order of the single adaption steps. If adapt is true, mesh adaption will be performed. This allows to avoid mesh adaption, e.g. in timestep adaption loops of timestep adaptive strategies. More... | |
virtual void | endIteration (AdaptInfo &) |
Called after each adaption loop iteration. More... | |
virtual int | numProblems () const =0 |
Returns number of managed problems. More... | |
virtual ProblemStatBase & | problem (int number=0)=0 |
Returns the problem with the given number. If only one problem is managed by this master problem, the number hasn't to be given. More... | |
virtual ProblemStatBase & | problem (std::string const &name)=0 |
Returns the problem with the given name. More... | |
virtual std::string const & | name () const =0 |
Returns the name of the problem. More... | |
Protected Member Functions | |
Flag | buildAndAdapt (AdaptInfo &adaptInfo, Flag toDo) |
Nested assemblage and mesh adaption. | |
Protected Attributes | |
ProblemStatBase & | problem_ |
The problem to solve. | |
A master problem for a single non coupled problem.
|
overridevirtual |
Implementation of ProblemIterationIterface::beginIteration()
Reimplemented from ProblemIterationInterface.
References AdaptInfo::spaceIteration().
|
overridevirtual |
Implementation of ProblemIterationInterface::endIteration()
Reimplemented from ProblemIterationInterface.
References AdaptInfo::spaceIteration().
|
overridevirtual |
Returns the name of the problem.
Implements ProblemIterationInterface.
References ProblemStatBase::name(), and StandardProblemIteration::problem_.
Referenced by StandardProblemIteration::problem().
|
inlineoverridevirtual |
Returns number of managed problems.
Implements ProblemIterationInterface.
Implementation of ProblemIterationInterface::oneIteration()
Implements ProblemIterationInterface.
References StandardProblemIteration::buildAndAdapt(), ProblemStatBase::estimate(), Flag::isSet(), StandardProblemIteration::problem_, and ProblemStatBase::solve().
|
overridevirtual |
Return the managed ProblemStat problem, by number.
Implements ProblemIterationInterface.
References StandardProblemIteration::problem_.
|
overridevirtual |
Return the managed ProblemStat problem, by name.
Implements ProblemIterationInterface.
References ProblemStatBase::name(), StandardProblemIteration::name(), and StandardProblemIteration::problem_.