| SECOND是系统函数,用来获得程序已运行的时间。你需要绕过这个函数。 把自定义的SECOND函数用module封装起来,或者自己写相应接口
 
 [Fortran] syntaxhighlighter_viewsource syntaxhighlighter_copycode program P
    use test
    implicit none
    integer a,b
    a=2
    call second(a,b)
    print *,b
end program P
module test
    implicit none
contains
    subroutine second(arg1,  arg2)
        integer, intent(in) :: arg1
        integer, intent(out) ::  arg2
        arg2=arg1
    end subroutine second
end module test以上是一个module的样例
 |