]> https://gitweb.dealii.org/ - dealii.git/blob
276358a12e525e0dfad996e870b3b4bcce70bf88
[dealii.git] /
1 /*
2  [auto_generated]
3  boost/numeric/odeint/stepper/generation/generation_dense_output_runge_kutta.hpp
4
5  [begin_description]
6  Specialization of the controller factory for the dense_output_runge_kutta class.
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_DENSE_OUTPUT_RUNGE_KUTTA_HPP_INCLUDED
19 #define BOOST_NUMERIC_ODEINT_STEPPER_GENERATION_GENERATION_DENSE_OUTPUT_RUNGE_KUTTA_HPP_INCLUDED
20
21 #include <boost/numeric/odeint/stepper/controlled_runge_kutta.hpp>
22 #include <boost/numeric/odeint/stepper/dense_output_runge_kutta.hpp>
23 #include <boost/numeric/odeint/stepper/generation/make_dense_output.hpp>
24
25 namespace boost {
26 namespace numeric {
27 namespace odeint {
28
29 // controller factory for controlled_runge_kutta
30 template< class Stepper >
31 struct dense_output_factory< Stepper , dense_output_runge_kutta< controlled_runge_kutta< Stepper > > >
32 {
33     typedef Stepper stepper_type;
34     typedef controlled_runge_kutta< stepper_type > controller_type;
35     typedef typename controller_type::error_checker_type error_checker_type;
36     typedef typename controller_type::step_adjuster_type step_adjuster_type;
37     typedef typename stepper_type::value_type value_type;
38     typedef typename stepper_type::time_type time_type;
39     typedef dense_output_runge_kutta< controller_type > dense_output_type;
40
41     dense_output_type operator()( value_type abs_error , value_type rel_error , const stepper_type &stepper )
42     {
43         return dense_output_type( controller_type( error_checker_type( abs_error , rel_error ) ,
44                                                    step_adjuster_type() , stepper ) );
45     }
46
47     dense_output_type operator()( value_type abs_error , value_type rel_error ,
48                                   time_type max_dt , const stepper_type &stepper )
49     {
50         return dense_output_type(
51                 controller_type( error_checker_type( abs_error , rel_error) ,
52                                  step_adjuster_type( max_dt ) , stepper ) );
53     }
54 };
55
56
57
58
59
60 } // odeint
61 } // numeric
62 } // boost
63
64
65 #endif // BOOST_NUMERIC_ODEINT_STEPPER_GENERATION_GENERATION_DENSE_OUTPUT_RUNGE_KUTTA_HPP_INCLUDED

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.