5#include <amdis/ProblemInstatBase.hpp>
6#include <amdis/ProblemStat.hpp>
7#include <amdis/common/TypeTraits.hpp>
9#include <dune/grid/yaspgrid.hh>
23 template <
class Traits>
62 "OldSolution need to be created. Call initialize with INIT_UH_OLD.");
70 "OldSolution need to be created. Call initialize with INIT_UH_OLD.");
79 template <
class Range = void,
class... Indices>
83 "OldSolution need to be created. Call initialize with INIT_UH_OLD.");
104 template <
class Traits>
108 template <
class Traits>
119#include "ProblemInstat.inc.hpp"
Holds adapt parameters and infos about the problem.
Definition: AdaptInfo.hpp:26
The basic container that stores a base vector and a corresponding basis.
Definition: DOFVector.hpp:43
The Flag class encapsulates flags which represents simple information. Used e.g. while mesh traversal...
Definition: Flag.hpp:14
Base class for ProblemInstat.
Definition: ProblemInstatBase.hpp:21
virtual std::string const & name() const
Return the name of the instationary problem name_.
Definition: ProblemInstatBase.hpp:47
Standard implementation of ProblemTimeInterface for a time dependent problems.
Definition: ProblemInstat.hpp:26
void closeTimestep(AdaptInfo &adaptInfo) override
Implementation of ProblemTimeInterface::closeTimestep().
Definition: ProblemInstat.inc.hpp:22
ProblemInstat(std::string const &name, ProblemType &prob)
Constructs a ProblemInstat with prob as its stationary problem, stored as reference.
Definition: ProblemInstat.hpp:34
std::shared_ptr< SolutionVector > oldSolutionVector()
Returns ref of oldSolution.
Definition: ProblemInstat.hpp:67
void createUhOld()
Used in initialize() to create the oldSolution_.
Definition: ProblemInstat.inc.hpp:39
std::shared_ptr< SolutionVector > oldSolution_
Solution of the last timestep.
Definition: ProblemInstat.hpp:99
ProblemType & problemStat()
Returns problemStat.
Definition: ProblemInstat.hpp:55
auto oldSolution(Indices... ii) const
Return a const view to a oldSolution component.
Definition: ProblemInstat.hpp:80
void initTimestep(AdaptInfo &adaptInfo) override
Implementation of ProblemTimeInterface::initTimestep().
Definition: ProblemInstat.inc.hpp:51
void initialize(Flag initFlag=INIT_NOTHING)
Initialisation of the problem.
Definition: ProblemInstat.inc.hpp:30
ProblemType * problemStat_
Space problem solved in each timestep. (non-owning pointer)
Definition: ProblemInstat.hpp:96
std::shared_ptr< SolutionVector const > oldSolutionVector() const
Returns const-ref of oldSolution.
Definition: ProblemInstat.hpp:59
void transferInitialSolution(AdaptInfo &adaptInfo) override
Implementation of ProblemTimeInterface::transferInitialSolution().
Definition: ProblemInstat.inc.hpp:11
ProblemInstat(std::string const &name, ProblemType &prob, ProblemStatBase &initialProb)
Constructor. Stores a reference to prob and initialProb.
Definition: ProblemInstat.hpp:40
Interface for time independent problems. Concrete problems must override all pure virtual methods....
Definition: ProblemStatBase.hpp:59
Definition: ProblemStat.hpp:55