1 |
heimbach |
1.1 |
C $Header: /u/gcmpack/development/heimbach/ecco_env/pkg/cal/cal_timestamp.F,v 1.4 2001/02/02 16:57:22 heimbach Exp $ |
2 |
|
|
|
3 |
|
|
#include "CAL_CPPOPTIONS.h" |
4 |
|
|
|
5 |
|
|
subroutine cal_TimeStamp( |
6 |
|
|
I myiter, |
7 |
|
|
I mytime, |
8 |
|
|
O mydate, |
9 |
|
|
I mythid |
10 |
|
|
& ) |
11 |
|
|
|
12 |
|
|
c ================================================================== |
13 |
|
|
c SUBROUTINE cal_TimeStamp |
14 |
|
|
c ================================================================== |
15 |
|
|
c |
16 |
|
|
c o Get and print time step information for the numerical model. |
17 |
|
|
c |
18 |
|
|
c started: Christian Eckert eckert@mit.edu 04-May-2000 |
19 |
|
|
c |
20 |
|
|
c - Adapted to calendar from the ECCO release routine |
21 |
|
|
c ecco_TimeStamp. |
22 |
|
|
c |
23 |
|
|
c ================================================================== |
24 |
|
|
c SUBROUTINE cal_TimeStamp |
25 |
|
|
c ================================================================== |
26 |
|
|
|
27 |
|
|
implicit none |
28 |
|
|
|
29 |
|
|
c == global variables == |
30 |
|
|
|
31 |
|
|
#include "EEPARAMS.h" |
32 |
|
|
|
33 |
|
|
c == routine arguments == |
34 |
|
|
|
35 |
|
|
integer myiter |
36 |
|
|
_RL mytime |
37 |
|
|
integer mydate(4) |
38 |
|
|
integer mythid |
39 |
|
|
|
40 |
|
|
character*(max_len_mbuf) msgbuf |
41 |
|
|
|
42 |
|
|
c == local variables == |
43 |
|
|
|
44 |
|
|
c == end of interface == |
45 |
|
|
|
46 |
|
|
c-- Get the current date. |
47 |
|
|
|
48 |
|
|
call cal_GetDate( myiter, mytime, mydate, mythid ) |
49 |
|
|
|
50 |
|
|
c-- Print integration step, time, and the corresponding date |
51 |
|
|
c-- if this is the master thread's instance of this routine. |
52 |
|
|
|
53 |
|
|
_BEGIN_MASTER(mythid) |
54 |
|
|
write(msgbuf,'(a)') |
55 |
|
|
& ' ' |
56 |
|
|
call print_message( msgbuf, standardmessageunit, |
57 |
|
|
& SQUEEZE_RIGHT , mythid) |
58 |
|
|
write(msgbuf,'(a,i10,a,e15.8)') |
59 |
|
|
& ' cal_TimeStamp: iter = ',myiter,' time = ',mytime |
60 |
|
|
call print_message( msgbuf, standardmessageunit, |
61 |
|
|
& SQUEEZE_RIGHT , mythid) |
62 |
|
|
write(msgbuf,'(a,i10,2x,i10)') |
63 |
|
|
& ' date = ',mydate(1),mydate(2) |
64 |
|
|
call print_message( msgbuf, standardmessageunit, |
65 |
|
|
& SQUEEZE_RIGHT , mythid) |
66 |
|
|
write(msgbuf,'(a)') |
67 |
|
|
& ' ' |
68 |
|
|
call print_message( msgbuf, standardmessageunit, |
69 |
|
|
& SQUEEZE_RIGHT , mythid) |
70 |
|
|
_END_MASTER(mythid) |
71 |
|
|
|
72 |
|
|
return |
73 |
|
|
end |
74 |
|
|
|