Reading writing fortran direct access unformatted files with different compilers
I have a section in a program that writes a direct-access binary file as follows: open (53, file=filename, form='unformatted', status='unknown', & access='direct',action='write',recl=320*385*8) write (53,rec=1) ulat write (53,rec=2) ulng close(53) This program is compiled with ifort. However, I cannot reconstruct the data correctly if I read the data file from a different program compiled with gfortran. If the program reading the data is also compiled in ifort, then I can correctly reconstruct the data. Here's the code reading the data file: OPEN(53, FILE=fname, form="unformatted", status=