Reading 32bit unformatted files in 64bit systems
Ignacio Fernández Galván
jellby@yahoo.com
Fri Dec 30 12:32:00 GMT 2011
--- On Fri, 30/12/11, Janne Blomqvist <blomqvist.janne@gmail.com> wrote:
> From briefly looking at the DCD description in the link you provided
> and the hex dump, the only access method that seems to fit is
> stream" [1], which is a bit strange since IIRC x-plor is a F77
> program while access="stream" was added only in the Fortran 2003
> standard.
Oh, I'm sorry... I removed the length block (00 00 00 54). The file is SEQUENTIAL UNFORMATTED. I think I have found out the problem is the endianness of the data. It's strange because I have never had an endianness problem with all the computers I've used, and no reference I have found about the DCD format mentions the endianness (which seems to be big-endian in this sample file).
Ignacio
More information about the Fortran
mailing list