DAT_TEMP

Create temporary object

Description:

Create an object that exists only for the lifetime of the program run. This may be used to hold temporary objects – including those mapped to obtain scratch space.

Invocation

CALL DAT_TEMP( TYPE, NDIM, DIM, LOC, STATUS )

Arguments

TYPE = CHARACTER  ( DAT__SZTYP ) (Given)
Data type.
NDIM = INTEGER (Given)
Number of dimensions.
DIM = INTEGER( NDIM ) (Given)
Object dimensions.
LOC = CHARACTER  ( DAT__SZLOC ) (Returned)
Object locator.
STATUS = INTEGER (Given and Returned)
The global status.

Notes:

If type matches one of the primitive type names, a primitive of appropriate type is created; otherwise the object is assumed to be a structure. If the object is a structure array, loc will be associated with the complete array, not the first cell. Thus, new components can only be created through another locator which is explicitly associated with an individual cell (see DAT_CELL).