now I realized that the "stream" option on gfortran only works for version4.5 or up. There is no way to read this kind of data with low version of gfrotran although there is no error in compiling.
the data is from third party, I don't have clue on what platform/compiler he used.
with AIX machine xlf90, the data can be read successfully with
open(...,access='stream',form='unformatted')
with Linux ifort
the data can be read successfully with
open(...,access='sequentail',form='binary')...
thanks for all your suggestions. The data I am read is not direct access, so access='direct' doesn't work.
What I am looking for is the GFORTRAN manual where I can find all the options for "access=" in open file statement. Anyone know where I can find this?
Hi,
I am using Gfortran to read a unformatted binary file like the following:
open(.......,access='stream',form='unformatted',.....)
it works fine if the gfortran version is 4.5 or up. However, if I compile the code on machines which Gfortran version less than 4.5, the job failed to read the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.