在(1)处的表达式中期望右括号,在(1)处在名称中使用无效字符

时间:2016-12-25 08:49:45

标签: fortran gfortran

我正在尝试使用扩展名.f90在gfortran中编译以下代码:

g8(x,h) = h * ( ( & 
          w1 * ( func ( x - x1 * h,ybar,jpr,mu,sigmam,sigmae,rhom,N ) + func ( x + x1 * h,ybar,jpr,mu,sigmam,sigmae,rhom,N ) )   &
        + w2 * ( func ( x - x2 * h,ybar,jpr,mu,sigmam,sigmae,rhom,N ) + func ( x + x2 * h,ybar,jpr,mu,sigmam,sigmae,rhom,N ) ) ) &
      + ( w3 * ( func ( x - x3 * h,ybar,jpr,mu,sigmam,sigmae,rhom,N ) + func ( x + x3 * h,ybar,jpr,mu,sigmam,sigmae,rhom,N ) )   &
        + w4 * ( func ( x - x4 * h,ybar,jpr,mu,sigmam,sigmae,rhom,N ) + func ( x + x4 * h,ybar,jpr,mu,sigmam,sigmae,rhom,N ) ) ) )

并收到以下错误。

procedures.f90:493.130:

am,sigmae,rhom,N ) + func ( x + x1 * h,ybar,jpr,mu,sigmam,sigmae,rhom,N ) )  
                                                                       1
Error: Expected a right parenthesis in expression at (1)
procedures.f90:494.13:

        + w2 * ( func ( x - x2 * h,ybar,jpr,mu,sigmam,sigmae,rhom,N ) + fun
         1
Error: Invalid character in name at (1)

任何有想法的人?

0 个答案:

没有答案