本帖最后由 芥子纳须弥 于 2022-7-18 22:21 编辑
[Fortran] 纯文本查看 复制代码 program test
implicit real*8 (a-h,o-z)
include 'params_def.f'
write(*,*)"indmax:",indmax
end program test
params_def.f 代码如下:
[Fortran] 纯文本查看 复制代码 parameter (indmax=200,nchrmax=60,nparmax=4)
c indmax = maximum # of individuals, i.e. max population size
c nchrmax = maximum # of chromosomes (binary bits) per individual
c nparmax = maximum # of parameters which the chromosomes make up
我在ubuntu运行后报错:
params_def.f:1:48:
c nparmax = maximum # of parameters which the chromosomes make up
1
Error: Unexpected characters in PARAMETER statement at (1)
params_def.f:1:48:
c nparmax = maximum # of parameters which the chromosomes make up
1
Error: Unexpected characters in PARAMETER statement at (1)
|