问题描述
我是Fortran编程的新手。请,我需要解决以下问题。
我正在开发开源代码
https://github.com/valeriabarra/ThinViscoelasticFilms
并且在.f90文件之一中的下面一行。
!! $输出文件夹
CHARACTER(len=*),PARAMETER :: folder='/home/user/Output/000/' ! needs to be changed with your global path
我在Ubuntu上运行gfortran。因此,我将目录更改为:
‘/home/viscoexpert/Desktop/ThinViscoelasticFilms-master/output/000/’
但它返回以下错误消息:
At line 40 of file ../par.f90 (unit = 3)
Fortran runtime error: Cannot open file ‘/home/viscoexpert/Desktop/ThinViscoelasticFilms-master/output/000/range.dat’: No such file or directory
Error termination. Backtrace:
#0 0x7f8d8d0a62ed in ???
#1 0x7f8d8d0a6ed5 in ???
#2 0x7f8d8d0a769d in ???
#3 0x7f8d8d219ecd in ???
#4 0x7f8d8d21a214 in ???
#5 0x55a32fec4a0a in par_
at ../par.f90:40
#6 0x55a32fec14b8 in MAIN__
at ../main.f90:90
#7 0x55a32fec1bd4 in main
at ../main.f90:29
请,如何为输出文件夹指定正确的目录?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)