NAG FL Interface
e04wbf (nlp1_​init)

1 Purpose

e04wbf is used to initialize routines e04dga, e04mfa, e04nca, e04nfa, e04nka, e04uca, e04ufa, e04uga and e04usa.

2 Specification

Fortran Interface
Subroutine e04wbf ( rname, cwsav, lcwsav, lwsav, llwsav, iwsav, liwsav, rwsav, lrwsav, ifail)
Integer, Intent (In) :: lcwsav, llwsav, liwsav, lrwsav
Integer, Intent (Inout) :: ifail
Integer, Intent (Out) :: iwsav(liwsav)
Real (Kind=nag_wp), Intent (Out) :: rwsav(lrwsav)
Logical, Intent (Out) :: lwsav(llwsav)
Character (*), Intent (In) :: rname
Character (80), Intent (Out) :: cwsav(lcwsav)
C Header Interface
#include <nag.h>
void  e04wbf_ (const char *rname, char cwsav[], const Integer *lcwsav, logical lwsav[], const Integer *llwsav, Integer iwsav[], const Integer *liwsav, double rwsav[], const Integer *lrwsav, Integer *ifail, const Charlen length_rname, const Charlen length_cwsav)
The routine may be called by the names e04wbf or nagf_opt_nlp1_init.

3 Description

e04wbf initializes some or all of the arrays cwsav, lwsav, iwsav and rwsav for the routine specified by rname, and any associated option setting routines.

4 References

None.

5 Arguments

1: rname Character(*) Input
On entry: the name of the routine to be initialized. The name may be abbreviated to the first 5 letters of the ‘short’ name, or by omitting the nagf_ or opt_ prefixes of the ‘long’ name.
Constraint: rname must be the name of one of the routines initialized by e04wbf.
2: cwsavlcwsav Character(80) array Communication Array
3: lcwsav Integer Input
On entry: the dimension of the array cwsav as declared in the (sub)program from which e04wbf is called.
Constraints:
  • if rname='e04uf' or 'nlp1_rcomm', lcwsav5;
  • otherwise lcwsav1.
4: lwsavllwsav Logical array Communication Array
5: llwsav Integer Input
On entry: the dimension of the array lwsav as declared in the (sub)program from which e04wbf is called.
Constraints:
  • if rname='e04nk' or 'qpconvex1_sparse_solve', llwsav20;
  • if rname='e04ug' or 'nlp1_sparse_solve', llwsav20;
  • otherwise llwsav120.
6: iwsavliwsav Integer array Communication Array
7: liwsav Integer Input
On entry: the dimension of the array iwsav as declared in the (sub)program from which e04wbf is called.
Constraints:
  • if rname='e04nk' or 'qpconvex1_sparse_solve', liwsav380;
  • if rname='e04ug' or 'nlp1_sparse_solve', liwsav550;
  • otherwise liwsav610.
8: rwsavlrwsav Real (Kind=nag_wp) array Communication Array
9: lrwsav Integer Input
On entry: the dimension of the array rwsav as declared in the (sub)program from which e04wbf is called.
Constraints:
  • if rname='e04nk' or 'qpconvex1_sparse_solve', lrwsav285;
  • if rname='e04ug' or 'nlp1_sparse_solve', lrwsav550;
  • otherwise lrwsav475.
10: ifail Integer Input/Output
On entry: ifail must be set to 0, -1 or 1. If you are unfamiliar with this argument you should refer to Section 4 in the Introduction to the NAG Library FL Interface 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, rname=value was not a valid routine name.
ifail=2
One or more of the save array lengths is too small. Supplied values are: lcwsav=value, llwsav=value, liwsav=value and lrwsav=value.
ifail=-99
An unexpected error has been triggered by this routine. Please contact NAG.
See Section 7 in the Introduction to the NAG Library FL Interface for further information.
ifail=-399
Your licence key may have expired or may not have been installed correctly.
See Section 8 in the Introduction to the NAG Library FL Interface for further information.
ifail=-999
Dynamic memory allocation failed.
See Section 9 in the Introduction to the NAG Library FL Interface for further information.

7 Accuracy

Not applicable.

8 Parallelism and Performance

e04wbf is not threaded in any implementation.

9 Further Comments

The time taken by e04wbf is negligible.

10 Example

The use of e04wbf is illustrated by the example programs of the routines listed in Section 1.