请教,我这么编写用户定义模块有什么问题啊? 我用的a+的版本是11.1,fortran的版本是compaq visual fortran 6.5。 我按照10.0里面getting started customizing里面的例子,重新做,但是总有错误。不知道问题出在哪儿了?请各位有经验的学友们,赐教一下。 另外,fortran语言也是最近才看,有些程序的后缀名是.f,或者.f90和.for的,它们之间有区别吗? 下面是用aspen plus 11.1 simulation engine编译时出现的错误 c:\progra~1\aspent~1\aprsys~1.1\engine\xeq\gcpp.exe -dwin32 -dawinntn @gcpp.opt hfum4.f90 hfum4.i aspcomp: using compiler c:\program files\microsoft visual studio\df98\bin\f77.exe f77.exe /nologo /c /nowatch -object:hfum4.obj hfum4.i f90: error: illegal character in statement label field [s] f90: error: illegal character in statement label field f90: error: illegal character in statement label field f90: error: illegal character in statement label field [r] f90: error: illegal character in statement label field [o] f90: error: first statement in file must not be continued hfum4.f90(2) : error: illegal character in statement label field implicit none ^ hfum4.f90(2) : error: illegal character in statement label field [m] implicit none -^ hfum4.f90(2) : error: illegal character in statement label field [p] implicit none --^ hfum4.f90(2) : error: illegal character in statement label field [l] implicit none ---^ hfum4.f90(2) : error: illegal character in statement label field implicit none ----^ hfum4.f90(2) : error: syntax error, found end-of-statement when expecting one of: :: , : ) implicit none -------------^ hfum4.f90(22) : error: syntax error, found end-of-statement when expecting one of: %fill real*8 diam, len, diff, cg, rej_coef, c1, c2, c3, c4, p_perm,delta_p, rho, mu, fin, cin, pin, uave, re, sc,cp, cr, km, jm, fp, pret, xmw, x (10), flow ---------------------------------------------------------------------------------------------------------------------------------------------------- ----------^ hfum4.f90(112) : error: syntax error, found end-of-statement when expecting one of: ( * :: , : ) + . - % . ** / // .lt. .le. = .eq. == .ne. ... call ppmon_viscl(sin(ncomp_ncc+2,1), sin(ncomp_ncc+3,1), x, ncp,idx, nbopst, kdiag, mu, ierr) !calculate viscosity, put result in mu. (9) -------------------------------------------------------------------------------------------------------------------------------------------------^ [ ]查看更多