Newer
Older
// ============================================================================
// == ==
// == AMDiS - Adaptive multidimensional simulations ==
// == ==
// ============================================================================
// == ==
// == Institut fr Wissenschaftliches Rechnen ==
// == Zellescher Weg 12-14 ==
// == 01069 Dresden ==
// == germany ==
// == ==
// ============================================================================
// == ==
// == https://gforge.zih.tu-dresden.de/projects/amdis/ ==
// == ==
// ============================================================================
/** \file AdaptBase.h */
#ifndef AMDIS_ADAPTBASE_H
#define AMDIS_ADAPTBASE_H
#include <string>
#include "AMDiS_fwd.h"
class AdaptBase
{
public:
ProblemIterationInterface *problemIteration,
ProblemTimeInterface *problemTime = NULL,
AdaptInfo *initialAdaptInfo = NULL)
problemIteration_(problemIteration),
problemTime_(problemTime),
initialAdaptInfo_(initialAdaptInfo)
/** \brief
* Pure virtual method. Must be overloaded by sub classes to perform
* a concrete adaption loop.
*/
virtual int adapt() = 0;
inline ProblemIterationInterface *getProblemIteration()
{
inline void setProblemIteration(ProblemIterationInterface *pii)
{
inline AdaptInfo *getAdaptInfo()
{
inline ProblemTimeInterface *getProblemTime()
{
inline void setProblemTime(ProblemTimeInterface *pti)
{
problemTime_ = pti;
}
inline AdaptInfo *getInitialAdaptInfo()
{

Thomas Witkowski
committed
return initialAdaptInfo_;
ProblemIterationInterface *problemIteration_;
ProblemTimeInterface *problemTime_;
/** \brief
* Adapt info for initial adapt. Will be given to
* problemTime_->solveInitialProblem().
*/
AdaptInfo *initialAdaptInfo_;
static int info_;
};
}
#endif