ProblemInstatBase.cpp 617 Bytes
Newer Older
1
2
3
4
#include "ProblemInstatBase.hpp"

#include "AdaptInfo.hpp"
#include "AdaptStationary.hpp"
5
#include "ProblemStatBase.hpp"
6
7
#include "StandardProblemIteration.hpp"

8
9
10
11
namespace AMDiS {

void ProblemInstatBase::setTime(AdaptInfo& adaptInfo)
{
Praetorius, Simon's avatar
Praetorius, Simon committed
12
13
  time_ = adaptInfo.time();
  tau_ = adaptInfo.timestep();
14
  invTau_ = 1.0 / tau_;
15
16
17
18
}


void ProblemInstatBase::solveInitialProblem(AdaptInfo& adaptInfo)
19
{
20
21
22
23
24
  if (initialProblem_) {
    StandardProblemIteration iteration(*initialProblem_);
    AdaptStationary initialAdapt(name_ + "->initial->adapt", iteration, adaptInfo);
    initialAdapt.adapt();
  }
25
}
26
27

} // end namespace AMDiS