1 C $Date: 1994/10/05 16:41:52 $
10 include 'COMMON.TIME1'
11 C Diminish the assigned time limit a little so that there is some time to
14 C Calculate the initial time, if it is not zero (e.g. for the SUN).
16 cd print *,' in SET_TIMERS stime=',stime
19 C------------------------------------------------------------------------------
20 logical function stopx(nf)
21 C This function returns .true. in case of time up on the master node.
24 include 'DIMENSIONS.ZSCOPT'
31 include 'COMMON.IOUNITS'
32 include 'COMMON.TIME1'
34 C Finish if time is up.
37 else if (cutoffviol) then
45 C--------------------------------------------------------------------------
46 logical function ovrtim()
48 include 'COMMON.TIME1'
51 c print *,'curtim=',curtim,' timlim=',timlim
52 C curtim is the current time in seconds.
53 c ovrtim=(curtim .ge. timlim - safety )
54 c ovrtim does not work sometimes and crashes the program ! CHUUUJ !
55 c setting always to false
59 **************************************************************************
60 double precision function tcpu()
62 include 'COMMON.TIME1'
64 ****************************
65 C Next definition for EAGLE (ibm-es9000)
68 tcpu=cputime(micseconds,rcode)
69 tcpu=(micseconds/1.0E6) - stime
70 ****************************
73 ****************************
74 C Next definitions for sun
75 REAL*8 ECPU,ETIME,ETCPU
79 ****************************
82 ****************************
83 C Next definitions for ksr
84 C this function uses the ksr timer ALL_SECONDS from the PMON library to
85 C return the elapsed time in seconds
86 tcpu= all_seconds() - stime
87 ****************************
90 ****************************
91 C Next definitions for sgi
92 real timar(2), etime, seconds
93 seconds = etime(timar)
94 Cd print *,'seconds=',seconds,' stime=',stime
98 ****************************
102 ****************************
103 C Next definitions for sgi
104 real timar(2), etime, seconds
105 seconds = etime(timar)
106 Cd print *,'seconds=',seconds,' stime=',stime
110 ****************************
115 ****************************
116 C Next definitions for Cray
123 ****************************
126 ****************************
127 C Next definitions for RS6000
130 tcpu = (i1+0.0D0)/100.0D0
133 ****************************
134 c next definitions for windows NT Digital fortran
136 call cpu_time(time_real)
142 C---------------------------------------------------------------------------
143 subroutine dajczas(rntime,hrtime,mintime,sectime)
145 include 'COMMON.IOUNITS'
147 real*8 rntime,hrtime,mintime,sectime
148 hrtime=rntime/3600.0D0
150 mintime=aint((rntime-3600.0D0*hrtime)/60.0D0)
151 sectime=aint((rntime-3600.0D0*hrtime-60.0D0*mintime)+0.5D0)
152 if (sectime.eq.60.0D0) then
154 mintime=mintime+1.0D0
159 write (iout,328) ihr,imn,isc
160 328 FORMAT(//'***** Computation time: ',I4 ,' hours ',I2 ,
161 1 ' minutes ', I2 ,' seconds *****')