FORTRAN语言的使用技巧
0. 搭建轻便的计算环境
1. 估计CPU时间
C
C--------start the timer--------------
C subroution second(): get CPU time for process in secends
C CALL second(CPU1)
C ...
C CALL second(CPU2)
C CPU=CPU2-CPU1
C function second(): get CPU time for process in secends
C CPU1=second()
C ...
C CPU2=second()
C CPU=CPU2-CPU1
C function mclock(): get number of clock ticks for process
C function mclock8(): get number of clock ticks for process
C You can also check from Fortran manual or from web:
C http://gcc.gnu.org/onlinedocs/gcc-3.1.1/g77
C
C second way
CPU1=etime(a1)
...
CPU2=etime(a2)
C-------------------------------------
2. 其它
3. 文件相关