再强调一次,不要用假定大小!建议改为自动数组,或假定形状。
如果你确实要用,那么我用下面的代码做了测试,分别用 ivf for windows 和 gfortran for linux,运行正常:
[Fortran] 纯文本查看 复制代码 program a
implicit none
integer :: work(5) = 3
call b(work)
end program a
Subroutine b( GGGG )
implicit none
integer,dimension(*) :: GGGG
call c(GGGG)
End Subroutine b
Subroutine c(xxxx)
implicit none
integer xxxx(5,1)
write(*,*) xxxx
End Subroutine c
我是搞地球物理的。联系方式嘛,可以找我的邮箱 gao[AT]fcode.cn
|