按照您指导的,我改了我的代码:
[Fortran] 纯文本查看 复制代码 !只读入一次
if (stepTime.eq.0) then
!读入轴承力Fx数据
do ix=1,10001
open(11,file='D:\temp\xdata.txt',ioStat=krl,
& action="readwrite",status="old")
if(krl==0) then
read(11,*)Fxm(ix,1),Fxm(ix,2) !循环写入
close(11)
end if
end do
!读入轴承力Fy数据
do iy=1,10001
open(11,file='D:\temp\ydata.txt',ioStat=krl,
& action="readwrite",status="old")
if(krl==0) then
read(11,*)Fym(iy,1),Fym(iy,2) !循环写入
close(11)
end if
end do
end if
出现了新的报错信息:forrtl: severe (29): file not found, unit 11, file C:\Users\WANGZI~1\AppData\Local\Temp\WangZijia_Housing_21424\fort.11
想请教一下您什么问题 |