1 |
c $Header$ |
C $Header$ |
2 |
|
C $Name$ |
3 |
|
|
4 |
#include "EXF_CPPOPTIONS.h" |
#include "EXF_OPTIONS.h" |
|
#ifdef ALLOW_OBCS |
|
|
# include "OBCS_OPTIONS.h" |
|
|
#endif |
|
5 |
|
|
6 |
subroutine exf_readparms( mythid ) |
SUBROUTINE EXF_READPARMS( myThid ) |
7 |
|
|
8 |
c ================================================================== |
c ================================================================== |
9 |
c SUBROUTINE exf_readparms |
c SUBROUTINE exf_readparms |
12 |
c o This routine initialises the package that calculates external |
c o This routine initialises the package that calculates external |
13 |
c forcing fields for a given timestep of the MITgcmUV. Parameters |
c forcing fields for a given timestep of the MITgcmUV. Parameters |
14 |
c for this package are set in "data.externalforcing". Some additional |
c for this package are set in "data.externalforcing". Some additional |
15 |
c precompiler switches have to be specified in "EXF_CPPOPTIONS.h". |
c precompiler switches have to be specified in "EXF_OPTIONS.h". |
16 |
c |
c |
17 |
c started: Christian Eckert eckert@mit.edu 30-Jun-1999 |
c started: Christian Eckert eckert@mit.edu 30-Jun-1999 |
18 |
c |
c |
32 |
c - added new obcs parameters (for each boundaries) |
c - added new obcs parameters (for each boundaries) |
33 |
c included runoff D. Stammer, Nov. 25, 2001 |
c included runoff D. Stammer, Nov. 25, 2001 |
34 |
c included pressure forcing. heimbach@mit.edu 05-Nov-2002 |
c included pressure forcing. heimbach@mit.edu 05-Nov-2002 |
35 |
|
c added "repeatPeriod" for cycling of forcing datasets 19-Dec-2002 |
36 |
|
c mods for pkg/seaice: menemenlis@jpl.nasa.gov 20-Dec-2002 |
37 |
c |
c |
38 |
c ================================================================== |
c ================================================================== |
39 |
c SUBROUTINE exf_readparms |
c SUBROUTINE exf_readparms |
45 |
|
|
46 |
#include "EEPARAMS.h" |
#include "EEPARAMS.h" |
47 |
#include "SIZE.h" |
#include "SIZE.h" |
48 |
#include "cal.h" |
#include "PARAMS.h" |
49 |
#include "exf.h" |
c#include "cal.h" |
50 |
#include "exf_param.h" |
#include "EXF_PARAM.h" |
51 |
#include "exf_constants.h" |
#include "EXF_CONSTANTS.h" |
52 |
|
|
53 |
c == routine arguments == |
c == routine arguments == |
54 |
|
|
55 |
integer mythid |
integer myThid |
56 |
|
|
57 |
c == local variables == |
c == local variables == |
58 |
|
|
59 |
integer i |
integer i, idummy |
60 |
|
integer iUnit |
61 |
|
|
62 |
c == external == |
character*(max_len_mbuf) msgbuf |
|
|
|
|
integer ilnblnk |
|
|
external ilnblnk |
|
63 |
|
|
64 |
c == end of interface == |
c == end of interface == |
65 |
|
|
66 |
c Surface flux data. |
c Surface flux data. |
67 |
namelist /exf_nml/ |
NAMELIST /EXF_NML_01/ |
68 |
|
& windstressmax, repeatPeriod, exf_albedo, |
69 |
|
& ocean_emissivity, ice_emissivity, snow_emissivity, |
70 |
|
& exf_iceCd, exf_iceCe, exf_iceCh, |
71 |
|
& exf_scal_BulkCdn, climtempfreeze, |
72 |
|
& exf_iprec, exf_yftype, exf_monFreq, |
73 |
|
& useExfYearlyFields, twoDigitYear, useExfCheckRange, |
74 |
|
& useStabilityFct_overIce, readStressOnAgrid, readStressOnCgrid, |
75 |
|
& useRelativeWind, |
76 |
|
& hu, ht, umin, atmrho, atmcp, cen2kel, gravity_mks, |
77 |
|
& cdrag_1, cdrag_2, cdrag_3, cstanton_1, cstanton_2, cdalton, |
78 |
|
& flamb, flami, zolmin, zref, |
79 |
|
& cvapor_fac, cvapor_exp, cvapor_fac_ice, cvapor_exp_ice, |
80 |
|
& humid_fac, gamma_blk, saltsat, psim_fac |
81 |
|
|
82 |
|
NAMELIST /EXF_NML_02/ |
83 |
|
& hfluxfile, atempfile, aqhfile, |
84 |
|
& sfluxfile, precipfile, runofffile, |
85 |
|
& ustressfile, vstressfile, evapfile, |
86 |
|
& snowprecipfile, uwindfile, vwindfile, |
87 |
|
& wspeedfile, swfluxfile, lwfluxfile, |
88 |
|
& apressurefile, swdownfile, lwdownfile, |
89 |
|
& climsstfile, climsssfile, |
90 |
& hfluxstartdate1, hfluxstartdate2, hfluxperiod, |
& hfluxstartdate1, hfluxstartdate2, hfluxperiod, |
91 |
& atempstartdate1, atempstartdate2, atempperiod, |
& atempstartdate1, atempstartdate2, atempperiod, |
92 |
& aqhstartdate1, aqhstartdate2, aqhperiod, |
& aqhstartdate1, aqhstartdate2, aqhperiod, |
93 |
& sfluxstartdate1, sfluxstartdate2, sfluxperiod, |
& sfluxstartdate1, sfluxstartdate2, sfluxperiod, |
94 |
|
& evapstartdate1, evapstartdate2, evapperiod, |
95 |
& precipstartdate1, precipstartdate2, precipperiod, |
& precipstartdate1, precipstartdate2, precipperiod, |
96 |
|
& snowprecipstartdate1, snowprecipstartdate2, snowprecipperiod, |
97 |
& runoffstartdate1, runoffstartdate2, runoffperiod, |
& runoffstartdate1, runoffstartdate2, runoffperiod, |
98 |
& ustressstartdate1, ustressstartdate2, ustressperiod, |
& ustressstartdate1, ustressstartdate2, ustressperiod, |
99 |
& vstressstartdate1, vstressstartdate2, vstressperiod, |
& vstressstartdate1, vstressstartdate2, vstressperiod, |
100 |
& uwindstartdate1, uwindstartdate2, uwindperiod, |
& uwindstartdate1, uwindstartdate2, uwindperiod, |
101 |
& vwindstartdate1, vwindstartdate2, vwindperiod, |
& vwindstartdate1, vwindstartdate2, vwindperiod, |
102 |
|
& wspeedstartdate1, wspeedstartdate2, wspeedperiod, |
103 |
& swfluxstartdate1, swfluxstartdate2, swfluxperiod, |
& swfluxstartdate1, swfluxstartdate2, swfluxperiod, |
104 |
& lwfluxstartdate1, lwfluxstartdate2, lwfluxperiod, |
& lwfluxstartdate1, lwfluxstartdate2, lwfluxperiod, |
105 |
|
& swdownstartdate1, swdownstartdate2, swdownperiod, |
106 |
|
& lwdownstartdate1, lwdownstartdate2, lwdownperiod, |
107 |
|
&apressurestartdate1,apressurestartdate2,apressureperiod, |
108 |
|
& climsststartdate1, climsststartdate2, climsstperiod, |
109 |
|
& climsssstartdate1, climsssstartdate2, climsssperiod |
110 |
|
|
111 |
|
NAMELIST /EXF_NML_03/ |
112 |
|
& exf_inscal_hflux, exf_inscal_sflux, exf_inscal_evap, |
113 |
|
& exf_inscal_ustress, exf_inscal_vstress, |
114 |
|
& exf_inscal_uwind, exf_inscal_vwind, exf_inscal_wspeed, |
115 |
|
& exf_inscal_atemp, exf_offset_atemp, exf_inscal_aqh, |
116 |
|
& exf_inscal_sst, exf_inscal_sss, |
117 |
|
& exf_inscal_swflux, exf_inscal_lwflux, exf_inscal_precip, |
118 |
|
& exf_inscal_runoff, exf_inscal_apressure, exf_inscal_snowprecip, |
119 |
|
& exf_inscal_swdown, exf_inscal_lwdown, |
120 |
|
& exf_inscal_climsst, exf_inscal_climsss, |
121 |
|
& exf_outscal_hflux, exf_outscal_ustress, exf_outscal_vstress, |
122 |
|
& exf_outscal_swflux, exf_outscal_sst, exf_outscal_sss, |
123 |
|
& exf_outscal_sflux, exf_outscal_apressure, |
124 |
|
& hfluxconst, atempconst, aqhconst, sfluxconst, evapconst, |
125 |
|
& precipconst, snowprecipconst, runoffconst, ustressconst, |
126 |
|
& vstressconst, uwindconst, vwindconst, wspeedconst, swfluxconst, |
127 |
|
& lwfluxconst, swdownconst, lwdownconst, apressureconst, |
128 |
|
& climsstconst, climsssconst, |
129 |
|
& hflux_exfremo_intercept, hflux_exfremo_slope, |
130 |
|
& atemp_exfremo_intercept, atemp_exfremo_slope, |
131 |
|
& aqh_exfremo_intercept, aqh_exfremo_slope, |
132 |
|
& sflux_exfremo_intercept, sflux_exfremo_slope, |
133 |
|
& evap_exfremo_intercept, evap_exfremo_slope, |
134 |
|
& precip_exfremo_intercept, precip_exfremo_slope, |
135 |
|
& snowprecip_exfremo_intercept, snowprecip_exfremo_slope, |
136 |
|
& runoff_exfremo_intercept, runoff_exfremo_slope, |
137 |
|
& ustress_exfremo_intercept, ustress_exfremo_slope, |
138 |
|
& vstress_exfremo_intercept, vstress_exfremo_slope, |
139 |
|
& uwind_exfremo_intercept, uwind_exfremo_slope, |
140 |
|
& vwind_exfremo_intercept, vwind_exfremo_slope, |
141 |
|
& wspeed_exfremo_intercept, wspeed_exfremo_slope, |
142 |
|
& swflux_exfremo_intercept, swflux_exfremo_slope, |
143 |
|
& lwflux_exfremo_intercept, lwflux_exfremo_slope, |
144 |
|
& swdown_exfremo_intercept, swdown_exfremo_slope, |
145 |
|
& lwdown_exfremo_intercept, lwdown_exfremo_slope, |
146 |
|
& apressure_exfremo_intercept, apressure_exfremo_slope, |
147 |
|
& climsst_exfremo_intercept, climsst_exfremo_slope, |
148 |
|
& climsss_exfremo_intercept, climsss_exfremo_slope |
149 |
|
|
150 |
|
NAMELIST /EXF_NML_04/ |
151 |
|
& idummy |
152 |
|
#ifdef USE_EXF_INTERPOLATION |
153 |
|
& , ustress_lon0, ustress_lon_inc, ustress_lat0, ustress_lat_inc, |
154 |
|
& vstress_lon0, vstress_lon_inc, vstress_lat0, vstress_lat_inc, |
155 |
|
& ustress_nlon, ustress_nlat, vstress_nlon, vstress_nlat, |
156 |
|
& hflux_lon0, hflux_lon_inc, hflux_lat0, hflux_lat_inc, |
157 |
|
& sflux_lon0, sflux_lon_inc, sflux_lat0, sflux_lat_inc, |
158 |
|
& hflux_nlon, hflux_nlat, sflux_nlon, sflux_nlat, |
159 |
|
& swflux_lon0, swflux_lon_inc, swflux_lat0, swflux_lat_inc, |
160 |
|
& lwflux_lon0, lwflux_lon_inc, lwflux_lat0, lwflux_lat_inc, |
161 |
|
& swflux_nlon, swflux_nlat, lwflux_nlon, lwflux_nlat, |
162 |
|
& atemp_lon0, atemp_lon_inc, atemp_lat0, atemp_lat_inc, |
163 |
|
& atemp_nlon, atemp_nlat, |
164 |
|
& aqh_lon0, aqh_lon_inc, aqh_lat0, aqh_lat_inc, aqh_nlon, aqh_nlat, |
165 |
|
&evap_lon0,evap_lon_inc,evap_lat0,evap_lat_inc,evap_nlon,evap_nlat, |
166 |
|
& precip_lon0, precip_lon_inc, precip_lat0, precip_lat_inc, |
167 |
|
& runoff_lon0, runoff_lon_inc, runoff_lat0, runoff_lat_inc, |
168 |
|
& precip_nlon, precip_nlat, runoff_nlon, runoff_nlat, |
169 |
|
& snowprecip_lon0, snowprecip_lon_inc, snowprecip_nlon, |
170 |
|
& snowprecip_lat0, snowprecip_lat_inc, snowprecip_nlat, |
171 |
|
& uwind_lon0, uwind_lon_inc, uwind_lat0, uwind_lat_inc, |
172 |
|
& vwind_lon0, vwind_lon_inc, vwind_lat0, vwind_lat_inc, |
173 |
|
& uwind_nlon, uwind_nlat, vwind_nlon, vwind_nlat, |
174 |
|
& wspeed_lon0, wspeed_lon_inc, wspeed_lat0, wspeed_lat_inc, |
175 |
|
& wspeed_nlon, wspeed_nlat, |
176 |
|
& swdown_lon0, swdown_lon_inc, swdown_lat0, swdown_lat_inc, |
177 |
|
& lwdown_lon0, lwdown_lon_inc, lwdown_lat0, lwdown_lat_inc, |
178 |
|
& swdown_nlon, swdown_nlat, lwdown_nlon, lwdown_nlat, |
179 |
|
& apressure_lon0,apressure_lon_inc,apressure_nlon, |
180 |
|
& apressure_lat0,apressure_lat_inc,apressure_nlat, |
181 |
|
& climsst_lon0, climsst_lon_inc, climsst_nlon, |
182 |
|
& climsst_lat0, climsst_lat_inc, climsst_nlat, |
183 |
|
& climsss_lon0, climsss_lon_inc, climsss_nlon, |
184 |
|
& climsss_lat0, climsss_lat_inc, climsss_nlat |
185 |
|
#endif |
186 |
|
|
187 |
|
NAMELIST /EXF_NML_OBCS/ |
188 |
& obcsNstartdate1, obcsNstartdate2, obcsNperiod, |
& obcsNstartdate1, obcsNstartdate2, obcsNperiod, |
189 |
& obcsSstartdate1, obcsSstartdate2, obcsSperiod, |
& obcsSstartdate1, obcsSstartdate2, obcsSperiod, |
190 |
& obcsEstartdate1, obcsEstartdate2, obcsEperiod, |
& obcsEstartdate1, obcsEstartdate2, obcsEperiod, |
191 |
& obcsWstartdate1, obcsWstartdate2, obcsWperiod, |
& obcsWstartdate1, obcsWstartdate2, obcsWperiod, |
192 |
&apressurestartdate1,apressurestartdate2,apressureperiod, |
& siobNstartdate1, siobNstartdate2, siobNperiod, |
193 |
& hfluxfile, atempfile, aqhfile, |
& siobSstartdate1, siobSstartdate2, siobSperiod, |
194 |
& sfluxfile, precipfile, runofffile, |
& siobEstartdate1, siobEstartdate2, siobEperiod, |
195 |
& ustressfile, vstressfile, |
& siobWstartdate1, siobWstartdate2, siobWperiod |
|
& uwindfile, vwindfile, |
|
|
& swfluxfile, lwfluxfile, apressurefile, |
|
|
& exf_iprec, exf_yftype, |
|
|
& scal_hfl, scal_ust, scal_vst, |
|
|
& scal_swf, scal_sst, scal_sss, |
|
|
& scal_apressure, scal_prc, scal_sfl |
|
196 |
|
|
197 |
_BEGIN_MASTER(mythid) |
_BEGIN_MASTER(mythid) |
198 |
|
|
199 |
c Set default values. |
c Set default values. |
200 |
|
|
201 |
|
year2sec = 365.*86400. |
202 |
|
exf_monFreq = monitorFreq |
203 |
|
useExfCheckRange = .TRUE. |
204 |
|
readStressOnAgrid = .FALSE. |
205 |
|
readStressOnCgrid = .FALSE. |
206 |
|
useRelativeWind = .FALSE. |
207 |
|
|
208 |
|
C- default value should be set to main model parameter: |
209 |
|
c cen2kel = celsius2K |
210 |
|
c gravity_mks = gravity |
211 |
|
c atmcp = atm_Cp |
212 |
|
c humid_fac = atm_Rq <- default is zero !!! |
213 |
|
|
214 |
|
cen2kel = 273.150 _d 0 |
215 |
|
gravity_mks = 9.81 _d 0 |
216 |
|
atmrho = 1.200 _d 0 |
217 |
|
atmcp = 1005.000 _d 0 |
218 |
|
flamb = 2500000.000 _d 0 |
219 |
|
flami = 334000.000 _d 0 |
220 |
|
cvapor_fac = 640380.000 _d 0 |
221 |
|
cvapor_exp = 5107.400 _d 0 |
222 |
|
cvapor_fac_ice = 11637800.000 _d 0 |
223 |
|
cvapor_exp_ice = 5897.800 _d 0 |
224 |
|
humid_fac = 0.606 _d 0 |
225 |
|
gamma_blk = 0.010 _d 0 |
226 |
|
saltsat = 0.980 _d 0 |
227 |
|
cdrag_1 = 0.0027000 _d 0 |
228 |
|
cdrag_2 = 0.0001420 _d 0 |
229 |
|
cdrag_3 = 0.0000764 _d 0 |
230 |
|
cstanton_1 = 0.0327 _d 0 |
231 |
|
cstanton_2 = 0.0180 _d 0 |
232 |
|
cdalton = 0.0346 _d 0 |
233 |
|
zolmin = -100.000 _d 0 |
234 |
|
psim_fac = 5.000 _d 0 |
235 |
|
zref = 10.000 _d 0 |
236 |
|
hu = 10.000 _d 0 |
237 |
|
ht = 2.000 _d 0 |
238 |
|
umin = 0.5 _d 0 |
239 |
|
useStabilityFct_overIce = .FALSE. |
240 |
|
exf_iceCd = 1.63 _d -3 |
241 |
|
exf_iceCe = 1.63 _d -3 |
242 |
|
exf_iceCh = 1.63 _d -3 |
243 |
|
exf_albedo = 0.1 _d 0 |
244 |
|
c-- this default is chosen to be backward compatible with |
245 |
|
c-- an earlier setting of 5.5 = ocean_emissivity*stefanBoltzmann |
246 |
|
ocean_emissivity = 5.50 _d-8 / 5.670 _d-8 |
247 |
|
ice_emissivity = 0.95 _d 0 |
248 |
|
snow_emissivity = 0.95 _d 0 |
249 |
|
|
250 |
c Calendar data. |
c Calendar data. |
251 |
hfluxstartdate1 = 0 |
hfluxstartdate1 = 0 |
252 |
hfluxstartdate2 = 0 |
hfluxstartdate2 = 0 |
253 |
hfluxperiod = 0.0 _d 0 |
hfluxperiod = 0.0 _d 0 |
254 |
|
hfluxconst = 0.0 _d 0 |
255 |
|
hflux_exfremo_intercept = 0.0 _d 0 |
256 |
|
hflux_exfremo_slope = 0.0 _d 0 |
257 |
|
|
258 |
atempstartdate1 = 0 |
atempstartdate1 = 0 |
259 |
atempstartdate2 = 0 |
atempstartdate2 = 0 |
260 |
atempperiod = 0.0 _d 0 |
atempperiod = 0.0 _d 0 |
261 |
|
atempconst = celsius2K |
262 |
|
atemp_exfremo_intercept = 0.0 _d 0 |
263 |
|
atemp_exfremo_slope = 0.0 _d 0 |
264 |
|
|
265 |
aqhstartdate1 = 0 |
aqhstartdate1 = 0 |
266 |
aqhstartdate2 = 0 |
aqhstartdate2 = 0 |
267 |
aqhperiod = 0.0 _d 0 |
aqhperiod = 0.0 _d 0 |
268 |
|
aqhconst = 0.0 _d 0 |
269 |
|
aqh_exfremo_intercept = 0.0 _d 0 |
270 |
|
aqh_exfremo_slope = 0.0 _d 0 |
271 |
|
|
272 |
sfluxstartdate1 = 0 |
sfluxstartdate1 = 0 |
273 |
sfluxstartdate2 = 0 |
sfluxstartdate2 = 0 |
274 |
sfluxperiod = 0.0 _d 0 |
sfluxperiod = 0.0 _d 0 |
275 |
|
sfluxconst = 0.0 _d 0 |
276 |
|
sflux_exfremo_intercept = 0.0 _d 0 |
277 |
|
sflux_exfremo_slope = 0.0 _d 0 |
278 |
|
|
279 |
|
evapstartdate1 = 0 |
280 |
|
evapstartdate2 = 0 |
281 |
|
evapperiod = 0.0 _d 0 |
282 |
|
evapconst = 0.0 _d 0 |
283 |
|
evap_exfremo_intercept = 0.0 _d 0 |
284 |
|
evap_exfremo_slope = 0.0 _d 0 |
285 |
|
|
286 |
precipstartdate1 = 0 |
precipstartdate1 = 0 |
287 |
precipstartdate2 = 0 |
precipstartdate2 = 0 |
288 |
precipperiod = 0.0 _d 0 |
precipperiod = 0.0 _d 0 |
289 |
|
precipconst = 0.0 _d 0 |
290 |
|
precip_exfremo_intercept = 0.0 _d 0 |
291 |
|
precip_exfremo_slope = 0.0 _d 0 |
292 |
|
|
293 |
|
snowprecipstartdate1 = 0 |
294 |
|
snowprecipstartdate2 = 0 |
295 |
|
snowprecipperiod = 0.0 _d 0 |
296 |
|
snowprecipconst = 0.0 _d 0 |
297 |
|
snowprecip_exfremo_intercept = 0.0 _d 0 |
298 |
|
snowprecip_exfremo_slope = 0.0 _d 0 |
299 |
|
|
300 |
runoffstartdate1 = 0 |
runoffstartdate1 = 0 |
301 |
runoffstartdate2 = 0 |
runoffstartdate2 = 0 |
302 |
runoffperiod = 0.0 _d 0 |
runoffperiod = 0.0 _d 0 |
303 |
|
runoffconst = 0.0 _d 0 |
304 |
|
runoff_exfremo_intercept = 0.0 _d 0 |
305 |
|
runoff_exfremo_slope = 0.0 _d 0 |
306 |
|
|
307 |
ustressstartdate1 = 0 |
ustressstartdate1 = 0 |
308 |
ustressstartdate2 = 0 |
ustressstartdate2 = 0 |
309 |
ustressperiod = 0.0 _d 0 |
ustressperiod = 0.0 _d 0 |
310 |
|
ustressconst = 0.0 _d 0 |
311 |
|
ustress_exfremo_intercept = 0.0 _d 0 |
312 |
|
ustress_exfremo_slope = 0.0 _d 0 |
313 |
|
|
314 |
vstressstartdate1 = 0 |
vstressstartdate1 = 0 |
315 |
vstressstartdate2 = 0 |
vstressstartdate2 = 0 |
316 |
vstressperiod = 0.0 _d 0 |
vstressperiod = 0.0 _d 0 |
317 |
|
vstressconst = 0.0 _d 0 |
318 |
|
vstress_exfremo_intercept = 0.0 _d 0 |
319 |
|
vstress_exfremo_slope = 0.0 _d 0 |
320 |
|
|
321 |
uwindstartdate1 = 0 |
uwindstartdate1 = 0 |
322 |
uwindstartdate2 = 0 |
uwindstartdate2 = 0 |
323 |
uwindperiod = 0.0 _d 0 |
uwindperiod = 0.0 _d 0 |
324 |
|
uwindconst = 0.0 _d 0 |
325 |
|
uwind_exfremo_intercept = 0.0 _d 0 |
326 |
|
uwind_exfremo_slope = 0.0 _d 0 |
327 |
|
|
328 |
vwindstartdate1 = 0 |
vwindstartdate1 = 0 |
329 |
vwindstartdate2 = 0 |
vwindstartdate2 = 0 |
330 |
vwindperiod = 0.0 _d 0 |
vwindperiod = 0.0 _d 0 |
331 |
|
vwindconst = 0.0 _d 0 |
332 |
|
vwind_exfremo_intercept = 0.0 _d 0 |
333 |
|
vwind_exfremo_slope = 0.0 _d 0 |
334 |
|
|
335 |
|
wspeedstartdate1 = 0 |
336 |
|
wspeedstartdate2 = 0 |
337 |
|
wspeedperiod = 0.0 _d 0 |
338 |
|
wspeedconst = 0.0 _d 0 |
339 |
|
wspeed_exfremo_intercept = 0.0 _d 0 |
340 |
|
wspeed_exfremo_slope = 0.0 _d 0 |
341 |
|
|
342 |
swfluxstartdate1 = 0 |
swfluxstartdate1 = 0 |
343 |
swfluxstartdate2 = 0 |
swfluxstartdate2 = 0 |
344 |
swfluxperiod = 0.0 _d 0 |
swfluxperiod = 0.0 _d 0 |
345 |
|
swfluxconst = 0.0 _d 0 |
346 |
|
swflux_exfremo_intercept = 0.0 _d 0 |
347 |
|
swflux_exfremo_slope = 0.0 _d 0 |
348 |
|
|
349 |
lwfluxstartdate1 = 0 |
lwfluxstartdate1 = 0 |
350 |
lwfluxstartdate2 = 0 |
lwfluxstartdate2 = 0 |
351 |
lwfluxperiod = 0.0 _d 0 |
lwfluxperiod = 0.0 _d 0 |
352 |
|
lwfluxconst = 0.0 _d 0 |
353 |
|
lwflux_exfremo_intercept = 0.0 _d 0 |
354 |
|
lwflux_exfremo_slope = 0.0 _d 0 |
355 |
|
|
356 |
|
swdownstartdate1 = 0 |
357 |
|
swdownstartdate2 = 0 |
358 |
|
swdownperiod = 0.0 _d 0 |
359 |
|
swdownconst = 0.0 _d 0 |
360 |
|
swdown_exfremo_intercept = 0.0 _d 0 |
361 |
|
swdown_exfremo_slope = 0.0 _d 0 |
362 |
|
|
363 |
|
lwdownstartdate1 = 0 |
364 |
|
lwdownstartdate2 = 0 |
365 |
|
lwdownperiod = 0.0 _d 0 |
366 |
|
lwdownconst = 0.0 _d 0 |
367 |
|
lwdown_exfremo_intercept = 0.0 _d 0 |
368 |
|
lwdown_exfremo_slope = 0.0 _d 0 |
369 |
|
|
370 |
|
apressurestartdate1 = 0 |
371 |
|
apressurestartdate2 = 0 |
372 |
|
apressureperiod = 0.0 _d 0 |
373 |
|
apressureconst = 0.0 _d 0 |
374 |
|
apressure_exfremo_intercept = 0.0 _d 0 |
375 |
|
apressure_exfremo_slope = 0.0 _d 0 |
376 |
|
|
377 |
|
climsststartdate1 = 0 |
378 |
|
climsststartdate2 = 0 |
379 |
|
climsstperiod = 0 |
380 |
|
climsstconst = 0.0 _d 0 |
381 |
|
climsst_exfremo_intercept = 0.0 _d 0 |
382 |
|
climsst_exfremo_slope = 0.0 _d 0 |
383 |
|
|
384 |
|
climsssstartdate1 = 0 |
385 |
|
climsssstartdate2 = 0 |
386 |
|
climsssperiod = 0 |
387 |
|
climsssconst = 0.0 _d 0 |
388 |
|
climsss_exfremo_intercept = 0.0 _d 0 |
389 |
|
climsss_exfremo_slope = 0.0 _d 0 |
390 |
|
|
391 |
obcsNstartdate1 = 0 |
obcsNstartdate1 = 0 |
392 |
obcsNstartdate2 = 0 |
obcsNstartdate2 = 0 |
393 |
obcsNperiod = 0.0 _d 0 |
obcsNperiod = 0.0 _d 0 |
|
|
|
394 |
obcsSstartdate1 = 0 |
obcsSstartdate1 = 0 |
395 |
obcsSstartdate2 = 0 |
obcsSstartdate2 = 0 |
396 |
obcsSperiod = 0.0 _d 0 |
obcsSperiod = 0.0 _d 0 |
|
|
|
397 |
obcsEstartdate1 = 0 |
obcsEstartdate1 = 0 |
398 |
obcsEstartdate2 = 0 |
obcsEstartdate2 = 0 |
399 |
obcsEperiod = 0.0 _d 0 |
obcsEperiod = 0.0 _d 0 |
|
|
|
400 |
obcsWstartdate1 = 0 |
obcsWstartdate1 = 0 |
401 |
obcsWstartdate2 = 0 |
obcsWstartdate2 = 0 |
402 |
obcsWperiod = 0.0 _d 0 |
obcsWperiod = 0.0 _d 0 |
403 |
|
|
404 |
apressurestartdate1 = 0 |
siobNstartdate1 = UNSET_I |
405 |
apressurestartdate2 = 0 |
siobNstartdate2 = UNSET_I |
406 |
apressureperiod = 0.0 _d 0 |
siobNperiod = UNSET_RL |
407 |
|
siobSstartdate1 = UNSET_I |
408 |
|
siobSstartdate2 = UNSET_I |
409 |
|
siobSperiod = UNSET_RL |
410 |
|
siobEstartdate1 = UNSET_I |
411 |
|
siobEstartdate2 = UNSET_I |
412 |
|
siobEperiod = UNSET_RL |
413 |
|
siobWstartdate1 = UNSET_I |
414 |
|
siobWstartdate2 = UNSET_I |
415 |
|
siobWperiod = UNSET_RL |
416 |
|
|
417 |
|
repeatPeriod = 0.0 _d 0 |
418 |
|
windstressmax = 2.0 _d 0 |
419 |
|
|
420 |
|
exf_scal_BulkCdn = 1.0 _d 0 |
421 |
|
|
422 |
|
c Initialise freezing temperature of sea water |
423 |
|
climtempfreeze = -1.9 _d 0 |
424 |
|
|
425 |
c Data files. |
c Data files. |
426 |
hfluxfile = ' ' |
hfluxfile = ' ' |
427 |
atempfile = ' ' |
atempfile = ' ' |
428 |
aqhfile = ' ' |
aqhfile = ' ' |
429 |
|
evapfile = ' ' |
430 |
precipfile = ' ' |
precipfile = ' ' |
431 |
|
snowprecipfile = ' ' |
432 |
sfluxfile = ' ' |
sfluxfile = ' ' |
433 |
runofffile = ' ' |
runofffile = ' ' |
434 |
ustressfile = ' ' |
ustressfile = ' ' |
435 |
vstressfile = ' ' |
vstressfile = ' ' |
436 |
uwindfile = ' ' |
uwindfile = ' ' |
437 |
vwindfile = ' ' |
vwindfile = ' ' |
438 |
|
wspeedfile = ' ' |
439 |
swfluxfile = ' ' |
swfluxfile = ' ' |
440 |
lwfluxfile = ' ' |
lwfluxfile = ' ' |
441 |
|
swdownfile = ' ' |
442 |
|
lwdownfile = ' ' |
443 |
apressurefile = ' ' |
apressurefile = ' ' |
444 |
|
climsstfile = ' ' |
445 |
|
climsssfile = ' ' |
446 |
|
|
447 |
c Initialise the date arrays. |
c Start dates. |
448 |
do i = 1,4 |
hfluxstartdate = 0. |
449 |
hfluxstartdate(i) = 0 |
atempstartdate = 0. |
450 |
atempstartdate(i) = 0 |
aqhstartdate = 0. |
451 |
aqhstartdate(i) = 0 |
evapstartdate = 0. |
452 |
precipstartdate(i) = 0 |
precipstartdate = 0. |
453 |
sfluxstartdate(i) = 0 |
snowprecipstartdate= 0. |
454 |
runoffstartdate(i) = 0 |
sfluxstartdate = 0. |
455 |
ustressstartdate(i) = 0 |
runoffstartdate = 0. |
456 |
vstressstartdate(i) = 0 |
ustressstartdate = 0. |
457 |
uwindstartdate(i) = 0 |
vstressstartdate = 0. |
458 |
vwindstartdate(i) = 0 |
uwindstartdate = 0. |
459 |
swfluxstartdate(i) = 0 |
vwindstartdate = 0. |
460 |
lwfluxstartdate(i) = 0 |
wspeedstartdate = 0. |
461 |
obcsNstartdate(i) = 0 |
swfluxstartdate = 0. |
462 |
obcsSstartdate(i) = 0 |
lwfluxstartdate = 0. |
463 |
obcsEstartdate(i) = 0 |
swdownstartdate = 0. |
464 |
obcsWstartdate(i) = 0 |
lwdownstartdate = 0. |
465 |
apressurestartdate(i)= 0 |
obcsNstartdate = 0. |
466 |
enddo |
obcsSstartdate = 0. |
467 |
|
obcsEstartdate = 0. |
468 |
|
obcsWstartdate = 0. |
469 |
|
siobNstartdate = 0. |
470 |
|
siobSstartdate = 0. |
471 |
|
siobEstartdate = 0. |
472 |
|
siobWstartdate = 0. |
473 |
|
apressurestartdate = 0. |
474 |
|
climsststartdate = 0. |
475 |
|
climsssstartdate = 0. |
476 |
|
|
477 |
c Initialise file type and field precision |
c Initialise file type and field precision |
478 |
exf_iprec = 32 |
exf_iprec = 32 |
479 |
exf_yftype = 'RL' |
exf_yftype = 'RL' |
480 |
|
useExfYearlyFields = .FALSE. |
481 |
|
twoDigitYear = .FALSE. |
482 |
|
|
483 |
|
c Input scaling factors. |
484 |
|
exf_inscal_hflux = 1. _d 0 |
485 |
|
exf_inscal_sflux = 1. _d 0 |
486 |
|
exf_inscal_ustress = 1. _d 0 |
487 |
|
exf_inscal_vstress = 1. _d 0 |
488 |
|
exf_inscal_uwind = 1. _d 0 |
489 |
|
exf_inscal_vwind = 1. _d 0 |
490 |
|
exf_inscal_wspeed = 1. _d 0 |
491 |
|
exf_inscal_swflux = 1. _d 0 |
492 |
|
exf_inscal_lwflux = 1. _d 0 |
493 |
|
exf_inscal_precip = 1. _d 0 |
494 |
|
exf_inscal_snowprecip= 1. _d 0 |
495 |
|
exf_inscal_sst = 1. _d 0 |
496 |
|
exf_inscal_sss = 1. _d 0 |
497 |
|
exf_inscal_atemp = 1. _d 0 |
498 |
|
exf_offset_atemp = 0. _d 0 |
499 |
|
exf_inscal_aqh = 1. _d 0 |
500 |
|
exf_inscal_evap = 1. _d 0 |
501 |
|
exf_inscal_apressure = 1. _d 0 |
502 |
|
exf_inscal_runoff = 1. _d 0 |
503 |
|
exf_inscal_swdown = 1. _d 0 |
504 |
|
exf_inscal_lwdown = 1. _d 0 |
505 |
|
exf_inscal_climsst = 1. _d 0 |
506 |
|
exf_inscal_climsss = 1. _d 0 |
507 |
|
|
508 |
|
c Output scaling factors. |
509 |
|
exf_outscal_hflux = 1. _d 0 |
510 |
|
exf_outscal_sflux = 1. _d 0 |
511 |
|
exf_outscal_ustress = 1. _d 0 |
512 |
|
exf_outscal_vstress = 1. _d 0 |
513 |
|
exf_outscal_swflux = 1. _d 0 |
514 |
|
exf_outscal_sst = 1. _d 0 |
515 |
|
exf_outscal_sss = 1. _d 0 |
516 |
|
exf_outscal_apressure= 1. _d 0 |
517 |
|
|
518 |
|
#ifdef USE_EXF_INTERPOLATION |
519 |
|
ustress_lon0 = thetaMin |
520 |
|
uwind_lon0 = thetaMin |
521 |
|
vstress_lon0 = thetaMin + delX(1)*exf_half |
522 |
|
hflux_lon0 = thetaMin + delX(1)*exf_half |
523 |
|
sflux_lon0 = thetaMin + delX(1)*exf_half |
524 |
|
swflux_lon0 = thetaMin + delX(1)*exf_half |
525 |
|
runoff_lon0 = thetaMin + delX(1)*exf_half |
526 |
|
atemp_lon0 = thetaMin + delX(1)*exf_half |
527 |
|
aqh_lon0 = thetaMin + delX(1)*exf_half |
528 |
|
evap_lon0 = thetaMin + delX(1)*exf_half |
529 |
|
precip_lon0 = thetaMin + delX(1)*exf_half |
530 |
|
snowprecip_lon0= thetaMin + delX(1)*exf_half |
531 |
|
vwind_lon0 = thetaMin + delX(1)*exf_half |
532 |
|
wspeed_lon0 = thetaMin + delX(1)*exf_half |
533 |
|
lwflux_lon0 = thetaMin + delX(1)*exf_half |
534 |
|
swdown_lon0 = thetaMin + delX(1)*exf_half |
535 |
|
lwdown_lon0 = thetaMin + delX(1)*exf_half |
536 |
|
apressure_lon0 = thetaMin + delX(1)*exf_half |
537 |
|
vstress_lat0 = phimin |
538 |
|
vwind_lat0 = phimin |
539 |
|
wspeed_lat0 = phimin |
540 |
|
ustress_lat0 = phimin + delY(1)*exf_half |
541 |
|
hflux_lat0 = phimin + delY(1)*exf_half |
542 |
|
sflux_lat0 = phimin + delY(1)*exf_half |
543 |
|
runoff_lat0 = phimin + delY(1)*exf_half |
544 |
|
swflux_lat0 = phimin + delY(1)*exf_half |
545 |
|
atemp_lat0 = phimin + delY(1)*exf_half |
546 |
|
aqh_lat0 = phimin + delY(1)*exf_half |
547 |
|
evap_lat0 = phimin + delY(1)*exf_half |
548 |
|
precip_lat0 = phimin + delY(1)*exf_half |
549 |
|
snowprecip_lat0= phimin + delY(1)*exf_half |
550 |
|
uwind_lat0 = phimin + delY(1)*exf_half |
551 |
|
lwflux_lat0 = phimin + delY(1)*exf_half |
552 |
|
swdown_lat0 = phimin + delY(1)*exf_half |
553 |
|
lwdown_lat0 = phimin + delY(1)*exf_half |
554 |
|
apressure_lat0 = phimin + delY(1)*exf_half |
555 |
|
ustress_nlon = Nx |
556 |
|
ustress_nlat = Ny |
557 |
|
vstress_nlon = Nx |
558 |
|
vstress_nlat = Ny |
559 |
|
hflux_nlon = Nx |
560 |
|
hflux_nlat = Ny |
561 |
|
sflux_nlon = Nx |
562 |
|
sflux_nlat = Ny |
563 |
|
swflux_nlon = Nx |
564 |
|
swflux_nlat = Ny |
565 |
|
runoff_nlon = Nx |
566 |
|
runoff_nlat = Ny |
567 |
|
atemp_nlon = Nx |
568 |
|
atemp_nlat = Ny |
569 |
|
aqh_nlon = Nx |
570 |
|
aqh_nlat = Ny |
571 |
|
evap_nlon = Nx |
572 |
|
evap_nlat = Ny |
573 |
|
precip_nlon = Nx |
574 |
|
snowprecip_nlon= Nx |
575 |
|
precip_nlat = Ny |
576 |
|
snowprecip_nlat= Ny |
577 |
|
uwind_nlon = Nx |
578 |
|
uwind_nlat = Ny |
579 |
|
vwind_nlon = Nx |
580 |
|
vwind_nlat = Ny |
581 |
|
wspeed_nlon = Nx |
582 |
|
wspeed_nlat = Ny |
583 |
|
lwflux_nlon = Nx |
584 |
|
lwflux_nlat = Ny |
585 |
|
swdown_nlon = Nx |
586 |
|
swdown_nlat = Ny |
587 |
|
lwdown_nlon = Nx |
588 |
|
lwdown_nlat = Ny |
589 |
|
apressure_nlon = Nx |
590 |
|
apressure_nlat = Ny |
591 |
|
Ustress_lon_inc = delX(1) |
592 |
|
vstress_lon_inc = delX(1) |
593 |
|
hflux_lon_inc = delX(1) |
594 |
|
sflux_lon_inc = delX(1) |
595 |
|
swflux_lon_inc = delX(1) |
596 |
|
runoff_lon_inc = delX(1) |
597 |
|
atemp_lon_inc = delX(1) |
598 |
|
aqh_lon_inc = delX(1) |
599 |
|
evap_lon_inc = delX(1) |
600 |
|
precip_lon_inc = delX(1) |
601 |
|
snowprecip_lon_inc= delX(1) |
602 |
|
uwind_lon_inc = delX(1) |
603 |
|
vwind_lon_inc = delX(1) |
604 |
|
wspeed_lon_inc = delX(1) |
605 |
|
lwflux_lon_inc = delX(1) |
606 |
|
swdown_lon_inc = delX(1) |
607 |
|
lwdown_lon_inc = delX(1) |
608 |
|
apressure_lon_inc = delX(1) |
609 |
|
climsst_lon0 = thetaMin + delX(1)*exf_half |
610 |
|
climsss_lon0 = thetaMin + delX(1)*exf_half |
611 |
|
climsst_lat0 = phimin + delY(1)*exf_half |
612 |
|
climsss_lat0 = phimin + delY(1)*exf_half |
613 |
|
climsst_nlon = Nx |
614 |
|
climsst_nlat = Ny |
615 |
|
climsss_nlon = Nx |
616 |
|
climsss_nlat = Ny |
617 |
|
climsst_lon_inc = delX(1) |
618 |
|
climsss_lon_inc = delX(1) |
619 |
|
DO i=1,MAX_LAT_INC |
620 |
|
IF (i.LT.Ny) THEN |
621 |
|
vstress_lat_inc(i) = delY(i) |
622 |
|
vwind_lat_inc(i) = delY(i) |
623 |
|
wspeed_lat_inc(i) = delY(i) |
624 |
|
ustress_lat_inc(i) = (delY(i) + delY(i))*exf_half |
625 |
|
hflux_lat_inc(i) = (delY(i) + delY(i))*exf_half |
626 |
|
sflux_lat_inc(i) = (delY(i) + delY(i))*exf_half |
627 |
|
swflux_lat_inc(i) = (delY(i) + delY(i))*exf_half |
628 |
|
runoff_lat_inc(i) = (delY(i) + delY(i))*exf_half |
629 |
|
atemp_lat_inc(i) = (delY(i) + delY(i))*exf_half |
630 |
|
aqh_lat_inc(i) = (delY(i) + delY(i))*exf_half |
631 |
|
evap_lat_inc(i) = (delY(i) + delY(i))*exf_half |
632 |
|
precip_lat_inc(i) = (delY(i) + delY(i))*exf_half |
633 |
|
snowprecip_lat_inc(i)= (delY(i) + delY(i))*exf_half |
634 |
|
uwind_lat_inc(i) = (delY(i) + delY(i))*exf_half |
635 |
|
lwflux_lat_inc(i) = (delY(i) + delY(i))*exf_half |
636 |
|
swdown_lat_inc(i) = (delY(i) + delY(i))*exf_half |
637 |
|
lwdown_lat_inc(i) = (delY(i) + delY(i))*exf_half |
638 |
|
apressure_lat_inc(i) = (delY(i) + delY(i))*exf_half |
639 |
|
climsst_lat_inc(i) = (delY(i) + delY(i))*exf_half |
640 |
|
climsss_lat_inc(i) = (delY(i) + delY(i))*exf_half |
641 |
|
ELSE |
642 |
|
ustress_lat_inc(i) = 0. |
643 |
|
vstress_lat_inc(i) = 0. |
644 |
|
hflux_lat_inc(i) = 0. |
645 |
|
sflux_lat_inc(i) = 0. |
646 |
|
swflux_lat_inc(i) = 0. |
647 |
|
runoff_lat_inc(i) = 0. |
648 |
|
atemp_lat_inc(i) = 0. |
649 |
|
aqh_lat_inc(i) = 0. |
650 |
|
evap_lat_inc(i) = 0. |
651 |
|
precip_lat_inc(i) = 0. |
652 |
|
snowprecip_lat_inc(i)= 0. |
653 |
|
uwind_lat_inc(i) = 0. |
654 |
|
vwind_lat_inc(i) = 0. |
655 |
|
wspeed_lat_inc(i) = 0. |
656 |
|
lwflux_lat_inc(i) = 0. |
657 |
|
swdown_lat_inc(i) = 0. |
658 |
|
lwdown_lat_inc(i) = 0. |
659 |
|
apressure_lat_inc(i) = 0. |
660 |
|
climsst_lat_inc(i) = 0. |
661 |
|
climsss_lat_inc(i) = 0. |
662 |
|
ENDIF |
663 |
|
ENDDO |
664 |
|
#endif /* USE_EXF_INTERPOLATION */ |
665 |
|
|
666 |
c scaling between exf units and MITgcm units |
c Next, read the forcing data file. |
667 |
scal_hfl = 1. _d 0 |
WRITE(msgBuf,'(A)') 'EXF_READPARMS: opening data.exf' |
668 |
scal_ust = 1. _d 0 |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
669 |
scal_vst = 1. _d 0 |
& SQUEEZE_RIGHT , 1) |
670 |
scal_swf = 1. _d 0 |
|
671 |
scal_sst = 1. _d 0 |
CALL OPEN_COPY_DATA_FILE( |
672 |
scal_sss = 1. _d 0 |
I 'data.exf', 'EXF_READPARMS', |
673 |
scal_apressure = 1. _d 0 |
O iUnit, |
674 |
#if (defined (ALLOW_BULKFORMULAE) && defined (ALLOW_ATM_TEMP)) |
I myThid ) |
675 |
scal_prc = 1. _d 0 |
|
676 |
|
WRITE(msgBuf,'(A)') |
677 |
|
& 'EXF_READPARMS: reading EXF_NML_01' |
678 |
|
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
679 |
|
& SQUEEZE_RIGHT , 1) |
680 |
|
READ( iUnit, nml = EXF_NML_01 ) |
681 |
|
WRITE(msgBuf,'(A)') |
682 |
|
& 'EXF_READPARMS: reading EXF_NML_02' |
683 |
|
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
684 |
|
& SQUEEZE_RIGHT , 1) |
685 |
|
READ( iUnit, nml = EXF_NML_02 ) |
686 |
|
WRITE(msgBuf,'(A)') |
687 |
|
& 'EXF_READPARMS: reading EXF_NML_03' |
688 |
|
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
689 |
|
& SQUEEZE_RIGHT , 1) |
690 |
|
READ( iUnit, nml = EXF_NML_03 ) |
691 |
|
WRITE(msgBuf,'(A)') |
692 |
|
& 'EXF_READPARMS: reading EXF_NML_04' |
693 |
|
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
694 |
|
& SQUEEZE_RIGHT , 1) |
695 |
|
READ( iUnit, nml = EXF_NML_04 ) |
696 |
|
#ifdef ALLOW_OBCS |
697 |
|
WRITE(msgBuf,'(A)') |
698 |
|
& 'EXF_READPARMS: reading EXF_NML_OBCS' |
699 |
|
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
700 |
|
& SQUEEZE_RIGHT , 1) |
701 |
|
READ( iUnit, nml = EXF_NML_OBCS ) |
702 |
|
IF(siobNstartdate1.EQ.UNSET_I ) siobNstartdate1 = obcsNstartdate1 |
703 |
|
IF(siobNstartdate2.EQ.UNSET_I ) siobNstartdate2 = obcsNstartdate2 |
704 |
|
IF(siobNperiod .EQ.UNSET_RL) siobNperiod = obcsNperiod |
705 |
|
IF(siobSstartdate1.EQ.UNSET_I ) siobSstartdate1 = obcsSstartdate1 |
706 |
|
IF(siobSstartdate2.EQ.UNSET_I ) siobSstartdate2 = obcsSstartdate2 |
707 |
|
IF(siobSperiod .EQ.UNSET_RL) siobSperiod = obcsSperiod |
708 |
|
IF(siobEstartdate1.EQ.UNSET_I ) siobEstartdate1 = obcsEstartdate1 |
709 |
|
IF(siobEstartdate2.EQ.UNSET_I ) siobEstartdate2 = obcsEstartdate2 |
710 |
|
IF(siobEperiod .EQ.UNSET_RL) siobEperiod = obcsEperiod |
711 |
|
IF(siobWstartdate1.EQ.UNSET_I ) siobWstartdate1 = obcsWstartdate1 |
712 |
|
IF(siobWstartdate2.EQ.UNSET_I ) siobWstartdate2 = obcsWstartdate2 |
713 |
|
IF(siobWperiod .EQ.UNSET_RL) siobWperiod = obcsWperiod |
714 |
|
#endif |
715 |
|
|
716 |
|
WRITE(msgBuf,'(A)') |
717 |
|
& 'EXF_READPARMS: finished reading data.exf' |
718 |
|
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
719 |
|
& SQUEEZE_RIGHT , 1) |
720 |
|
|
721 |
|
CLOSE( iUnit ) |
722 |
|
|
723 |
|
C-- Derive other parameters: |
724 |
|
hq = ht |
725 |
|
#if ( ( defined (ALLOW_BULKFORMULAE) && defined (ALLOW_ATM_WIND) ) \ |
726 |
|
|| defined (USE_EXF_INTERPOLATION) ) |
727 |
|
stressIsOnCgrid = .FALSE. |
728 |
#else |
#else |
729 |
scal_sfl = 1. _d 0 |
stressIsOnCgrid = readStressOnCgrid |
730 |
#endif |
#endif |
731 |
|
|
732 |
c Check for the availability of the right calendar version. |
CALL EXF_CHECK( myThid ) |
|
if ( calendarversion .ne. usescalendarversion ) then |
|
|
print*,' exf_readparms: You are not using the appropriate' |
|
|
print*,' version of the calendar package.' |
|
|
print* |
|
|
print*,' You are using Calendar version: ', calendarversion |
|
|
print*,' Please use Calendar version: ', usescalendarversion |
|
|
stop ' stopped in exf_readparms.' |
|
|
endif |
|
|
|
|
|
c Next, read the forcing data file. |
|
|
call nml_filter( 'data.exf', scrunit1, myThid ) |
|
|
if (scrunit1 .eq. 0) then |
|
|
stop 'exf_readparms: reading namelist failed' |
|
|
end if |
|
|
read( scrunit1, nml = exf_nml ) |
|
|
close( scrunit1 ) |
|
733 |
|
|
734 |
c Complete the start date specifications for the forcing |
c Complete the start date specifications for the forcing |
735 |
c fields to get a complete calendar date array. |
c fields to get a complete calendar date array. |
736 |
|
C => moved to EXF_INIT_FIXED |
|
c check for consistency |
|
|
|
|
|
if (.NOT. |
|
|
& (exf_iprec .EQ. 32 .OR. exf_iprec .EQ. 64) |
|
|
& ) then |
|
|
stop 'stop in exf_readparms: value of exf_iprec not allowed' |
|
|
else if (.NOT. |
|
|
& (exf_yftype .EQ. 'RS' .OR. |
|
|
& exf_yftype .EQ. 'RL') |
|
|
& ) then |
|
|
stop 'stop in exf_readparms: value of exf_yftype not allowed' |
|
|
end if |
|
|
|
|
|
#ifdef ALLOW_RUNOFF |
|
|
call cal_FullDate( runoffstartdate1, runoffstartdate2, |
|
|
& runoffstartdate, mythid ) |
|
|
#endif |
|
|
|
|
|
#ifdef ALLOW_BULKFORMULAE |
|
|
|
|
|
#ifdef ALLOW_ATM_TEMP |
|
|
call cal_FullDate( atempstartdate1, atempstartdate2, |
|
|
& atempstartdate, mythid ) |
|
|
call cal_FullDate( aqhstartdate1, aqhstartdate2, |
|
|
& aqhstartdate, mythid ) |
|
|
call cal_FullDate( swfluxstartdate1, swfluxstartdate2, |
|
|
& swfluxstartdate, mythid ) |
|
|
call cal_FullDate( lwfluxstartdate1, lwfluxstartdate2, |
|
|
& lwfluxstartdate, mythid ) |
|
|
call cal_FullDate( precipstartdate1, precipstartdate2, |
|
|
& precipstartdate, mythid ) |
|
|
#else |
|
|
call cal_FullDate( hfluxstartdate1, hfluxstartdate2, |
|
|
& hfluxstartdate, mythid ) |
|
|
call cal_FullDate( sfluxstartdate1, sfluxstartdate2, |
|
|
& sfluxstartdate, mythid ) |
|
|
#ifdef ALLOW_KPP |
|
|
call cal_FullDate( swfluxstartdate1, swfluxstartdate2, |
|
|
& swfluxstartdate, mythid ) |
|
|
#endif |
|
|
|
|
|
#endif |
|
|
|
|
|
#ifdef ALLOW_ATM_WIND |
|
|
call cal_FullDate( uwindstartdate1, uwindstartdate2, |
|
|
& uwindstartdate, mythid ) |
|
|
call cal_FullDate( vwindstartdate1, vwindstartdate2, |
|
|
& vwindstartdate, mythid ) |
|
|
#else |
|
|
call cal_FullDate( ustressstartdate1, ustressstartdate2, |
|
|
& ustressstartdate, mythid ) |
|
|
call cal_FullDate( vstressstartdate1, vstressstartdate2, |
|
|
& vstressstartdate, mythid ) |
|
|
#endif |
|
|
|
|
|
#else |
|
|
call cal_FullDate( hfluxstartdate1, hfluxstartdate2, |
|
|
& hfluxstartdate, mythid ) |
|
|
call cal_FullDate( sfluxstartdate1, sfluxstartdate2, |
|
|
& sfluxstartdate, mythid ) |
|
|
call cal_FullDate( ustressstartdate1, ustressstartdate2, |
|
|
& ustressstartdate, mythid ) |
|
|
call cal_FullDate( vstressstartdate1, vstressstartdate2, |
|
|
& vstressstartdate, mythid ) |
|
|
#ifdef ALLOW_KPP |
|
|
call cal_FullDate( swfluxstartdate1, swfluxstartdate2, |
|
|
& swfluxstartdate, mythid ) |
|
|
#endif |
|
|
|
|
|
#endif |
|
|
|
|
|
#ifdef ALLOW_OBCS |
|
|
#ifdef ALLOW_OBCS_NORTH |
|
|
call cal_FullDate( obcsNstartdate1, obcsNstartdate2, |
|
|
& obcsNstartdate, mythid ) |
|
|
#endif |
|
|
#ifdef ALLOW_OBCS_SOUTH |
|
|
call cal_FullDate( obcsSstartdate1, obcsSstartdate2, |
|
|
& obcsSstartdate, mythid ) |
|
|
#endif |
|
|
#ifdef ALLOW_OBCS_EAST |
|
|
call cal_FullDate( obcsEstartdate1, obcsEstartdate2, |
|
|
& obcsEstartdate, mythid ) |
|
|
#endif |
|
|
#ifdef ALLOW_OBCS_WEST |
|
|
call cal_FullDate( obcsWstartdate1, obcsWstartdate2, |
|
|
& obcsWstartdate, mythid ) |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
#ifdef ATMOSPHERIC_LOADING |
|
|
call cal_FullDate( apressurestartdate1, apressurestartdate2, |
|
|
& apressurestartdate, mythid ) |
|
|
#endif |
|
737 |
|
|
738 |
_END_MASTER( mythid ) |
_END_MASTER( mythid ) |
|
|
|
739 |
_BARRIER |
_BARRIER |
740 |
|
|
741 |
c-- Summarize the External forcing's setup. |
RETURN |
742 |
call exf_summary( mythid ) |
END |
|
|
|
|
|
|
|
c-- set climatology parameters |
|
|
call exf_clim_readparms( mythid ) |
|
|
|
|
|
c-- summarize climatologic forcing configuration |
|
|
call exf_clim_summary( mythid ) |
|
|
|
|
|
end |
|