f90_stat— Module providing STAT error codes
INTEGER,PARAMETER :: STAT_ALREADY_ALLOCATEDAn allocatable variable in an
ALLOCATEstatement is already currently allocated.
INTEGER,PARAMETER :: STAT_MEMORY_LIMIT_EXCEEDEDAn allocation in an ALLOCATE statement requested more memory than the limit in this version of the NAG Fortran compiler.
INTEGER,PARAMETER :: STAT_NO_MEMORYInsufficient free memory available to satisfy the requested allocation.
INTEGER,PARAMETER :: STAT_NOT_ALLOCATEDAn allocatable variable in a
DEALLOCATEstatement is not currently allocated.
INTEGER,PARAMETER :: STAT_NOT_ASSOCIATEDA pointer in a
DEALLOCATEstatement is disassociated.
INTEGER,PARAMETER :: STAT_PART_OF_A_LARGER_OBJECTA pointer in a
DEALLOCATEstatement refers to part of a larger object.
INTEGER,PARAMETER :: STAT_POINTER_UNDEFINEDA pointer in a
DEALLOCATEstatement is undefined. (This value is never returned to the user program, which is always immediately terminated if the use of an undefined pointer is detected.)
INTEGER,PARAMETER :: STAT_WRONG_COLOURA pointer in a
DEALLOCATEstatement is associated with a target that was not created by pointer allocation.
USE f90_stat REAL,ALLOCATABLE :: big(:,:,:) INTEGER :: status ALLOCATE(big(100,1024,1024),STAT=status) IF (status==STAT_NO_MEMORY) PRINT *,'Out of memory'
The source code for this module may be found in the NAG Fortran runtime library
Please report any bugs found to ‘firstname.lastname@example.org’ or ‘email@example.com’, along with any suggestions for improvements.