代码时下面就这个简单的代码
[Fortran] 纯文本查看 复制代码 program test
implicit none
real(kind=8) :: a
type :: mytype
real :: kk
end type mytype
type(mytype) :: tt(2)
a=1
write(*,*) tt(1)
write(*,*) tt(2)
call funcs_syn(a,tt)
end program test
subroutine funcs_syn(wavei,AtmospherePara)
real(kind=8) wavei
type :: mytype
real :: kk
end type mytype
type(mytype) :: AtmospherePara(2)
return
end
结果报错时出现这个1>c:\users\admin\documents\visual studio 2010\Projects\Console7\Console7\Console7.f90(28): error #6633: The type of the actual argument differs from the type of the dummy argument. [TT]
1>compilation aborted for c:\users\admin\documents\visual studio 2010\Projects\Console7\Console7\Console7.f90 (code 1)
我用的visual fortran 求大神帮忙解答
|