1 |
C $Header: /u/gcmpack/MITgcm/pkg/fizhi/fizhi_write_datetime.F,v 1.2 2004/10/22 14:52:14 molod Exp $ |
2 |
C $Name: $ |
3 |
|
4 |
#include "FIZHI_OPTIONS.h" |
5 |
|
6 |
C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----| |
7 |
CBOP 0 |
8 |
C !INTERFACE: |
9 |
SUBROUTINE FIZHI_WRITE_DATETIME( myTime, myIter, myThid ) |
10 |
|
11 |
C !DESCRIPTION: |
12 |
C Write Fizhi date and time to ascii file |
13 |
|
14 |
implicit none |
15 |
|
16 |
#include "chronos.h" |
17 |
|
18 |
C !INPUT PARAMETERS: |
19 |
integer myIter, myThid |
20 |
_RL myTime |
21 |
CEOP |
22 |
|
23 |
integer ku |
24 |
|
25 |
if( myThid.eq.1) then |
26 |
C Write Supplemental Ascii File with Current Time Info |
27 |
CALL MDSFINDUNIT( ku, myThid ) |
28 |
open(ku,file='datetime',form='formatted') |
29 |
write(ku,1000)nymd,nhms |
30 |
print *,' Writing datetime file: NYMD = ',nymd,' NHMS = ',nhms |
31 |
close (ku) |
32 |
endif |
33 |
1000 format(i8,2x,i6) |
34 |
|
35 |
return |
36 |
end |