程序将文件放置到路径
Users/username/
而不是 Oil and Cells folder
。我可以用编译命令解决这个问题吗?
我在
gfortran -o Planar_Surfactant Planar_Surfactant.f
文件夹内使用 Oil and Cells
来编译可执行文件。
~ % /Users/username/Documents/BMEN\ Research/Oil\ And\ Cells/Planar_Surfactant ; exit;
这是我运行程序时显示的内容以及有关基值的一些信息。
我对 Fortran 编码还很陌生,所以我不太确定要尝试什么或如何解决这个问题。
程序中的路径是相对于当前工作目录的,当前工作目录是从启动程序的目录开始的,而不是程序二进制文件所在的目录。
(这本身并不特定于 Fortran。)