我刚刚将以下代码段添加到基于Fortran构建的模型中。我被告知write语句将打印到本地终端上名为fort.70的文件,其中编译并运行代码,但是没有创建这样的文件。是否有人能够指出导致此问题的原因以及如何解决?提前谢谢!
YSTART = 2020
YEND = 2100
DO IYEAR = NYSTART, 351
RI = (YEND-(1749+IYEAR))/(YEND-YSTART)
IF (IYEAR .LT. YSTART) RI = 1.0
IF (IYEAR .GT. YEND) RI = 0.0
WRITE (UNIT=70, FMT=*) IYEAR, RI
DO ISPECY = 1, NTRMAX
EMISSIONS(IYEAR, ISPECY) = RI*EMISSIONS(IYEAR, ISPECY)
END DO
END DO