Class documentation of Concepts

Loading...
Searching...
No Matches
rungekutta2.hh
Go to the documentation of this file.
1
6#ifndef rungekutta2_hh
7#define rungekutta2_hh
8
9#include "basics/typedefs.hh"
10#include "function/vector.hh"
11#include "strategy.hh"
12
13namespace concepts {
14 template<typename F>
15 class Operator;
16}
17
18namespace timestepping {
19
20 using concepts::Real;
21
22 class TimeVector;
23
24 // ************************************************* Runge Kutta 2nd order **
25
38 public:
52 const concepts::Vector<Real>& Y0,
53 Real dt,
54 Real alpha = 0.5);
55 virtual ~RungeKutta2();
56 protected:
57 virtual std::ostream& info(std::ostream& os) const;
58 virtual void next();
59 private:
65 concepts::Vector<Real> Yn1_; // Yn1 = Y(t_{n-1})
67 Real alpha_;
68 };
69
70}
71
72#endif // rungekutta2_hh
73
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
RungeKutta2(concepts::SolverFabric< Real > &fabric, concepts::Operator< Real > &D1, concepts::Operator< Real > &D0, timestepping::TimeVector &trhs, const concepts::Vector< Real > &Y0, Real dt, Real alpha=0.5)
double Real
Definition typedefs.hh:39