allocated
- Date:
10-12-2011
NAME
ALLOCATED - Returns the status of an allocated variable
SYNOPSIS
ALLOCATED ([ARRAY=]array)
ALLOCATED ([SCALAR=]scalar)
STANDARDS
Fortran
DESCRIPTION
The ALLOCATED intrinsic function indicates whether or not an allocated variable is currently allocated. It accepts the following arguments:
- array
Must be an allocatable array
- scalar
Must be an allocatable scalar
ALLOCATED is an inquiry function. The name of this intrinsic cannot be passed as an argument.
RETURN VALUES
The result type, type parameter, and shape are default logical scalar. The result has the value .TRUE. if array or scalar is currently allocated and has the value .FALSE. if array or scalar is not currently allocated.
The result is undefined if the allocation status of array or scalar is undefined.
SEE ALSO
Cray Fortran Reference Manual