NAG Library Routine Document

d02npf (dae_dassl_linalg)

 Contents

    1  Purpose
    7  Accuracy
    10  Example

1
Purpose

d02npf is a setup routine which you must call prior to d02nef and after a call to d02mwf, if the Jacobian is to be considered as having a banded structure.

2
Specification

Fortran Interface
Subroutine d02npf ( neq, ml, mu, icom, licom, ifail)
Integer, Intent (In):: neq, ml, mu, licom
Integer, Intent (Inout):: icom(licom), ifail
C Header Interface
#include nagmk26.h
void  d02npf_ (const Integer *neq, const Integer *ml, const Integer *mu, Integer icom[], const Integer *licom, Integer *ifail)

3
Description

A call to d02npf specifies that the Jacobian to be used is banded in structure. If d02npf is not called before a call to d02nef then the Jacobian is assumed to be full.

4
References

None.

5
Arguments

1:     neq – IntegerInput
On entry: the number of differential-algebraic equations to be solved.
Constraint: 1neq.
2:     ml – IntegerInput
On entry: mL, the number of subdiagonals in the band.
Constraint: 0mlneq-1.
3:     mu – IntegerInput
On entry: mU, the number of superdiagonals in the band.
Constraint: 0muneq-1.
4:     icomlicom – Integer arrayCommunication Array
icom is used to communicate details of the integration from d02mwf and details of the banded structure of the Jacobian to d02nef.
5:     licom – IntegerInput
On entry: the dimension of the array icom as declared in the (sub)program from which d02npf is called.
Constraint: licom50+neq.
6:     ifail – IntegerInput/Output
On entry: ifail must be set to 0, -1​ or ​1. 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 -1​ or ​1 is recommended. If the output of error messages is undesirable, then the value 1 is recommended. Otherwise, if you are not familiar with this argument, the recommended value is 0. When the value -1​ or ​1 is used it is essential to test the value of ifail on exit.
On exit: ifail=0 unless the routine detects an error or a warning has been flagged (see Section 6).

6
Error Indicators and Warnings

If on entry ifail=0 or -1, explanatory error messages are output on the current error message unit (as defined by x04aaf).
Errors or warnings detected by the routine:
ifail=1
On entry, neq=value.
Constraint: neq1.
ifail=2
On entry, ml=value.
Constraint: ml0.
On entry, ml=value and neq=value.
Constraint: mlneq-1.
ifail=3
On entry, mu=value.
Constraint: mu0.
On entry, mu=value and neq=value.
Constraint: muneq-1.
ifail=4
Either the initialization routine has not been called prior to the first call of this routine or the communication array has become corrupted.
ifail=5
On entry, licom is too small: licom=value.
ifail=-99
An unexpected error has been triggered by this routine. Please contact NAG.
See Section 3.9 in How to Use the NAG Library and its Documentation for further information.
ifail=-399
Your licence key may have expired or may not have been installed correctly.
See Section 3.8 in How to Use the NAG Library and its Documentation for further information.
ifail=-999
Dynamic memory allocation failed.
See Section 3.7 in How to Use the NAG Library and its Documentation for further information.

7
Accuracy

Not applicable.

8
Parallelism and Performance

d02npf is not threaded in any implementation.

9
Further Comments

None.

10
Example

See Section 10 in d02nef and d02mwf.
© The Numerical Algorithms Group Ltd, Oxford, UK. 2017