Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

iso_fortran_env

vivekrao4
Beginner
730 Views

Another Fortran compiler uses the values below for constants defined in the ISO_FORTRAN_ENV module of Fortran 2003. What are the corresponding values for Intel Visual Fortran? Thanks.

module ISO_FORTRAN_ENV

implicit NONE
public

integer, parameter :: Character_Storage_Size = 8
integer, parameter :: Error_Unit = 0
integer, parameter :: File_Storage_Size = 8
integer, parameter :: Input_Unit = 5
integer, parameter :: IOSTAT_END = -1
integer, parameter :: IOSTAT_EOR = -2
integer, parameter :: Numeric_Storage_Size = 32
integer, parameter :: Output_Unit = 6

end module ISO_FORTRAN_ENV

0 Kudos
1 Reply
Steven_L_Intel1
Employee
730 Views
At the present time, it is not possible to give "correct" values for Intel Visual Fortran because the values for Input_Unit and Output_Unit would be negative which is not allowed. In a future version, we will support this intrinsic module fully and the values listed above will be correct for Intel Fortran as well.

As long as you don't assume that READ * and WRITE * use units 5 and 6, you'll generally be ok.
0 Kudos
Reply