generation_runge_kutta_dopri5.hpp 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. [auto_generated]
  3. boost/numeric/odeint/stepper/generation/generation_runge_kutta_dopri5.hpp
  4. [begin_description]
  5. Enable the factory functions for the controller and the dense output of the Runge-Kutta-Dormand-Prince5 method.
  6. [end_description]
  7. Copyright 2011 Karsten Ahnert
  8. Copyright 2011 Mario Mulansky
  9. Distributed under the Boost Software License, Version 1.0.
  10. (See accompanying file LICENSE_1_0.txt or
  11. copy at http://www.boost.org/LICENSE_1_0.txt)
  12. */
  13. #ifndef BOOST_NUMERIC_ODEINT_STEPPER_GENERATION_GENERATION_RUNGE_KUTTA_DOPRI5_HPP_INCLUDED
  14. #define BOOST_NUMERIC_ODEINT_STEPPER_GENERATION_GENERATION_RUNGE_KUTTA_DOPRI5_HPP_INCLUDED
  15. #include <boost/numeric/odeint/stepper/controlled_runge_kutta.hpp>
  16. #include <boost/numeric/odeint/stepper/dense_output_runge_kutta.hpp>
  17. #include <boost/numeric/odeint/stepper/runge_kutta_dopri5.hpp>
  18. #include <boost/numeric/odeint/stepper/generation/make_controlled.hpp>
  19. #include <boost/numeric/odeint/stepper/generation/make_dense_output.hpp>
  20. namespace boost {
  21. namespace numeric {
  22. namespace odeint {
  23. template< class State , class Value , class Deriv , class Time , class Algebra , class Operations , class Resize >
  24. struct get_controller< runge_kutta_dopri5< State , Value , Deriv , Time , Algebra , Operations , Resize > >
  25. {
  26. typedef runge_kutta_dopri5< State , Value , Deriv , Time , Algebra , Operations , Resize > stepper_type;
  27. typedef controlled_runge_kutta< stepper_type > type;
  28. };
  29. template< class State , class Value , class Deriv , class Time , class Algebra , class Operations , class Resize >
  30. struct get_dense_output< runge_kutta_dopri5< State , Value , Deriv , Time , Algebra , Operations , Resize > >
  31. {
  32. typedef runge_kutta_dopri5< State , Value , Deriv , Time , Algebra , Operations , Resize > stepper_type;
  33. typedef controlled_runge_kutta< stepper_type > controller_type;
  34. typedef dense_output_runge_kutta< controller_type > type;
  35. };
  36. } // odeint
  37. } // numeric
  38. } // boost
  39. #endif // BOOST_NUMERIC_ODEINT_STEPPER_GENERATION_GENERATION_RUNGE_KUTTA_DOPRI5_HPP_INCLUDED