AMDiS 2.10
The Adaptive Multi-Dimensional Simulation Toolbox
StandardProblemIteration Class Reference

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...
 
ProblemStatBaseproblem (int number=0) override
 Return the managed ProblemStat problem, by number. More...
 
ProblemStatBaseproblem (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 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. More...
 
virtual ProblemStatBaseproblem (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

ProblemStatBaseproblem_
 The problem to solve.
 

Detailed Description

A master problem for a single non coupled problem.

Member Function Documentation

◆ beginIteration()

void beginIteration ( AdaptInfo adaptInfo)
overridevirtual

Implementation of ProblemIterationIterface::beginIteration()

Reimplemented from ProblemIterationInterface.

References AdaptInfo::spaceIteration().

◆ endIteration()

void endIteration ( AdaptInfo adaptInfo)
overridevirtual

◆ name()

std::string const & name ( ) const
overridevirtual

Returns the name of the problem.

Implements ProblemIterationInterface.

References ProblemStatBase::name(), and StandardProblemIteration::problem_.

Referenced by StandardProblemIteration::problem().

◆ numProblems()

int numProblems ( ) const
inlineoverridevirtual

Returns number of managed problems.

Implements ProblemIterationInterface.

◆ oneIteration()

◆ problem() [1/2]

ProblemStatBase & problem ( int  number = 0)
overridevirtual

Return the managed ProblemStat problem, by number.

Implements ProblemIterationInterface.

References StandardProblemIteration::problem_.

◆ problem() [2/2]

ProblemStatBase & problem ( std::string const &  name)
overridevirtual

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