d02mvf is an integration method specific setup routine which must be called prior to linear algebra setup routines and integrators from the SPRINT suite of routines, if the DASSL implementation of Backward Differentiation Formulae (BDF) is to be used. Note that this method is also available, independent from the SPRINT suite, using d02nef
An integrator setup routine must be called before the call to any linear algebra setup routine or integrator from the SPRINT suite of routines in this sub-chapter. This setup routine, d02mvf, makes the choice of the DASSL integrator and permits you to define options appropriate to this choice.
Alternative choices of integrator from this suite are the BDF method and the BLEND method which can be chosen by initial calls to d02nvf or d02nwf respectively.
On entry: a bound on the maximum number of differential equations to be solved.
2: – IntegerInput
On entry: the second dimension of the array ysav that will be supplied to the integrator, as declared in the (sub)program from which the integrator is called (e.g., see d02nbf).
3: – IntegerInput
On entry: the maximum order to be used for the BDF method. If or , is assumed.
4: – Real (Kind=nag_wp) arrayInput/Output
On entry: values to be used to control step size choice during integration. If any on entry, it is replaced by its default value described below. In most cases this is the recommended setting.
, , and are factors used to bound step size changes. If the current step size fails, the modulus of the next step size is bounded by . The default value of is . Note that the new step size may be used with a method of different order to the failed step. If the initial step size is , the modulus of the step size on the second step is bounded by . At any other stage in the integration, if the current step size is , the modulus of the next step size is bounded by . The default values are for and for .
These constraints must be satisfied after any zero values have been replaced by default values.
On exit: the values actually to be used by the integration routine.
5: – Real (Kind=nag_wp)Input
On entry: a point beyond which integration must not be attempted. The use of tcrit is described under the argument itask in the specification for the integrator (e.g., see d02nbf). A value, say, must be specified even if itask subsequently specifies that tcrit will not be used.
6: – Real (Kind=nag_wp)Input
On entry: the minimum absolute step size to be allowed. Set if this option is not required.
7: – Real (Kind=nag_wp)Input
On entry: the maximum absolute step size to be allowed. Set if this option is not required.
8: – Real (Kind=nag_wp)Input
On entry: the step size to be attempted on the first step. Set if the initial step size is calculated internally.
9: – IntegerInput
On entry: the maximum number of steps to be attempted during one call to the integrator after which it will return with (e.g., see d02nbf). Set if no limit is to be imposed.
10: – IntegerInput
On entry: the maximum number of warnings printed (if , e.g., see d02nbf) per problem when on a step (). If , a default value of is assumed.
11: – Character(1)Input
On entry: indicates the type of norm to be used.
Averaged L2 norm.
Is the same as 'A'.
If denotes the norm of the vector of length , for the averaged L2 norm
while for the maximum norm
If you wish to weight the maximum norm or the L2 norm, rtol and atol should be scaled appropriately on input to the integrator (see under itol in the specification of the integrator for the formulation of the weight vector from rtol and atol, e.g., see d02nbf).
Only the first character to the actual argument norm is passed to d02mvf; hence it is permissible for the actual argument to be more descriptive, e.g., ‘Maximum’, ‘Average L2’ or ‘Default’ in a call to d02mvf.
, or .
12: – Real (Kind=nag_wp) arrayCommunication Array
This must be the same workspace array as the array rwork supplied to the integrator. It is used to pass information from the setup routine to the integrator and therefore the contents of this array must not be changed before calling the integrator.
13: – IntegerInput/Output
On entry: ifail must be set to , . If you are unfamiliar with this argument you should refer to Section 3.4 in How to Use the NAG Library and its Documentation for details.
For environments where it might be inappropriate to halt program execution when an error is detected, the value is recommended. If the output of error messages is undesirable, then the value is recommended. Otherwise, if you are not familiar with this argument, the recommended value is . When the value is used it is essential to test the value of ifail on exit.
On exit: unless the routine detects an error or a warning has been flagged (see Section 6).
Error Indicators and Warnings
If on entry or , explanatory error messages are output on the current error message unit (as defined by x04aaf).