next up previous
Next: PAR_EXACx - Obtains an exact number of values from a parameter
Up: Reference Manual
Previous: PAR_DEF1x - Sets a vector of values as the dynamic default for a parameter

    
PAR_DEFNx - Sets an array of values as the dynamic default for a parameter

Description:
This routine sets an array of values as the dynamic default for a parameter. The dynamic default may be used as the parameter value by means of appropriate specifications in the interface file.

If the declared parameter type differs from the type of the array supplied, then conversion is performed.

Invocation:
CALL PAR_DEFNx( PARAM, NDIM, MAXD, VALUES, ACTD, STATUS )

Arguments:
PARAM = CHARACTER*(*) (Given)
The name of the parameter.
NDIM = INTEGER (Given)
The number of dimensions of the values array.
MAXD( NDIM ) = INTEGER (Given)
The dimensions of the values' array.
VALUES( * ) = ? (Given)
The default values, given in Fortran order.
ACTD( NDIM ) = INTEGER (Given)
The dimensions of the dynamic default object to be created.
STATUS = INTEGER (Given and Returned)
The global status.

Notes:
  • There is a routine for each of the data types character, double precision, integer, logical, and real: replace "x" in the routine name by C, D, I, L, or R respectively as appropriate. The VALUES argument must have the corresponding data type.
  • The current implementation of the underlying parameter system, SUBPAR, creates an n-dimensional HDS object, containing the specified values. The ACTD argument gives the dimensions of the object to be created. If the dynamic default is used as the suggested value in a prompt, the name of this object, rather than its contents, is offered.



next up previous
Next: PAR_EXACx - Obtains an exact number of values from a parameter
Up: Reference Manual
Previous: PAR_DEF1x - Sets a vector of values as the dynamic default for a parameter

PAR Interface to the ADAM Parameter System
Starlink User Note 114
Malcolm J. Currie
Alan J. Chipperfield
1999 September 24
E-mail:ussc@star.rl.ac.uk