Fortran Coder

查看: 8738|回复: 1

[文件读写] Fortran runtime error: End of file 新手报错求助!

[复制链接]

6

帖子

2

主题

0

精华

入门

F 币
29 元
贡献
17 点
发表于 2020-7-8 19:57:48 | 显示全部楼层 |阅读模式
[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 求助各位大佬!

报错页面截图

报错页面截图

795

帖子

2

主题

0

精华

大宗师

F 币
3783 元
贡献
2264 点
发表于 2020-7-9 09:44:54 | 显示全部楼层
FAQ之 常见错误分析
http://fcode.cn/guide-36-1.html
您需要登录后才可以回帖 登录 | 极速注册

本版积分规则

捐赠本站|Archiver|关于我们 About Us|小黑屋|Fcode ( 京ICP备18005632-2号 )

GMT+8, 2024-4-16 16:06

Powered by Tencent X3.4

© 2013-2024 Tencent

快速回复 返回顶部 返回列表