1 |
molod |
1.2 |
C $Header: /u/gcmpack/MITgcm/pkg/fizhi/fizhi_readparms.F,v 1.1 2004/06/03 19:59:50 molod Exp $ |
2 |
molod |
1.1 |
C $Name: $ |
3 |
|
|
|
4 |
|
|
subroutine fizhi_readparms (myThid) |
5 |
|
|
C*********************************************************************** |
6 |
|
|
C Purpose |
7 |
|
|
C ------- |
8 |
|
|
C Read Fizhi Namelist and Get the Model Date and Time from File |
9 |
|
|
C |
10 |
|
|
C Arguments Description |
11 |
|
|
C ---------------------- |
12 |
|
|
C myThid ... Process(or) number |
13 |
|
|
C*********************************************************************** |
14 |
|
|
implicit none |
15 |
|
|
|
16 |
|
|
#include "CPP_EEOPTIONS.h" |
17 |
|
|
#include "CPP_OPTIONS.h" |
18 |
|
|
#include "chronos.h" |
19 |
|
|
#include "EEPARAMS.h" |
20 |
|
|
|
21 |
|
|
integer myThid |
22 |
|
|
|
23 |
|
|
c Declare Local Variables |
24 |
|
|
c ----------------------- |
25 |
|
|
character*(MAX_LEN_MBUF) msgBuf |
26 |
|
|
integer ku |
27 |
|
|
integer nymdbegin, nhmsbegin |
28 |
|
|
integer nymdcurrent, nhmscurrent |
29 |
|
|
|
30 |
|
|
namelist / fizhi_list / nymdbegin, nhmsbegin |
31 |
|
|
|
32 |
|
|
C ********************************************************************** |
33 |
|
|
C **** Initialize and Read Fizhi Namelist **** |
34 |
|
|
C ********************************************************************** |
35 |
|
|
|
36 |
|
|
WRITE(msgBuf,'(A)') ' FIZHI_READPARMS: opening data.fizhi' |
37 |
|
|
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,SQUEEZE_RIGHT,1) |
38 |
|
|
|
39 |
|
|
CALL OPEN_COPY_DATA_FILE('data.fizhi', 'FIZHI_READPARMS', |
40 |
|
|
. ku,myThid ) |
41 |
|
|
read (ku,NML=fizhi_list) |
42 |
|
|
close (ku) |
43 |
|
|
|
44 |
|
|
C ********************************************************************** |
45 |
|
|
C **** Read Supplemental Ascii File with Current Time Info **** |
46 |
|
|
C ********************************************************************** |
47 |
|
|
|
48 |
|
|
open(ku,file='datetime',form='formatted') |
49 |
|
|
read(10,1000)nymdcurrent,nhmscurrent |
50 |
|
|
1000 format(i8,2x,i6) |
51 |
|
|
|
52 |
|
|
C ********************************************************************** |
53 |
|
|
C **** Fill chronos Common Block with Namelist and Other File Info **** |
54 |
|
|
C ********************************************************************** |
55 |
|
|
|
56 |
|
|
nymd0 = nymdbegin |
57 |
|
|
nhms0 = nhmsbegin |
58 |
|
|
nymd = nymdcurrent |
59 |
|
|
nhms = nhmscurrent |
60 |
|
|
|
61 |
|
|
C ********************************************************************** |
62 |
|
|
C **** Echo Date and Time Info **** |
63 |
|
|
C ********************************************************************** |
64 |
|
|
|
65 |
molod |
1.2 |
_BEGIN_MASTER(myThid) |
66 |
molod |
1.1 |
print *, ' Begin Date ',nymd0,' Begin Time ',nhms0 |
67 |
|
|
print *, 'Current Date ',nymd,' Current Time ',nhms |
68 |
|
|
_END_MASTER(myThid) |
69 |
|
|
|
70 |
|
|
return |
71 |
|
|
end |