3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>Function template integrate_const</title>
5 <link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css">
6 <meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7 <link rel="home" href="../../../index.html" title="Chapter 1. Boost.Numeric.Odeint">
8 <link rel="up" href="../../../header/boost/numeric/odeint/integrate/integrate_const_hpp.html" title="Header <boost/numeric/odeint/integrate/integrate_const.hpp>">
9 <link rel="prev" href="../../../header/boost/numeric/odeint/integrate/integrate_const_hpp.html" title="Header <boost/numeric/odeint/integrate/integrate_const.hpp>">
10 <link rel="next" href="../../../header/boost/numeric/odeint/integrate/integrate_n_steps_hpp.html" title="Header <boost/numeric/odeint/integrate/integrate_n_steps.hpp>">
12 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13 <table cellpadding="2" width="100%"><tr>
14 <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../logo.jpg"></td>
15 <td align="center"><a href="../../../../../../../../index.html">Home</a></td>
16 <td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td>
17 <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
18 <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
19 <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
22 <div class="spirit-nav">
23 <a accesskey="p" href="../../../header/boost/numeric/odeint/integrate/integrate_const_hpp.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../header/boost/numeric/odeint/integrate/integrate_const_hpp.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../../../header/boost/numeric/odeint/integrate/integrate_n_steps_hpp.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
25 <div class="refentry">
26 <a name="boost.numeric.odeint.integrat_idm45853741222752"></a><div class="titlepage"></div>
27 <div class="refnamediv">
28 <h2><span class="refentrytitle">Function template integrate_const</span></h2>
29 <p>boost::numeric::odeint::integrate_const — Integrates the ODE with constant step size. </p>
31 <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
32 <div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../../header/boost/numeric/odeint/integrate/integrate_const_hpp.html" title="Header <boost/numeric/odeint/integrate/integrate_const.hpp>">boost/numeric/odeint/integrate/integrate_const.hpp</a>>
35 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> Stepper<span class="special">,</span> <span class="keyword">typename</span> System<span class="special">,</span> <span class="keyword">typename</span> State<span class="special">,</span> <span class="keyword">typename</span> Time<span class="special">,</span>
36 <span class="keyword">typename</span> Observer<span class="special">,</span> <span class="keyword">typename</span> StepOverflowChecker<span class="special">></span>
37 <span class="identifier">size_t</span> <span class="identifier">integrate_const</span><span class="special">(</span><span class="identifier">Stepper</span> stepper<span class="special">,</span> <span class="identifier">System</span> system<span class="special">,</span> <span class="identifier">State</span> <span class="special">&</span> start_state<span class="special">,</span>
38 <span class="identifier">Time</span> start_time<span class="special">,</span> <span class="identifier">Time</span> end_time<span class="special">,</span> <span class="identifier">Time</span> dt<span class="special">,</span>
39 <span class="identifier">Observer</span> observer<span class="special">,</span> <span class="identifier">StepOverflowChecker</span> checker<span class="special">)</span><span class="special">;</span></pre></div>
40 <div class="refsect1">
41 <a name="idm45221369666640"></a><h2>Description</h2>
42 <p>Integrates the ODE defined by system using the given stepper. This method ensures that the observer is called at constant intervals dt. If the Stepper is a normal stepper without step size control, dt is also used for the numerical scheme. If a ControlledStepper is provided, the algorithm might reduce the step size to meet the error bounds, but it is ensured that the observer is always called at equidistant time points t0 + n*dt. If a DenseOutputStepper is used, the step size also may vary and the dense output is used to call the observer at equidistant time points. If a <code class="computeroutput"><a class="link" href="max_step_checker.html" title="Class max_step_checker">max_step_checker</a></code> is provided as StepOverflowChecker, a no_progress_error is thrown if too many steps (default: 500) are performed without progress, i.e. in between observer calls. If no checker is provided, no such overflow check is performed.</p>
46 <div class="variablelist"><table border="0" class="variablelist compact">
48 <col align="left" valign="top">
53 <td><p><span class="term">Parameters:</span></p></td>
54 <td><div class="variablelist"><table border="0" class="variablelist compact">
56 <col align="left" valign="top">
61 <td><p><span class="term"><code class="computeroutput">checker</code></span></p></td>
62 <td><p>[optional] Functor to check for step count overflows, if no checker is provided, no exception is thrown. </p></td>
65 <td><p><span class="term"><code class="computeroutput">dt</code></span></p></td>
66 <td><p>The time step between observer calls, <span class="emphasis"><em>not</em></span> necessarily the time step of the integration. </p></td>
69 <td><p><span class="term"><code class="computeroutput">end_time</code></span></p></td>
70 <td><p>The final integration time tend. </p></td>
73 <td><p><span class="term"><code class="computeroutput">observer</code></span></p></td>
74 <td><p>[optional] Function/Functor called at equidistant time intervals. </p></td>
77 <td><p><span class="term"><code class="computeroutput">start_state</code></span></p></td>
78 <td><p>The initial condition x0. </p></td>
81 <td><p><span class="term"><code class="computeroutput">start_time</code></span></p></td>
82 <td><p>The initial time t0. </p></td>
85 <td><p><span class="term"><code class="computeroutput">stepper</code></span></p></td>
86 <td><p>The stepper to be used for numerical integration. </p></td>
89 <td><p><span class="term"><code class="computeroutput">system</code></span></p></td>
90 <td><p>Function/Functor defining the rhs of the ODE. </p></td>
96 <td><p><span class="term">Returns:</span></p></td>
97 <td><p>The number of steps performed. </p></td>
103 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
104 <td align="left"></td>
105 <td align="right"><div class="copyright-footer">Copyright © 2009-2015 Karsten Ahnert and Mario Mulansky<p>
106 Distributed under the Boost Software License, Version 1.0. (See accompanying
107 file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
112 <div class="spirit-nav">
113 <a accesskey="p" href="../../../header/boost/numeric/odeint/integrate/integrate_const_hpp.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../header/boost/numeric/odeint/integrate/integrate_const_hpp.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../../../header/boost/numeric/odeint/integrate/integrate_n_steps_hpp.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>