m*******s 发帖数: 22 | 1 Hello everyone,
I have some data files which were originally written with a big_endian
machine.
Now, I try to use a fortran routine to read them with the compiler of
gfortran
built in a little_endian linux system. The input line is as follows:
open(8,file='file1' // cdat,
. form='unformatted',convert='big_endian',
. status='old',access='direct',recl=im*jm*4)
Where cdat is a string, say 198101.
When I compile the routine with gfortran, the system tip is: syntax error,
convert='big_endian'. If I r | O******e 发帖数: 734 | 2 Try Google "gfortran endian".
【在 m*******s 的大作中提到】 : Hello everyone, : I have some data files which were originally written with a big_endian : machine. : Now, I try to use a fortran routine to read them with the compiler of : gfortran : built in a little_endian linux system. The input line is as follows: : open(8,file='file1' // cdat, : . form='unformatted',convert='big_endian', : . status='old',access='direct',recl=im*jm*4) : Where cdat is a string, say 198101.
|
|