回 帖 发 新 帖 刷新版面

主题:fortran编程求助

Error 5  error #6911: The syntax of this substring is invalid.   [U0] D:\filefor\fortr……

Error 6  error #5508: Declaration of routine 'READ_PARAMETER' conflicts with a previous declaration D:\filefor\fortr……

 

fortran编程,在别人的程序基础上改了些东西,编译出现错误,Error 5  error #6911: The syntax of this substring is invalid.   [U0] D:……和另外错误Error 6  error #5508: Declaration of routine 'READ_PARAMETER' conflicts with a previous declaration D:\filefor\fortran……可是我没有改动U0,和Read_parameter函数,请问是怎么回事?如何修改?


 

real*8:: U0(4,4)                                     !!!!!!!!!这是U0的定义
 
U0(:,1)=d(i-2:i+1,j) ;
       U0(:,2)=u(i-2:i+1,j) ;
        U0(:,3)=v(i-2:i+1,j); 
        U0(:,4)=p(i-2:i+1,j)                    !!!!这是U0的赋值。哪里有语法错误吗?

 


Error 6  error #5508: Declaration of routine 'READ_PARAMETER' conflicts with a previous declaration D:\filefor\fortran\lixinliang\20140427 - \OpenCFD-EC2D-1.5.4\opencfd_ec2d_v1.5.4.f90 
Error 6  error #5508: Declaration of routine 'READ_PARAMETER' conflicts with a previous declaration D:\filefor\fortran\lixinliang\20140427 - \OpenCFD-EC2D-1.5.4\opencfd_ec2d_v1.5.4.f90 
Error 6  error #5508: Declaration of routine 'READ_PARAMETER' conflicts with a previous declaration D:\filefor\fortran\lixinliang\20140427 - \OpenCFD-EC2D-1.5.4\opencfd_ec2d_v1.5.4.f90 
Error 6  error #5508: Declaration of routine 'READ_PARAMETER' conflicts with a previous declaration D:\filefor\fortran\lixinliang\20140427 - \OpenCFD-EC2D-1.5.4\opencfd_ec2d_v1.5.4.f90 
Error 6  error #5508: Declaration of routine 'READ_PARAMETER' conflicts with a previous declaration D:\filefor\fortran\lixinliang\20140427 - \OpenCFD-EC2D-1.5.4\opencfd_ec2d_v1.5.4.f90 
Error 6  error #5508: Declaration of routine 'READ_PARAMETER' conflicts with a previous declaration D:\filefor\fortran\lixinliang\20140427 - \OpenCFD-EC2D-1.5.4\opencfd_ec2d_v1.5.4.f90 
Error 6  error #5508: Declaration of routine 'READ_PARAMETER' conflicts with a previous declaration D:\filefor\fortran\lixinliang\20140427 - \OpenCFD-EC2D-1.5.4\opencfd_ec2d_v1.5.4.f90 
Error 6  error #5508: Declaration of routine 'READ_PARAMETER' conflicts with a previous declaration D:\filefor\fortran\lixinliang\20140427 - \OpenCFD-EC2D-1.5.4\opencfd_ec2d_v1.5.4.f90 
Error 6  error #5508: Declaration of routine 'READ_PARAMETER' conflicts with a previous declaration D:\filefor\fortran\lixinliang\20140427 - \OpenCFD-EC2D-1.5.4\opencfd_ec2d_v1.5.4.f90 

回复列表 (共2个回复)

沙发


关掉别的程序,建立新的项目试试

板凳

别用这么多的新规则,用老规则编程,问题少许多

我来回复

您尚未登录,请登录后再回复。点此登录或注册