Mercurial > jwe > octave
changeset 22123:46ce9eb019a6
Fix bug when tspan is a column vector (bug #47756).
* integrate_adaptive.m: Index into t, rather than tspan, so that orientation
does not matter.
author | Juan Pablo Carbajal <ajuanpi+dev@gmail.com> |
---|---|
date | Thu, 21 Apr 2016 21:13:24 +0200 |
parents | bb4a05cb4a02 |
children | 64f82a8b46e1 |
files | scripts/ode/private/integrate_adaptive.m |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ode/private/integrate_adaptive.m Wed Jul 13 18:17:11 2016 +1000 +++ b/scripts/ode/private/integrate_adaptive.m Thu Apr 21 21:13:24 2016 +0200 @@ -151,7 +151,7 @@ iout = max (t_caught); x(:, t_caught) = ... runge_kutta_interpolate (order, [t_old t_new], [x_old x_new], - tspan(t_caught), new_k_vals, dt, func, + t(t_caught), new_k_vals, dt, func, options.funarguments); istep += 1;