naginterfaces.library.ode.ivp_stiff_integ_diag(neq, neqmax, comm)[source]

ivp_stiff_integ_diag is a diagnostic function which you may call either after any user-specified exit or after a mid-integration error exit from any of those integrators in submodule ode that use methods set up by calls to ivp_stiff_dassl(), ivp_stiff_bdf() or ivp_stiff_blend().

For full information please refer to the NAG Library document for d02ny


The value used for the argument when calling the integrator.


The value used for the argument when calling the integrator.

commdict, communication object

Communication structure.

This argument must have been initialized by a prior call to ivp_stiff_exp_fulljac(), ivp_stiff_exp_bandjac(), ivp_stiff_exp_sparjac(), ivp_stiff_imp_fulljac(), ivp_stiff_imp_bandjac(), ivp_stiff_imp_sparjac(), ivp_stiff_exp_revcom() or ivp_stiff_imp_revcom().


The last successful step size.


The proposed next step size for continuing the integration.


, the value of the independent variable which the integrator has actually reached. will always be at least as far as the output value of the argument in the direction of integration, but may be further (if overshooting and interpolation at was specified, e.g., see ivp_stiff_exp_fulljac()).


A tolerance scale factor, , which is computed when a request for too much accuracy is detected by the integrator (indicated by a return with = 3 or 14). If is left unaltered but and are uniformly scaled up by a factor of the next call to the integrator is deemed likely to succeed.


The number of steps taken in the integration so far.


The number of function or residual evaluations ( (e.g., see ivp_stiff_exp_fulljac()) or (e.g., see ivp_stiff_imp_fulljac()) calls) used in the integration so far.


The number of Jacobian evaluations used in the integration so far. This equals the number of matrix decompositions.


The order of the method last used (successfully) in the integration.


The proposed order of the method for continuing the integration.


The number of iterations performed in the integration so far by the nonlinear equation solver.


The index of the component of largest magnitude in the weighted local error vector , for .

algequbool, ndarray, shape

if the th equation integrated was detected to be algebraic, otherwise . Note that when the integrators for explicit equations are being used, then , for .

(errno )

On entry, and .

Constraint: .

(errno )

On entry, .

Constraint: .

(errno )

On entry, .

Constraint: .


No equivalent traditional C interface for this routine exists in the NAG Library.

ivp_stiff_integ_diag permits you to inspect statistics produced by any integrator in this sub-module that has been set up a call to one of ivp_stiff_dassl(), ivp_stiff_bdf() or ivp_stiff_blend(). These statistics concern the integration only.