|
[Fortran] 纯文本查看 复制代码 03 | real ( kind = 4 ) :: t 1 _real , t 2 _real |
06 | call CPU_TIME ( t 1 _real ) |
16 | call CPU_TIME ( t 2 _real ) |
18 | write ( * , * ) "count1" , t 1 _real |
19 | write ( * , * ) "count2" , t 2 _real |
20 | write ( * , * ) "时间" , t 2 _real - t 1 _real |
以上程序的输出结果为: count1 0.0000000E+00
count2 3.1250000E-02
时间 3.1250000E-02
当我把以上程序写入abaqus子程序中:
[Fortran] 纯文本查看 复制代码 01 | subroutine umat ( stress , statev , ddsdde , sse , spd , scd , ...... ) |
06 | real ( kind = 4 ) :: t 1 _real , t 2 _real |
12 | call CPU_TIME ( t 1 _real ) |
18 | call CPU_TIME ( t 2 _real ) |
19 | write ( * , * ) "count1" , t 1 _real !默认输出在 log 文件里 |
20 | write ( * , * ) "count2" , t 2 _real !默认输出在 log 文件里 |
21 | write ( * , * ) "时间" , t 2 _real - t 1 _real !默认输出在 log 文件里 |
在log文件中查看输出结果:
count1 6.250000
count2 6.250000
时间 0.0000000E+00
count1 6.250000
count2 6.250000
时间 0.0000000E+00
....
....
...
所有的 count1和count2都相等,时间为0. 是由于某些原因CPU_TIME函数在abaqus子程序中失效了吗?
|
|