主题:Fortran在模块中定义变量在子程序中出错,请教大神是为什么
主要错误的如下:
Error error #7002: Error in opening the compiled module file. Check INCLUDE paths. [VARIABLE] C:\Users\ABC\Documents\Visual Studio 2015\Projects\Console8 - 副本\Console8\bdcdt.f90 2
variable就是定义变量的模块,它用的语句是:
module variable
implicit none
real(kind=8),allocatable,save::x(:,:)
real(kind=8),allocatable,save::y(:,:)
real(kind=8),allocatable,save::s(:,:)
real(kind=8),allocatable,save::nx(:,:,:)
real(kind=8),allocatable,save::ny(:,:,:)
real(kind=8),allocatable,save::w(:,:,:)
real(kind=8),allocatable,save::p(:,:),flu(:,:,:),kedx(:,:),kedy(:,:),dt(:,:),dk(:,:,:)
real(kind=8),allocatable,save::wx(:,:,:),wy(:,:,:),rk(:,:,:),w0=(:,:,:)
real,save::Ma=0.8
real,save::alpha=1.25
real,save::gama=1.4
real,save::cfl=0.9,k2=0.75,k4=0.01
integer,save::imax,jmax,j,i,ii
real(kind=8),save::rd=1.0,rud=cos(alpha),rvd=sin(alpha),red=1.0/(gama*(gama-1)*(Ma**2))+0.5,pd=1/(gama*(Ma**2)),cd=sqrt(gama*pd/rd)
end module
跪求大神了,快被搞疯了