naginterfaces.library.ode.ivp_stiff_integ_diag¶
- 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 submoduleode
that use methods set up by calls toivp_stiff_dassl()
,ivp_stiff_bdf()
orivp_stiff_blend()
.For full information please refer to the NAG Library document for d02ny
https://support.nag.com/numeric/nl/nagdoc_30.3/flhtml/d02/d02nyf.html
- Parameters
- neqint
The value used for the argument when calling the integrator.
- neqmaxint
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()
orivp_stiff_imp_revcom()
.
- Returns
- hufloat
The last successful step size.
- hfloat
The proposed next step size for continuing the integration.
- tcurfloat
, 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()
).- tolsffloat
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.
- nstint
The number of steps taken in the integration so far.
- nreint
The number of function or residual evaluations ( (e.g., see
ivp_stiff_exp_fulljac()
) or (e.g., seeivp_stiff_imp_fulljac()
) calls) used in the integration so far.- njeint
The number of Jacobian evaluations used in the integration so far. This equals the number of matrix decompositions.
- nquint
The order of the method last used (successfully) in the integration.
- nqint
The proposed order of the method for continuing the integration.
- niterint
The number of iterations performed in the integration so far by the nonlinear equation solver.
- imxerint
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 .
- Raises
- NagValueError
- (errno )
On entry, and .
Constraint: .
- (errno )
On entry, .
Constraint: .
- (errno )
On entry, .
Constraint: .
- Notes
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 ofivp_stiff_dassl()
,ivp_stiff_bdf()
orivp_stiff_blend()
. These statistics concern the integration only.