Class documentation of Concepts

Loading...
Searching...
No Matches
rungekutta4.hh
Go to the documentation of this file.
1
6#ifndef rungekutta4_hh
7#define rungekutta4_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 4th order **
25
37 public:
51 const concepts::Vector<Real>& Y0,
52 Real dt);
53 virtual ~RungeKutta4();
54 protected:
55 virtual std::ostream& info(std::ostream& os) const;
56 virtual void next();
57 private:
63 concepts::Vector<Real> Yn1_; // Yn1 = Y(t_{n-1})
64 };
65
66}
67
68#endif // rungekutta4_hh
RungeKutta4(concepts::SolverFabric< Real > &fabric, concepts::Operator< Real > &D1, concepts::Operator< Real > &D0, timestepping::TimeVector &trhs, const concepts::Vector< Real > &Y0, Real dt)
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
double Real
Definition typedefs.hh:39