This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fortran runtime error: End of record


When I am outputting large data arrays, I am getting the Fortran
runtime error. The error disappears if I output small arrays. I am not
sure where I am going wrong. Is this a known bug? I searched at
http://gcc.gnu.org/bugzilla/ but could not see it as listed. Would
appreciate any help.

test program

program explore
  implicit none

  integer, parameter :: NX = 32, NR = 16, NPHI=2

  real :: input(0:NX-1, 0:NR-1, 0:NPHI-1)

  write(*,*) size(input)

  call random_number(input)
  write(*,*) input
end program explore

This program compiles fine. But when it is executed, produces the
following error.

$./a.out > temp1
At line 11 of file explore.f90
Fortran runtime error: End of record

$gfortran --version
GNU Fortran 95 (GCC 4.0.0 20050212 (experimental))
Copyright (C) 2005 Free Software Foundation, Inc.


$uname -a
Linux kusumanchi 2.6.9-1-686 #1 Thu Nov 25 03:48:29 EST 2004 i686 GNU/Linux

Debian, sid and gfortran corresponds to gcc-snapshot package of sid.

thanks in advance
raju
-- 
Kamaraju S Kusumanchi
Cornell University
http://people.cornell.edu/pages/kk288/
http://groups.yahoo.com/group/flumech/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]