/[MITgcm]/MITgcm/pkg/offline/offline_readparms.F
ViewVC logotype

Annotation of /MITgcm/pkg/offline/offline_readparms.F

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


Revision 1.3 - (hide annotations) (download)
Thu Aug 25 22:32:12 2005 UTC (18 years, 9 months ago) by stephd
Branch: MAIN
CVS Tags: checkpoint57t_post, checkpoint57v_post, checkpoint57s_post, checkpoint57r_post, checkpoint57x_post, checkpoint57w_post, checkpint57u_post
Changes since 1.2: +4 -1 lines
o  add bits to read in KPP info

1 stephd 1.1
2     #include "CPP_OPTIONS.h"
3     #include "OFFLINE_OPTIONS.h"
4    
5     SUBROUTINE OFFLINE_READPARMS( myThid )
6     C /==========================================================\
7     C | SUBROUTINE OFFLINE_READPARMS |
8     C | o Routine to initialize OFFLINE variables and constants. |
9     C |==========================================================|
10     C | Initialize OFFLINE parameters, read in data.off |
11     C \==========================================================/
12     IMPLICIT NONE
13    
14     C === Global variables ===
15     #include "SIZE.h"
16     #include "EEPARAMS.h"
17     #include "PARAMS.h"
18     #include "GRID.h"
19     #ifdef ALLOW_OFFLINE
20     #include "OFFLINE.h"
21     #endif
22    
23     C === Routine arguments ===
24     INTEGER myThid
25    
26     #ifdef ALLOW_OFFLINE
27     C-- Bulk Formula parameter
28     NAMELIST /OFFLINE_PARM01/
29     & UvelFile, VvelFile, WvelFile, ThetFile,
30     & SaltFile, ConvFile, GMwxFile, GMwyFile,
31 stephd 1.3 & GMwzFile, HfluxFile, SfluxFile, KPP_DiffSFile,
32     & KPP_ghatFile
33 stephd 1.1
34     NAMELIST /OFFLINE_PARM02/
35     & offlineIter0, deltaToffline, offlineForcingPeriod,
36     & offlineForcingCycle
37    
38     C === Local variables ===
39     C msgBuf - Informational/error meesage buffer
40     C iUnit - Work variable for IO unit number
41     CHARACTER*(MAX_LEN_MBUF) msgBuf
42     INTEGER iUnit
43    
44     _BEGIN_MASTER(myThid)
45    
46     WRITE(msgBuf,'(A)') ' OFFLINE_READPARMS: opening data.off'
47     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
48     & SQUEEZE_RIGHT , 1)
49    
50    
51     CALL OPEN_COPY_DATA_FILE(
52     I 'data.off', 'OFFLINE_READPARMS',
53     O iUnit,
54     I myThid )
55    
56     C-- Default values
57     UvelFile=' '
58     VvelFile=' '
59     WvelFile=' '
60     ThetFile=' '
61     SaltFile=' '
62     ConvFile=' '
63     GMwxFile=' '
64     GMwyFile=' '
65     GMwzFile=' '
66 stephd 1.2 HFluxFile=' '
67     SFluxFile=' '
68 stephd 1.3 KPP_DiffSFile=' '
69     KPP_ghatFile=' '
70 stephd 1.1
71     C-- Read parameters from open data file
72     READ(UNIT=iUnit,NML=OFFLINE_PARM01)
73    
74     deltaToffline=deltaTclock
75     offlineIter0=nIter0
76     offlineForcingPeriod=2592000.
77     offlineForcingCycle=31104000.
78    
79    
80     C-- Read parameters from open data file
81     READ(UNIT=iUnit,NML=OFFLINE_PARM02)
82    
83     WRITE(msgBuf,'(A)')
84     & ' OFFLINE_READPARMS: finished reading data.off'
85     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
86     & SQUEEZE_RIGHT , 1)
87    
88     C-- Close the open data file
89     CLOSE(iUnit)
90     _END_MASTER(myThid)
91    
92     C-- Everyone else must wait for the parameters to be loaded
93     _BARRIER
94    
95    
96     #endif /* ALLOW_OFFLINE */
97    
98     return
99     end

  ViewVC Help
Powered by ViewVC 1.1.22