/[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.2 - (hide annotations) (download)
Fri Sep 3 18:07:30 2004 UTC (19 years, 8 months ago) by stephd
Branch: MAIN
CVS Tags: checkpoint57o_post, checkpoint57m_post, checkpoint55c_post, checkpoint57k_post, checkpoint55d_pre, checkpoint57d_post, checkpoint57g_post, checkpoint57b_post, checkpoint57c_pre, checkpoint55j_post, checkpoint56b_post, checkpoint57i_post, checkpoint57e_post, checkpoint55h_post, checkpoint57g_pre, checkpoint55b_post, checkpoint56c_post, checkpoint55, checkpoint57f_pre, checkpoint57a_post, checkpoint54f_post, checkpoint55g_post, checkpoint55f_post, checkpoint57a_pre, checkpoint55i_post, checkpoint57, checkpoint56, eckpoint57e_pre, checkpoint57h_done, checkpoint57n_post, checkpoint57p_post, checkpoint57f_post, checkpoint57q_post, checkpoint57c_post, checkpoint55e_post, checkpoint55a_post, checkpoint57j_post, checkpoint57h_pre, checkpoint57l_post, checkpoint57h_post, checkpoint56a_post, checkpoint55d_post
Changes since 1.1: +3 -1 lines
o include surface forcing as files read in by offline code,
  make filenames (slightly) more general for reading in

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.2 & GMwzFile, HfluxFile, SfluxFile
32 stephd 1.1
33     NAMELIST /OFFLINE_PARM02/
34     & offlineIter0, deltaToffline, offlineForcingPeriod,
35     & offlineForcingCycle
36    
37     C === Local variables ===
38     C msgBuf - Informational/error meesage buffer
39     C iUnit - Work variable for IO unit number
40     CHARACTER*(MAX_LEN_MBUF) msgBuf
41     INTEGER iUnit
42    
43     _BEGIN_MASTER(myThid)
44    
45     WRITE(msgBuf,'(A)') ' OFFLINE_READPARMS: opening data.off'
46     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
47     & SQUEEZE_RIGHT , 1)
48    
49    
50     CALL OPEN_COPY_DATA_FILE(
51     I 'data.off', 'OFFLINE_READPARMS',
52     O iUnit,
53     I myThid )
54    
55     C-- Default values
56     UvelFile=' '
57     VvelFile=' '
58     WvelFile=' '
59     ThetFile=' '
60     SaltFile=' '
61     ConvFile=' '
62     GMwxFile=' '
63     GMwyFile=' '
64     GMwzFile=' '
65 stephd 1.2 HFluxFile=' '
66     SFluxFile=' '
67 stephd 1.1
68     C-- Read parameters from open data file
69     READ(UNIT=iUnit,NML=OFFLINE_PARM01)
70    
71     deltaToffline=deltaTclock
72     offlineIter0=nIter0
73     offlineForcingPeriod=2592000.
74     offlineForcingCycle=31104000.
75    
76    
77     C-- Read parameters from open data file
78     READ(UNIT=iUnit,NML=OFFLINE_PARM02)
79    
80     WRITE(msgBuf,'(A)')
81     & ' OFFLINE_READPARMS: finished reading data.off'
82     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
83     & SQUEEZE_RIGHT , 1)
84    
85     C-- Close the open data file
86     CLOSE(iUnit)
87     _END_MASTER(myThid)
88    
89     C-- Everyone else must wait for the parameters to be loaded
90     _BARRIER
91    
92    
93     #endif /* ALLOW_OFFLINE */
94    
95     return
96     end

  ViewVC Help
Powered by ViewVC 1.1.22