1 /* 2 [auto_generated] 3 boost/numeric/odeint/stepper/generation/generation_rosenbrock4.hpp 4 5 [begin_description] 6 Enable the factory functions for the controller and the dense output of the Rosenbrock4 method. 7 [end_description] 8 9 Copyright 2011-2012 Karsten Ahnert 10 Copyright 2011-2012 Mario Mulansky 11 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) 15 */ 16 17 18 #ifndef BOOST_NUMERIC_ODEINT_STEPPER_GENERATION_GENERATION_ROSENBROCK4_HPP_INCLUDED 19 #define BOOST_NUMERIC_ODEINT_STEPPER_GENERATION_GENERATION_ROSENBROCK4_HPP_INCLUDED 20 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> 24 25 26 namespace boost { 27 namespace numeric { 28 namespace odeint { 29 30 31 template< class Value , class Coefficients , class Resize > 32 struct get_controller< rosenbrock4< Value , Coefficients , Resize > > 33 { 34 typedef rosenbrock4< Value , Coefficients , Resize > stepper_type; 35 typedef rosenbrock4_controller< stepper_type > type; 36 }; 37 38 39 40 template< class Value , class Coefficients , class Resize > 41 struct get_dense_output< rosenbrock4< Value , Coefficients , Resize > > 42 { 43 typedef rosenbrock4< Value , Coefficients , Resize > stepper_type; 44 typedef rosenbrock4_controller< stepper_type > controller_type; 45 typedef rosenbrock4_dense_output< controller_type > type; 46 }; 47 48 49 50 // controller factory for controlled_runge_kutta 51 template< class Stepper > 52 struct dense_output_factory< Stepper , rosenbrock4_dense_output< rosenbrock4_controller< Stepper > > > 53 { 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; 59 operator ()boost::numeric::odeint::dense_output_factory60 dense_output_type operator()( value_type abs_error , value_type rel_error , const stepper_type &stepper ) 61 { 62 return dense_output_type( controller_type( abs_error , rel_error , stepper ) ); 63 } 64 operator ()boost::numeric::odeint::dense_output_factory65 dense_output_type operator()( value_type abs_error , value_type rel_error , 66 time_type max_dt, const stepper_type &stepper ) 67 { 68 return dense_output_type( controller_type( abs_error , rel_error , max_dt , stepper ) ); 69 } 70 }; 71 72 73 74 } // odeint 75 } // numeric 76 } // boost 77 78 79 #endif // BOOST_NUMERIC_ODEINT_STEPPER_GENERATION_GENERATION_ROSENBROCK4_HPP_INCLUDED 80