08-03-2010 08:02 AM
I am building some old fortran code with ifort, and I have observed that the record length parameter (RECL=) in OPEN statements is interpreted as four byte words by ifort. The code was written with the assumption that RECL is in bytes. I would prefer not to change the code so that the same code base continues to work with other fortran compilers. Is there an ifort command line option that will give me the other behavior?
New Contributor I
08-06-2010 03:12 PM
Ideally, newer code should use the FILE_STORAGE_SIZE variable in the ISO_FORTAN_ENV module. It defines the bit size used for file record lengths, so that compiler compatibility flags are not needed.