iso_fortran_env

Brooks Moses bmoses@stanford.edu
Tue Aug 29 21:50:00 GMT 2006


Janne Blomqvist wrote:
> Steve Kargl wrote:
>>Everthing above matches gfortran with the possible exception of
>>File_Storage_Size and Numeric_Storage_Size.  I don't F2003
>>handy.  What do these values means?
> 
> IIRC file storage size is the number of bits per storage element. E.g. 
> when you do a inquire(iolength) you get the answer as an integer 
> multiple of the file storage size.

No -- when you do an INQUIRE(IOLENGTH=), you get the answer in units of 
the file storage unit.  If you want the answer in units of bits, you 
have to multiply it by file_storage_size yourself.

That is, for a 32-bit default integer, and an 8-bit file storage unit, 
INQUIRE(IOLENGTH=J) I, for I declared as default integer, will normally 
result in J=4.

- Brooks



More information about the Fortran mailing list