1 |
C $Header: $ |
2 |
C $Name: $ |
3 |
|
4 |
#include "RUNCLOCK_OPTIONS.h" |
5 |
|
6 |
CBOP |
7 |
C !ROUTINE: RUNCLOCK_INIT |
8 |
C !INTERFACE: |
9 |
SUBROUTINE RUNCLOCK_INIT( myThid ) |
10 |
|
11 |
C !DESCRIPTION: \bv |
12 |
C *==========================================================* |
13 |
C | SUBROUTINE RUNCLOCK_INIT |
14 |
C | o Routine to initialize RUNCLOCK variables |
15 |
C *==========================================================* |
16 |
C \ev |
17 |
C !USES: |
18 |
IMPLICIT NONE |
19 |
|
20 |
C === Global variables === |
21 |
#include "EEPARAMS.h" |
22 |
#include "RUNCLOCK.h" |
23 |
|
24 |
C !INPUT/OUTPUT PARAMETERS: |
25 |
C === Routine arguments === |
26 |
C myThid :: my Thread Id number |
27 |
INTEGER myThid |
28 |
CEOP |
29 |
|
30 |
#ifdef ALLOW_RUNCLOCK |
31 |
|
32 |
C !LOCAL VARIABLES: |
33 |
C === Local variables === |
34 |
CHARACTER*(MAX_LEN_MBUF) msgBuf |
35 |
|
36 |
IF (.NOT.RUNCLOCKIsOn) THEN |
37 |
WRITE(msgBuf,'(A)') ' RUNCLOCK_INIT: RUNCLOCK not turned on' |
38 |
CALL PRINT_ERROR( msgBuf, myThid ) |
39 |
ENDIF |
40 |
|
41 |
|
42 |
C Record the wall-clock time |
43 |
CALL runclock_gettime( |
44 |
& RC_start_yr,RC_start_mo,RC_start_dy, |
45 |
& RC_start_hr,RC_start_mi,RC_start_sc, |
46 |
& RC_start_tins) |
47 |
|
48 |
CALL GLOBAL_MAX_R8(RC_start_tins,myThid) |
49 |
|
50 |
RC_prev_tins=RC_start_tins |
51 |
|
52 |
c write(0,*) 'RUNCLOCK_INIT: yr mo dy hr mi sc', |
53 |
c & RC_start_yr,RC_start_mo,RC_start_dy, |
54 |
c & RC_start_hr,RC_start_mi,RC_start_sc,RC_start_tins |
55 |
|
56 |
#endif /* ALLOW_RUNCLOCK */ |
57 |
|
58 |
RETURN |
59 |
END |