/[MITgcm]/MITgcm/pkg/fizhi/fizhi_readparms.F
ViewVC logotype

Annotation of /MITgcm/pkg/fizhi/fizhi_readparms.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.9 - (hide annotations) (download)
Mon May 23 02:15:51 2005 UTC (19 years, 1 month ago) by molod
Branch: MAIN
Changes since 1.8: +8 -3 lines
Start to set number of model timesteps from inside fizhi package

1 molod 1.9 C $Header: /u/gcmpack/MITgcm/pkg/fizhi/fizhi_readparms.F,v 1.8 2005/03/01 18:56:21 molod Exp $
2 molod 1.1 C $Name: $
3    
4 molod 1.5 #include "FIZHI_OPTIONS.h"
5 edhill 1.6
6     C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
7     CBOP 0
8     C !ROUTINE: FIZHI_MNC_INIT
9    
10     C !INTERFACE:
11     SUBROUTINE FIZHI_READPARMS( myThid )
12    
13     C !DESCRIPTION:
14     C Read Fizhi Namelist and Get the Model Date and Time from File
15    
16     C !USES:
17 molod 1.1 implicit none
18    
19     #include "chronos.h"
20 edhill 1.6 #include "fizhi_io_comms.h"
21 molod 1.1 #include "EEPARAMS.h"
22 molod 1.9 #include "SIZE.h"
23     #include "PARAMS.h"
24 molod 1.1
25 edhill 1.6 C !INPUT PARAMETERS:
26 molod 1.1 integer myThid
27 edhill 1.6 CEOP
28 molod 1.1
29 edhill 1.6 C !LOCAL VARIABLES:
30 molod 1.1 character*(MAX_LEN_MBUF) msgBuf
31     integer ku
32     integer nymdbegin, nhmsbegin
33     integer nymdcurrent, nhmscurrent
34 molod 1.9 real runlength
35 molod 1.1
36 edhill 1.6 namelist / fizhi_list /
37 molod 1.9 . nymdbegin, nhmsbegin,
38     . fizhi_mnc_write_pickup, fizhi_mnc_read_pickup,
39     . runlength
40 edhill 1.6
41     C Set defaults
42 molod 1.7 fizhi_mdsio_read_pickup = .TRUE.
43     fizhi_mdsio_write_pickup = .TRUE.
44     fizhi_mnc_write_pickup = .FALSE.
45     fizhi_mnc_read_pickup = .FALSE.
46 molod 1.9 runlength = 0.0
47 molod 1.1
48 edhill 1.6 C Read Fizhi Namelist
49 molod 1.1 WRITE(msgBuf,'(A)') ' FIZHI_READPARMS: opening data.fizhi'
50     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,SQUEEZE_RIGHT,1)
51    
52     CALL OPEN_COPY_DATA_FILE('data.fizhi', 'FIZHI_READPARMS',
53 edhill 1.6 & ku,myThid )
54 molod 1.1 read (ku,NML=fizhi_list)
55     close (ku)
56    
57 edhill 1.6 C Read Supplemental Ascii File with Current Time Info
58 molod 1.8 open(10,file='datetime0',form='formatted')
59 molod 1.1 read(10,1000)nymdcurrent,nhmscurrent
60 molod 1.4 close (10)
61 molod 1.1 1000 format(i8,2x,i6)
62    
63 edhill 1.6 C Fill chronos Common Block with Namelist and Other File Info
64 molod 1.1 nymd0 = nymdbegin
65     nhms0 = nhmsbegin
66     nymd = nymdcurrent
67     nhms = nhmscurrent
68    
69 edhill 1.6 C Echo Date and Time Info
70 molod 1.2 _BEGIN_MASTER(myThid)
71 molod 1.1 print *, ' Begin Date ',nymd0,' Begin Time ',nhms0
72     print *, 'Current Date ',nymd,' Current Time ',nhms
73     _END_MASTER(myThid)
74    
75     return
76     end
77 edhill 1.6
78     C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|

  ViewVC Help
Powered by ViewVC 1.1.22