File indexing completed on 2025-01-18 09:42:55
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018 #ifndef BOOST_NUMERIC_ODEINT_STEPPER_GENERATION_GENERATION_ROSENBROCK4_HPP_INCLUDED
0019 #define BOOST_NUMERIC_ODEINT_STEPPER_GENERATION_GENERATION_ROSENBROCK4_HPP_INCLUDED
0020
0021 #include <boost/numeric/odeint/stepper/rosenbrock4.hpp>
0022 #include <boost/numeric/odeint/stepper/rosenbrock4_controller.hpp>
0023 #include <boost/numeric/odeint/stepper/rosenbrock4_dense_output.hpp>
0024
0025
0026 namespace boost {
0027 namespace numeric {
0028 namespace odeint {
0029
0030
0031 template< class Value , class Coefficients , class Resize >
0032 struct get_controller< rosenbrock4< Value , Coefficients , Resize > >
0033 {
0034 typedef rosenbrock4< Value , Coefficients , Resize > stepper_type;
0035 typedef rosenbrock4_controller< stepper_type > type;
0036 };
0037
0038
0039
0040 template< class Value , class Coefficients , class Resize >
0041 struct get_dense_output< rosenbrock4< Value , Coefficients , Resize > >
0042 {
0043 typedef rosenbrock4< Value , Coefficients , Resize > stepper_type;
0044 typedef rosenbrock4_controller< stepper_type > controller_type;
0045 typedef rosenbrock4_dense_output< controller_type > type;
0046 };
0047
0048
0049
0050
0051 template< class Stepper >
0052 struct dense_output_factory< Stepper , rosenbrock4_dense_output< rosenbrock4_controller< Stepper > > >
0053 {
0054 typedef Stepper stepper_type;
0055 typedef rosenbrock4_controller< stepper_type > controller_type;
0056 typedef typename stepper_type::value_type value_type;
0057 typedef typename stepper_type::time_type time_type;
0058 typedef rosenbrock4_dense_output< controller_type > dense_output_type;
0059
0060 dense_output_type operator()( value_type abs_error , value_type rel_error , const stepper_type &stepper )
0061 {
0062 return dense_output_type( controller_type( abs_error , rel_error , stepper ) );
0063 }
0064
0065 dense_output_type operator()( value_type abs_error , value_type rel_error ,
0066 time_type max_dt, const stepper_type &stepper )
0067 {
0068 return dense_output_type( controller_type( abs_error , rel_error , max_dt , stepper ) );
0069 }
0070 };
0071
0072
0073
0074 }
0075 }
0076 }
0077
0078
0079 #endif