# HG changeset patch # User Carlo de Falco # Date 1475733419 -7200 # Node ID f812283c43675536e9d1107fc69ebf0aa0613926 # Parent acfb81e6992a2917e05ba41e0527d615aa28737c# Parent 8d3a2d1af389de1531799d77c579bbe4d5bc1c65 maint: merge stable to default diff -r acfb81e6992a -r f812283c4367 scripts/ode/private/integrate_adaptive.m --- a/scripts/ode/private/integrate_adaptive.m Thu Oct 06 07:36:59 2016 +0200 +++ b/scripts/ode/private/integrate_adaptive.m Thu Oct 06 07:56:59 2016 +0200 @@ -76,7 +76,7 @@ dt = odeget (options, "InitialStep", [], "fast"); if (isempty (dt)) dt = starting_stepsize (order, func, t, x, options.AbsTol, options.RelTol, - strcmp (options.NormControl, "on")); + strcmp (options.NormControl, "on"), options.funarguments); endif dir = odeget (options, "direction", [], "fast"); diff -r acfb81e6992a -r f812283c4367 scripts/ode/private/starting_stepsize.m --- a/scripts/ode/private/starting_stepsize.m Thu Oct 06 07:36:59 2016 +0200 +++ b/scripts/ode/private/starting_stepsize.m Thu Oct 06 07:56:59 2016 +0200 @@ -36,13 +36,13 @@ ## @seealso{odepkg} function h = starting_stepsize (order, func, t0, x0, - AbsTol, RelTol, normcontrol) + AbsTol, RelTol, normcontrol, args) ## compute norm of initial conditions d0 = AbsRel_Norm (x0, x0, AbsTol, RelTol, normcontrol); ## compute norm of the function evaluated at initial conditions - y = func (t0, x0); + y = func (t0, x0, args{:}); if (iscell (y)) y = y{1}; endif @@ -58,7 +58,7 @@ x1 = x0 + h0 * y; ## approximate the derivative norm - yh = func (t0+h0, x1); + yh = func (t0+h0, x1, args{:}); if (iscell (yh)) yh = yh{1}; endif