Tatooine
rungekutta4.h
Go to the documentation of this file.
1#ifndef TATOOINE_ODE_BOOST_RUNGEKUTTA4_H
2#define TATOOINE_ODE_BOOST_RUNGEKUTTA4_H
3//==============================================================================
5#include <boost/numeric/odeint/stepper/runge_kutta4.hpp>
6//==============================================================================
7namespace tatooine::ode::boost {
8//==============================================================================
9template <typename Real, size_t N>
10struct rk4_helper {
11 using type = ::boost::numeric::odeint::runge_kutta4<vec<Real, N>>;
12};
13template <typename Real, size_t N>
15//==============================================================================
16template <typename Real, size_t N>
17struct rungekutta4 : tatooine::ode::boost::solver<Real, N, rk4_t<Real, N>> {
19 : tatooine::ode::boost::solver<Real, N, rk4_t<Real, N>>(
20 rk4_t<Real, N>{}, stepsize) {}
21};
22//==============================================================================
23} // namespace tatooine::integration::boost
24//==============================================================================
25#endif
Definition: solver.h:9
Definition: controller_runge_kutta_with_domain_check.h:19
typename rk4_helper< Real, N >::type rk4_t
Definition: rungekutta4.h:14
Definition: algorithm.h:6
Definition: rungekutta4.h:10
::boost::numeric::odeint::runge_kutta4< vec< Real, N > > type
Definition: rungekutta4.h:11
Definition: rungekutta4.h:17
rungekutta4(Real stepsize=0.1)
Definition: rungekutta4.h:18
Definition: solver.h:22
auto stepsize() -> auto &
Definition: solver.h:96