The ISO_FORTRAN_ENV intrinsic module provides information about the Fortran run-time environment. It takes the following form:
USE, INTRINSIC :: ISO_FORTRAN_ENV
This intrinsic module provides the named constants you can use to get information on the Fortran environment. They are all scalars of type default integer.
Named Constant |
Definition |
---|---|
CHARACTER_STORAGE_SIZE |
Is the size of the character storage unit expressed in bits. |
ERROR_UNIT |
Identifies the preconnected external unit used for error reporting. |
FILE_STORAGE_SIZE |
Is the size of the file storage unit expressed in bits. To use this constant, compiler option assume byterecl must be enabled. |
INPUT_UNIT |
Identifies the preconnected external unit as the one specified by an asterisk in a READ statement. To use this constant, compiler option assume noold_unit_star must be enabled. |
IOSTAT_END |
Is the value assigned to the variable specified in an IOSTAT= specifier if an end-of-file condition occurs during execution of an input/output statement and no error condition occurs. |
IOSTAT_EOR |
Is the value assigned to the variable specified in an IOSTAT= specifier if an end-of-record condition occurs during execution of an input/output statement and no error condition occurs. |
NUMERIC_STORAGE_SIZE |
Is the size of the numeric storage unit expressed in bits. |
OUTPUT_UNIT |
Identifies the preconnected external unit as the one specified by an asterisk in a WRITE statement. To use this constant, compiler option assume noold_unit_star must be enabled. |