/[MITgcm]/MITgcm/pkg/thsice/thsice_readparms.F
ViewVC logotype

Contents of /MITgcm/pkg/thsice/thsice_readparms.F

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


Revision 1.6 - (show annotations) (download)
Fri Dec 17 04:59:48 2004 UTC (19 years, 5 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint57d_post, checkpoint57g_post, checkpoint57b_post, checkpoint57c_pre, checkpoint57i_post, checkpoint57e_post, checkpoint57g_pre, checkpoint57f_pre, eckpoint57e_pre, checkpoint57h_done, checkpoint57f_post, checkpoint57c_post, checkpoint57h_pre, checkpoint57h_post
Changes since 1.5: +3 -3 lines
allow to write thSIce monitor to NetCDF file: monitor_sice.*.nc

1 C $Header: /u/gcmpack/MITgcm/pkg/thsice/thsice_readparms.F,v 1.5 2004/12/17 04:29:07 jmc Exp $
2 C $Name: $
3
4 #include "THSICE_OPTIONS.h"
5
6 CBOP
7 C !ROUTINE: THSICE_READPARMS
8 C !INTERFACE:
9 SUBROUTINE THSICE_READPARMS( myThid )
10
11 C !DESCRIPTION: \bv
12 C *==========================================================*
13 C | S/R THSICE_READPARMS
14 C | o Routine to initialize THSICE parameters and constants
15 C *==========================================================*
16 C | Initialize Th-Sea-ICE parameters, read in data.ice
17 C *==========================================================*
18 C \ev
19
20 C !USES:
21 IMPLICIT NONE
22
23 C === Global variables ===
24 #include "SIZE.h"
25 #include "EEPARAMS.h"
26 #include "PARAMS.h"
27 #include "GRID.h"
28 #include "THSICE_PARAMS.h"
29 #ifdef ALLOW_MNC
30 #include "MNC_PARAMS.h"
31 #endif
32
33 C !INPUT/OUTPUT PARAMETERS:
34 C === Routine arguments ===
35 INTEGER myThid
36 CEOP
37
38 #ifdef ALLOW_THSICE
39
40 C === Local variables ===
41 C msgBuf - Informational/error message buffer
42 C iUnit - Work variable for IO unit number
43 CHARACTER*(MAX_LEN_MBUF) msgBuf
44 INTEGER iUnit
45
46 C-- Th-Sea-ICE parameter
47 NAMELIST /THSICE_CONST/
48 & rhos, rhoi, rhosw, rhofw,
49 & cpice, cpwater,
50 & kice, ksnow,
51 & transcoef, Lfresh, qsnow,
52 & albColdSnow, albWarmSnow, albOldSnow, hNewSnowAge,
53 & albIceMax, albIceMin, hAlbIce, hAlbSnow,
54 & i0, ksolar,
55 & saltice, S_winton, mu_Tf,
56 & Tf0kel,
57 & himin, Terrmax, nitMaxTsf, hiMax, hsMax,
58 & iceMaskmax, iceMaskmin, himin0,
59 & frac_energy, hihig
60
61 NAMELIST /THSICE_PARM01/
62 & startIceModel, stepFwd_oceMxL,
63 & thSIce_deltaT, ocean_deltaT, tauRelax_MxL,
64 & hMxL_default, sMxL_default, vMxL_default,
65 & stressReduction,
66 & thSIce_taveFreq, thSIce_diagFreq, thSIce_monFreq,
67 c & thSIce_tave_mnc, thSIce_diag_mnc, thSIce_mon_mnc,
68 & thSIce_mon_mnc,
69 & thSIceFract_InitFile, thSIceThick_InitFile,
70 & thSIceSnowH_InitFile, thSIceSnowA_InitFile,
71 & thSIceEnthp_InitFile, thSIceTsurf_InitFile
72
73 _BEGIN_MASTER(myThid)
74
75 WRITE(msgBuf,'(A)') ' THSICE_READPARMS: opening data.ice'
76 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
77 & SQUEEZE_RIGHT , 1)
78
79 CALL OPEN_COPY_DATA_FILE(
80 I 'data.ice', 'THSICE_READPARMS',
81 O iUnit,
82 I myThid )
83
84 C-- Default values (constants)
85 rhos = 330. _d 0
86 rhoi = 900. _d 0
87 rhosw = rhoConst
88 rhofw = rhoConstFresh
89 cpice = 2106. _d 0
90 cpwater = HeatCapacity_Cp
91 kice = 2.03 _d 0
92 ksnow = 0.30 _d 0
93 transcoef=0.006 _d 0
94 Lfresh = 3.34 _d 5
95 qsnow = Lfresh
96 albColdSnow= 0.85 _d 0
97 albWarmSnow= 0.70 _d 0
98 albOldSnow = 0.55 _d 0
99 albIceMax = 0.65 _d 0
100 albIceMin = 0.20 _d 0
101 hAlbIce = 0.50 _d 0
102 hAlbSnow = 0.30 _d 0
103 hNewSnowAge= 2. _d -3
104 i0 = 0.3 _d 0
105 ksolar = 1.5 _d 0
106 saltice = 4. _d 0
107 S_winton = 1. _d 0
108 mu_Tf = 0.054 _d 0
109 Tf0kel = celsius2K
110 himin = 0.01 _d 0
111 Terrmax = 5.0 _d -1
112 nitMaxTsf= 20
113 hiMax = 10. _d 0
114 hsMax = 10. _d 0
115 iceMaskmax = 1. _d 0
116 iceMaskmin = .1 _d 0
117 himin0 = 0.2 _d 0
118 frac_energy= .4 _d 0
119 hihig = 2.5 _d 0
120
121 C-- Default values (parameters)
122 stepFwd_oceMxL = .FALSE.
123 startIceModel = 0
124 thSIce_deltaT = dTtracerLev(1)
125 ocean_deltaT = dTtracerLev(1)
126 tauRelax_MxL = 0. _d 0
127 hMxL_default = 50. _d 0
128 sMxL_default = 35. _d 0
129 vMxL_default = 5. _d -2
130 stressReduction = 1. _d 0
131 thSIce_taveFreq = taveFreq
132 thSIce_diagFreq = dumpFreq
133 thSIce_monFreq = monitorFreq
134 #ifdef ALLOW_MNC
135 thSIce_tave_mnc = timeave_mnc
136 thSIce_diag_mnc = snapshot_mnc
137 thSIce_mon_mnc = monitor_mnc
138 #else
139 thSIce_tave_mnc = .FALSE.
140 thSIce_diag_mnc = .FALSE.
141 thSIce_mon_mnc = .FALSE.
142 #endif
143 thSIceFract_InitFile = ' '
144 thSIceThick_InitFile = ' '
145 thSIceSnowH_InitFile = ' '
146 thSIceSnowA_InitFile = ' '
147 thSIceEnthp_InitFile = ' '
148 thSIceTsurf_InitFile = ' '
149
150
151 C-- Read parameters from open data file
152 READ(UNIT=iUnit,NML=THSICE_CONST)
153 WRITE(msgBuf,'(A)') ' THSICE_READPARMS: read THSICE_CONST'
154 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
155 & SQUEEZE_RIGHT , 1)
156
157 READ(UNIT=iUnit,NML=THSICE_PARM01)
158 WRITE(msgBuf,'(A)') ' THSICE_READPARMS: read THSICE_PARM01'
159 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
160 & SQUEEZE_RIGHT , 1)
161
162 C-- Close the open data file
163 CLOSE(iUnit)
164
165 C- Define other constants (from previous ones):
166 Tmlt1=-mu_Tf*S_winton
167 rhoiw = rhosw - rhoi
168
169 C- Set other parameters (from previous ones):
170 thSIce_tave_mdsio = .TRUE.
171 thSIce_diag_mdsio = .TRUE.
172 thSIce_mon_stdio = .TRUE.
173 #ifdef ALLOW_MNC
174 IF (useMNC) THEN
175 C-------
176 C- MNC not yet available in this package => turn off MNC flags for now
177 thSIce_tave_mnc = .FALSE.
178 thSIce_diag_mnc = .FALSE.
179 C-------
180 IF ( .NOT.outputTypesInclusive
181 & .AND. thSIce_tave_mnc ) thSIce_tave_mdsio = .FALSE.
182 IF ( .NOT.outputTypesInclusive
183 & .AND. thSIce_diag_mnc ) thSIce_diag_mdsio = .FALSE.
184 IF ( .NOT.outputTypesInclusive
185 & .AND. thSIce_mon_mnc ) thSIce_mon_stdio = .FALSE.
186 ENDIF
187 #endif
188
189 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
190 iUnit = standardMessageUnit
191 c CALL MDSFINDUNIT( iUnit, mythid )
192 c OPEN(iUnit,file='thsice_check_params',status='unknown')
193 WRITE(iUnit,*) 'ThSI: rhos =',rhos
194 WRITE(iUnit,*) 'ThSI: rhoi =',rhoi
195 WRITE(iUnit,*) 'ThSI: rhosw =',rhosw
196 WRITE(iUnit,*) 'ThSI: rhofw =',rhofw
197 WRITE(iUnit,*) 'ThSI: rhoiw =',rhoiw
198 WRITE(iUnit,*) 'ThSI: cpice =',cpice
199 WRITE(iUnit,*) 'ThSI: cpwater =',cpwater
200 WRITE(iUnit,*) 'ThSI: kice =',kice
201 WRITE(iUnit,*) 'ThSI: ksnow =',ksnow
202 WRITE(iUnit,*) 'ThSI: transcoef=',transcoef
203 WRITE(iUnit,*) 'ThSI: Lfresh =',Lfresh
204 WRITE(iUnit,*) 'ThSI: qsnow =',qsnow
205 WRITE(iUnit,*) 'ThSI: albColdSnow=',albColdSnow
206 WRITE(iUnit,*) 'ThSI: albWarmSnow=',albWarmSnow
207 WRITE(iUnit,*) 'ThSI: albOldSnow =',albOldSnow
208 WRITE(iUnit,*) 'ThSI: hNewSnowAge=',hNewSnowAge
209 WRITE(iUnit,*) 'ThSI: albIceMax =',albIceMax
210 WRITE(iUnit,*) 'ThSI: albIceMin =',albIceMin
211 WRITE(iUnit,*) 'ThSI: hAlbIce =',hAlbIce
212 WRITE(iUnit,*) 'ThSI: hAlbSnow =',hAlbSnow
213 WRITE(iUnit,*) 'ThSI: i0 =',i0
214 WRITE(iUnit,*) 'ThSI: ksolar =',ksolar
215 WRITE(iUnit,*) 'ThSI: saltice =',saltice
216 WRITE(iUnit,*) 'ThSI: S_winton=',S_winton
217 WRITE(iUnit,*) 'ThSI: mu_Tf =',mu_Tf
218 WRITE(iUnit,*) 'ThSI: Tf0kel =',Tf0kel
219 WRITE(iUnit,*) 'ThSI: Tmlt1 =',Tmlt1
220 WRITE(iUnit,*) 'ThSI: himin =',himin
221 WRITE(iUnit,*) 'ThSI: Terrmax =',Terrmax
222 WRITE(iUnit,*) 'ThSI: nitMaxTsf=',nitMaxTsf
223 WRITE(iUnit,*) 'ThSI: hiMax =',hiMax
224 WRITE(iUnit,*) 'ThSI: hsMax =',hsMax
225 WRITE(iUnit,*) 'ThSI: iceMaskmax=',iceMaskmax
226 WRITE(iUnit,*) 'ThSI: iceMaskmin=',iceMaskmin
227 WRITE(iUnit,*) 'ThSI: himin0 =',himin0
228 WRITE(iUnit,*) 'ThSI: frac_energy',frac_energy
229 WRITE(iUnit,*) 'ThSI: hihig =',hihig
230 WRITE(iUnit,*) 'ThSI: stressReduction =',stressReduction
231 WRITE(iUnit,*) 'ThSI: thSIce_deltaT =',thSIce_deltaT
232 WRITE(iUnit,*) 'ThSI: ocean_deltaT =',ocean_deltaT
233 WRITE(iUnit,*) 'ThSI: stepFwd_oceMxL=',stepFwd_oceMxL
234 WRITE(iUnit,*) 'ThSI: tauRelax_MxL =',tauRelax_MxL
235 WRITE(iUnit,*) 'ThSI: hMxL_default =',hMxL_default
236 WRITE(iUnit,*) 'ThSI: sMxL_default =',sMxL_default
237 WRITE(iUnit,*) 'ThSI: vMxL_default =',vMxL_default
238 WRITE(iUnit,*) 'ThSI: thSIce_taveFreq=',thSIce_taveFreq
239 WRITE(iUnit,*) 'ThSI: thSIce_diagFreq=',thSIce_diagFreq
240 WRITE(iUnit,*) 'ThSI: thSIce_monFreq =',thSIce_monFreq
241 WRITE(iUnit,*) 'ThSI: startIceModel =',startIceModel
242 IF (iUnit.NE.standardMessageUnit) CLOSE(iUnit)
243 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
244
245 _END_MASTER(myThid)
246
247 C-- Everyone else must wait for the parameters to be loaded
248 _BARRIER
249
250 #endif /* ALLOW_THSICE */
251
252 RETURN
253 END

  ViewVC Help
Powered by ViewVC 1.1.22