| [Fortran] syntaxhighlighter_viewsource syntaxhighlighter_copycode PROGRAM a
  REAL :: x
  CALL b(x)
CONTAINS
  SUBROUTINE b(i)
      INTEGER ::i
  END SUBROUTINE b
END PROGRAM aa 與 b 之間為 explicit interface, (type inconsistent) -> (compile-time fatal error, all compilers)
 
 
 [Fortran] syntaxhighlighter_viewsource syntaxhighlighter_copycode PROGRAM aa
  REAL ::xx
  CALL bb(xx)
END PROGRAM aa
SUBROUTINE bb(ii)
  INTEGER :: ii
END SUBROUTINE bbaa 與 bb 之間為 implicit interface, (type inconsistent) -> (compile-time fatal error or warn 是 compiler or compile-time-option dependent)
 
 aa 與 bb 放在兩個不同的file (aa.f90, bb.f90), 分開compile (王不見王, 沒有type inconsistent的問題), 就OK
 
 ==========================
 IVF结果跟Linux下运行出来的结果不太一样
 ==========================
 怎的(不太一样)?
 
 不一樣的程度遠高於precision的容忍度, 你 call FFTPack 的 "codes" 出錯的機會極大
 uninitialised variables, array out-of-bounds, unsaved local variables, ...
 |