Subroutine snInit must be called before any other SNOPT routines. It defines the PRINT and SUMMARY files, prints a title on both files, and sets all user options to be undefined. (snopt will later check the options and set undefined ones to default values.)
|
|
subroutine snInit( |
iPrint, iSumm, |
|
$ |
|
cw, lencw, iw, leniw, rw, lenrw ) |
|
|
|
|
|
|
integer |
iPrint, iSumm |
|
|
integer |
lencw, leniw, lenrw |
|
|
character*8 |
cw(lencw) |
|
|
integer |
iw(leniw) |
|
|
double precision |
rw(lenrw) |
On entry:
iPrint defines a unit number for the PRINT file. Typically iPrint = 9.
On some systems, the file may need to be opened before snInit is called.
If iPrint
0,
there will be no PRINT file output.
iSumm defines a unit number for the SUMMARY file.
Typically iSumm = 6.
(In an interactive environment, this usually denotes the screen.)
On some systems, the file may need to be opened before snInit
is called.
If iSumm
0, there will be no SUMMARY
file output.
cw(lencw), iw(leniw), rw(lenrw) must be the same arrays that are passed to
snopt and other routines. They must all have length 500 or more.
On exit:
Some elements of cw, iw, rw are given values to indicate that most optional parameters are undefined.