------- Additional Comments From coudert at clipper dot ens dot fr 2005-03-01 13:10 ------- This has indeed nothing to do with the output being redirected to a file, or stdout, or even being connected (in Fortran way) to a file:
$ cat pr20257.f90 integer, parameter :: NX = 32, NR = 16, NPHI=2 real :: input(0:NX-1, 0:NR-1, 0:NPHI-1) input(:,:,:) = 0 open (10, file='foo') write(10,*) input end $ gfortran pr20257.f90 && ./a.out At line 6 of file pr20257.f90 Fortran runtime error: End of record -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20257