我正在尝试使用扩展名.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)
任何有想法的人?