AMDiS  0.3
The Adaptive Multi-Dimensional Simulation Toolbox
ProblemIterationInterface Class Referenceabstract

Interface for master problems needed by the adaption loop. A master problem can handle one single or multiple coupled problems. In the latter case, the master problem can determine the execution order of the build, solve, estimate, and adapt steps of the single problems in oneIteration(). More...

#include <ProblemIterationInterface.hpp>

Inherited by StandardProblemIteration [virtual].

Public Member Functions

virtual void beginIteration (AdaptInfo &)
 Called before each adaption loop iteration.
 
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.
 
virtual void endIteration (AdaptInfo &)
 Called after each adaption loop iteration.
 
virtual int numProblems () const =0
 Returns number of managed problems.
 
virtual ProblemStatBaseproblem (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.
 
virtual ProblemStatBaseproblem (std::string const &name)=0
 Returns the problem with the given name.
 
virtual std::string const & name () const =0
 Returns the name of the problem.
 

Detailed Description

Interface for master problems needed by the adaption loop. A master problem can handle one single or multiple coupled problems. In the latter case, the master problem can determine the execution order of the build, solve, estimate, and adapt steps of the single problems in oneIteration().


The documentation for this class was generated from the following file: