Fortran Coder

标题: Fortran runtime error: End of file 新手报错求助! [打印本页]

作者: 不学无墅!    时间: 2020-7-8 19:57
标题: Fortran runtime error: End of file 新手报错求助!
[Fortran] 纯文本查看 复制代码
      parameter (lx=34,ly=30,nt=1776,nt1=25)
      REAL T(lx,ly)
      REAL T0(ly,lx),DT(lx,ly)

      OPEN(UNIT=77,FILE='../data/sst/sstasm_1856-2003',
     +     form='unformatted')
      OPEN(UNIT=78,FILE='t.out',
     +     form='unformatted')
      OPEN(UNIT=79,FILE='ldeo5_1856-2003',
     +     form = 'unformatted')
      OPEN(UNIT=80,FILE='mod_ssta_nino34.dat')
      OPEN(UNIT=81,FILE='obs_ssta_nino34.dat')
      open(unit=82,file='ta_nino34.dat')

             do 510 k=1,nt
          write(*,*)   k
       read(77) t0     此行为报错的第17行


使用的Linux GFortran编译器  在运行可执行文件时报错Fortran runtime error: End of file 求助各位大佬!

报错截图.png (16.07 KB, 下载次数: 206)

报错页面截图

报错页面截图

作者: li913    时间: 2020-7-9 09:44
FAQ之 常见错误分析
http://fcode.cn/guide-36-1.html




欢迎光临 Fortran Coder (http://bbs.fcode.cn/) Powered by Discuz! X3.2