22 #include <boost/functional/value_factory.hpp>
23 #include <boost/numeric/odeint.hpp>
27 using boost::value_factory;
34 template<
typename System,
typename State,
typename Stepper>
38 void operator()(System system, State& start_state,
39 double start_time,
double end_time,
double dt)
42 integrate_const(stepper,
43 system, start_state, start_time, end_time, dt);
52 OdeintFactories0Map::OdeintFactories0Map()
56 make_pair(
"adams_bashforth",
57 value_factory<Solver0<System, State, adams_bashforth<5, State>>>()),
58 make_pair(
"bulirsch_stoer",
59 value_factory<Solver0<System, State, bulirsch_stoer<State>>>()),
61 value_factory<Solver0<System, State, euler<State>>>()),
62 make_pair(
"modified_midpoint",
63 value_factory<Solver0<System, State, modified_midpoint<State>>>()),
64 make_pair(
"runge_kutta4",
65 value_factory<Solver0<System, State, runge_kutta4<State>>>()),
Interface for OdeintFactories0Map.
Namespace for the core simulator.