summaryrefslogtreecommitdiff
path: root/boost/numeric/odeint/stepper/rosenbrock4_controller.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/numeric/odeint/stepper/rosenbrock4_controller.hpp')
-rw-r--r--boost/numeric/odeint/stepper/rosenbrock4_controller.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/boost/numeric/odeint/stepper/rosenbrock4_controller.hpp b/boost/numeric/odeint/stepper/rosenbrock4_controller.hpp
index 0e5edd32c0..61d6e51191 100644
--- a/boost/numeric/odeint/stepper/rosenbrock4_controller.hpp
+++ b/boost/numeric/odeint/stepper/rosenbrock4_controller.hpp
@@ -163,6 +163,8 @@ public:
if( m_max_dt != static_cast<time_type>(0) )
{
dt = detail::min_abs(m_max_dt, dt_new);
+ } else {
+ dt = dt_new;
}
m_last_rejected = false;
return success;