ode_optional_output — ode solvers optional outputs description
This page describes the the most important values returned in the
optional lhs ode function arguments w
and
iw
.
These are valid only for the lsode
lsoda
and lsodar
ode solver.
For more details, one can look at the solvers fortran code comments in SCI/modules/differential_equations/src/fortran/lsod*.f
.
the step size in t last used (successfully).
the step size to be attempted on the next step.
the current value of the independent variable which the solver has actually reached, i.e. the current internal mesh point in t. on output, tcur will always be at least as far as the argument t, but may be farther (if interpolation was done).
a tolerance scale factor, greater than 1.0,
computed when a request for too much accuracy was
detected (istate = -3 if detected at the start of
the problem, istate = -2 otherwise). if itol is
left unaltered but rtol and atol are uniformly
scaled up by a factor of tolsf=w(14)
for the next call,
then the solver is deemed likely to succeed.
(the user may also ignore tolsf
and alter the
tolerance parameters in any other way appropriate.)
the value of t at the time of the last method
switch, if any. This value is not significant with
lsode
solver.
the number of g
evaluations for the problem so
far. This value is only significant for lsodar
solver.
the number of steps taken for the problem so far.
the number of f evaluations for the problem so far.
the number of jacobian evaluations (and of matrix lu decompositions) for the problem so far.
the method order last used (successfully).
the order to be attempted on the next step.
the index of the component of largest magnitude in the weighted local error vector ( e(i)/ewt(i) ), on an error return with istate = -4 or -5.
the length of w
actually required, assuming
that the length of rwork is to be fixed for the
rest of the problem, and that switching may occur.
this is defined on normal returns and on an illegal
input return for insufficient storage.
the length of iw
actually required, assuming
that the length of iw
is to be fixed for the
rest of the problem, and that switching may occur.
this is defined on normal returns and on an illegal
input return for insufficient storage.
the method indicator for the last successful step..
1 means adams (nonstiff), 2 means bdf (stiff). This value is not significant with
lsode
solver.
the current method indicator..
1 means adams (nonstiff), 2 means bdf (stiff).
this is the method to be attempted
on the next step. thus it differs from iw(19)
only if a method switch has just been made. This value is not significant with
lsode
solver.