- 积分
- 2107
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2013-4-25
- 最后登录
- 1970-1-1
|
Fortran
系统平台: |
linux |
问题概况: |
fortran中运行 do while(.not.eof(1)) 时出现问题
错误提示为:eof为正确声明 |
问题截图: |
- |
我看过提问的智慧: |
看过 |
自己思考时长(天): |
1 |
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
程序:
program diamond2
implicit none
real,parameter :: PI=3.1415926
character*8 stid
real lon,lat,elev,temp,hgt,t,td,wd,ws,u,v
real tim
integer nlev,flag
open(1,file='high\plot\850\14083102.000',status='old')
tim=0.0
nlev=1
flag=1
open(2,file='hgt_850_14083102.dat',form='binary')
read(1,*)
read(1,*)
do while(.not.eof(1))
read(1,*) stid,lon,lat,elev,temp,hgt,t,td,wd,ws
if (wd==9999.or.ws==9999)then
u=9999
v=9999
else
u=ws*sin(wd*PI/180.0-PI)
v=ws*cos(wd*PI/180.0-PI)
endif
write(2) stid,lat,lon,tim,nlev,flag,elev,hgt,t,td,u,v
enddo
close(1)
nlev=0
write(2) stid,lat,lon,tim,nlev,flag
close(2)
end
问题:PGF90-S-0121-Operation requires logical or integer data types (read_diamond2.f90: 17)
问题:PGF90-S-0038-Symbol, eof, has not been explicitly declared (read_diamond2.f90)
|
|