| 本帖最后由 芥子纳须弥 于 2022-7-18 22:21 编辑 
 
 
 [Fortran] syntaxhighlighter_viewsource syntaxhighlighter_copycode       program test
      implicit real*8 (a-h,o-z)
 
      include 'params_def.f'
      write(*,*)"indmax:",indmax
     
      end program testparams_def.f 代码如下:
 
 [Fortran] syntaxhighlighter_viewsource syntaxhighlighter_copycode       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)
 
 
 |