猛犸论坛【以梦为马,不负韶华】

搜索
搜索附件  

sep.f

 

Aspen外接Fortran问题:
本帖最后由 胡小倪 于 2015-7-10 15:07 编辑

@tdl522 @xiejiahua
关于论坛上的帖子“基于Fortran的Aspen plus 单元过程用户模型的简单例子”中的Fortran程序,我运行的时候怎么会有这些错误啊?是怎么回事?望指教
Compiling Fortran...
F:\fortran\MODEL.f
F:\fortran\MODEL.f(21) : Warning: Bad # preprocessor line
#include "ppexec_user.cmn"
-^
F:\fortran\MODEL.f(27) : Warning: Bad # preprocessor line
#include "dms_ncomp.cmn"
-^
F:\fortran\MODEL.f(53) : Error: This name does not have a type, and must have an explicit type.   [NCOMP_NCC]
      REAL*8 FIN_MOL(NCOMP_NCC),FOUT_MOL(NCOMP_NCC)
---------------------^
F:\fortran\MODEL.f(53) : Error: A specification expression is invalid.   [NCOMP_NCC]
      REAL*8 FIN_MOL(NCOMP_NCC),FOUT_MOL(NCOMP_NCC)
---------------------^
F:\fortran\MODEL.f(53) : Error: A specification expression is invalid.   [NCOMP_NCC]
      REAL*8 FIN_MOL(NCOMP_NCC),FOUT_MOL(NCOMP_NCC)
-----------------------------------------^
F:\fortran\MODEL.f(22) : Error: This name does not have a type, and must have an explicit type.   [USER_RUMISS]
      EQUIVALENCE (RMISS, USER_RUMISS)
--------------------------^
F:\fortran\MODEL.f(23) : Error: This name does not have a type, and must have an explicit type.   [USER_IUMISS]
      EQUIVALENCE (IMISS, USER_IUMISS)
--------------------------^
Error executing df.exe.

MODEL.obj - 5 error(s), 2 warning(s)


麻烦会Fortran的前辈们帮我看看@tdl522
这个不是我写的,是在论坛里找的,那位帖主好像连接成功了呢,所以我很疑惑,不知道错在哪里了?
有確定fortran有Compiling 成功嗎?
之前這樣看不出來是否為語法問題
不過像是跟檔明跟形式有問題造成的
just4AP 发表于 2014-10-20 12:33
有確定fortran有Compiling 成功嗎?
之前這樣看不出來是否為語法問題
不過像是跟檔明跟形式有問題造成的

谢了    我已经连接成功了。不需要在Fortran里面检查错误的,只需要连接到Aspen中,Aspen会自动检查错误,之前我没有想清楚。不过还是谢谢你的回复。

手机版|猛犸论坛【以梦为马,不负韶华】

GMT+8, 2025-7-18 01:54

Powered by 猛犸论坛【以梦为马,不负韶华】

© 2024-2099 Meng.Horse

返回顶部