Conformance Checks
The amount of error-checking of edit descriptors with input/output (I/O) list items during formatted READ and WRITE statements can be selected through a compiler driver option or through an environmental variable.
The amount of error-checking of edit descriptors with input/output (I/O) list items during formatted READ and WRITE statements can be selected through a compiler driver option or through an environment variable.
By default, the compiler provides only limited error-checking.
Use the compiler driver options to choose the table to be used for the conformance check. The table is then part of the executable and no environment variable is required. The compiler driver options allow a choice of checking or no checking with a particular version of the Fortran standard for formatted READ and WRITE. See the following tables: RELAXED Compatibility Beteween Data Types and Data Edit Descriptors, STRICT77 Compatibility Between Data Types and Data Edit Descriptors, and STRICT90 and STRICT95 Compatibility Between Data Types and Data Edit Descriptors.
The environment variable FORMAT_TYPE_CHECKING is evaluated during execution. The environment variable overrides a table chosen through the compiler driver option. The environment variable provides an intermediate type of checking that is not provided by the compiler driver option. The environment variable FORMAT_TYPE_CHECKING is described in Set Environment Variables to the Cray Fortran Compiler.
To select the least amount of checking, use one or more of the following ftn command line options.
- On Cray Linux Environment (CLE) systems with formatted READ, use:
ftn -W1,--defsym,_RCHK=_RNOCHK *.f(note the double dashes that precede defsym) - On CLE systems with formatted WRITE, use:
ftn -W1,--defsym,_WCHK=_WNOCHK *.f - On CLE systems with both formatted READ and WRITE, use:
ftn -W1,--defsym,_WCHK=_WNOCHK -W1,--defsym,_RCHK=_RNOCHK *.fTo select strict amount of checking for either FORTRAN 77 or Fortran 90, use one or more of the following ftn command line options.
- On CLE systems with formatted READ, use:
ftn -W1,--defsym,_RCHK=_RCHK77 *.f ftn -W1,--defsym,_RCHK=_RCHK90 *.f - On CLE systems with formatted WRITE, use:
ftn -W1,--defsym,_WCHK=_WCHK77 *.f ftn -W1,--defsym,_WCHK=_WCHK90 *.f - On CLE systems with both formatted READ and WRITE, use:
ftn -W1,--defsym,_WCHK=_WCHK77 -W1,--defsym,_RCHK=_RCHK77 *.f ftn -W1,--defsym,_WCHK=_WCHK90 -W1,--defsym,_RCHK=_RCHK90 *.f