3 boost/numeric/odeint/stepper/generation/generation_rosenbrock4.hpp
6 Enable the factory functions for the controller and the dense output of the Rosenbrock4 method.
9 Copyright 2011-2012 Karsten Ahnert
10 Copyright 2011-2012 Mario Mulansky
12 Distributed under the Boost Software License, Version 1.0.
13 (See accompanying file LICENSE_1_0.txt or
14 copy at http://www.boost.org/LICENSE_1_0.txt)
18 #ifndef BOOST_NUMERIC_ODEINT_STEPPER_GENERATION_GENERATION_ROSENBROCK4_HPP_INCLUDED
19 #define BOOST_NUMERIC_ODEINT_STEPPER_GENERATION_GENERATION_ROSENBROCK4_HPP_INCLUDED
21 #include <boost/numeric/odeint/stepper/rosenbrock4.hpp>
22 #include <boost/numeric/odeint/stepper/rosenbrock4_controller.hpp>
23 #include <boost/numeric/odeint/stepper/rosenbrock4_dense_output.hpp>
31 template< class Value , class Coefficients , class Resize >
32 struct get_controller< rosenbrock4< Value , Coefficients , Resize > >
34 typedef rosenbrock4< Value , Coefficients , Resize > stepper_type;
35 typedef rosenbrock4_controller< stepper_type > type;
40 template< class Value , class Coefficients , class Resize >
41 struct get_dense_output< rosenbrock4< Value , Coefficients , Resize > >
43 typedef rosenbrock4< Value , Coefficients , Resize > stepper_type;
44 typedef rosenbrock4_controller< stepper_type > controller_type;
45 typedef rosenbrock4_dense_output< controller_type > type;
50 // controller factory for controlled_runge_kutta
51 template< class Stepper >
52 struct dense_output_factory< Stepper , rosenbrock4_dense_output< rosenbrock4_controller< Stepper > > >
54 typedef Stepper stepper_type;
55 typedef rosenbrock4_controller< stepper_type > controller_type;
56 typedef typename stepper_type::value_type value_type;
57 typedef typename stepper_type::time_type time_type;
58 typedef rosenbrock4_dense_output< controller_type > dense_output_type;
60 dense_output_type operator()( value_type abs_error , value_type rel_error , const stepper_type &stepper )
62 return dense_output_type( controller_type( abs_error , rel_error , stepper ) );
65 dense_output_type operator()( value_type abs_error , value_type rel_error ,
66 time_type max_dt, const stepper_type &stepper )
68 return dense_output_type( controller_type( abs_error , rel_error , max_dt , stepper ) );
79 #endif // BOOST_NUMERIC_ODEINT_STEPPER_GENERATION_GENERATION_ROSENBROCK4_HPP_INCLUDED