Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:42:55

0001 /*
0002  [auto_generated]
0003  boost/numeric/odeint/stepper/generation/generation_rosenbrock4.hpp
0004 
0005  [begin_description]
0006  Enable the factory functions for the controller and the dense output of the Rosenbrock4 method.
0007  [end_description]
0008 
0009  Copyright 2011-2012 Karsten Ahnert
0010  Copyright 2011-2012 Mario Mulansky
0011 
0012  Distributed under the Boost Software License, Version 1.0.
0013  (See accompanying file LICENSE_1_0.txt or
0014  copy at http://www.boost.org/LICENSE_1_0.txt)
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 // controller factory for controlled_runge_kutta
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 } // odeint
0075 } // numeric
0076 } // boost
0077 
0078 
0079 #endif // BOOST_NUMERIC_ODEINT_STEPPER_GENERATION_GENERATION_ROSENBROCK4_HPP_INCLUDED