/[MITgcm]/MITgcm/pkg/ecco/ecco_readparms.F
ViewVC logotype

Contents of /MITgcm/pkg/ecco/ecco_readparms.F

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


Revision 1.26 - (show annotations) (download)
Thu Oct 12 21:03:22 2006 UTC (17 years, 8 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint58q_post
Changes since 1.25: +6 -2 lines
Enable separate error fields for TP, ERS, GFO

1 C $Header: /u/gcmpack/MITgcm/pkg/ecco/ecco_readparms.F,v 1.25 2006/07/07 22:53:36 heimbach Exp $
2
3 #include "COST_CPPOPTIONS.h"
4
5 subroutine ecco_readparms( mythid )
6
7 c ==================================================================
8 c SUBROUTINE ecco_readparms
9 c ==================================================================
10 c
11 c o This routine initialises the package cost.
12 c started: Ralf Giering 18-Jan-2001
13 c
14 c ==================================================================
15 c SUBROUTINE ecco_readparms
16 c ==================================================================
17
18 implicit none
19
20 c == global variables ==
21
22 #include "EEPARAMS.h"
23 #include "SIZE.h"
24 #include "GRID.h"
25 #include "PARAMS.h"
26
27 #include "ecco_cost.h"
28
29 c == routine arguments ==
30
31 integer mythid
32
33 c == local variables ==
34 C msgBuf - Informational/error meesage buffer
35 C iUnit - Work variable for IO unit number
36 CHARACTER*(MAX_LEN_MBUF) msgBuf
37 INTEGER iUnit, num_file, num_var
38
39 c == end of interface ==
40
41 c-- Read the namelist input.
42 namelist /ecco_cost_nml/
43 & data_errfile,
44 & tbarfile, sbarfile, psbarfile,
45 & ubarfile, vbarfile, wbarfile,
46 & tauxbarfile, tauybarfile,
47 & hfluxbarfile, sfluxbarfile,
48 & using_topex,
49 & topexstartdate1, topexstartdate2,
50 & topexperiod, topexfile, topexmeanfile,
51 & topexintercept, topexslope,
52 & using_ers,
53 & ersstartdate1, ersstartdate2,
54 & ersperiod, ersfile,
55 & ersintercept, ersslope,
56 & using_gfo,
57 & gfostartdate1, gfostartdate2,
58 & gfoperiod, gfofile,
59 & gfointercept, gfoslope,
60 & scatstartdate1, scatstartdate2,
61 & scatperiod, scatxdatfile, scatydatfile,
62 & scatx_errfile, scaty_errfile,
63 & ssh_errfile,
64 & tp_errfile, ers_errfile, gfo_errfile,
65 & tmistartdate1, tmistartdate2, tmidatfile,
66 & sststartdate1, sststartdate2, sstdatfile,
67 & sssstartdate1, sssstartdate2, sssdatfile,
68 & tdatfile, sdatfile,
69 & ctdtfile, ctdsfile,
70 & ctdtclimfile, ctdsclimfile,
71 & xbtfile,
72 & argotstartdate1, argotstartdate2, argotfile,
73 & argosstartdate1, argosstartdate2, argosfile,
74 & udriftfile, vdriftfile,
75 & udrifterrfile, vdrifterrfile,
76 & curmtrufile,curmtrvfile,
77 & salterrfile, temperrfile, velerrfile,
78 & salt0errfile, temp0errfile, vel0errfile,
79 & hflux_errfile, sflux_errfile,
80 & tauu_errfile, tauv_errfile,
81 & atemp_errfile, aqh_errfile,
82 & precip_errfile, swflux_errfile, swdown_errfile,
83 & uwind_errfile, vwind_errfile,
84 & geoid_errfile, geoid_covariancefile,
85 & mult_hflux, mult_sflux, mult_tauu, mult_tauv,
86 & mult_hfluxmm, mult_sfluxmm,
87 & mult_atemp, mult_aqh,
88 & mult_precip, mult_swflux, mult_swdown,
89 & mult_uwind, mult_vwind,
90 & mult_hmean, mult_h,
91 & mult_tp, mult_ers, mult_gfo,
92 & mult_temp, mult_salt,
93 & mult_tmi, mult_sst, mult_sss,
94 & mult_ctdt, mult_ctds,
95 & mult_ctdtclim, mult_ctdsclim,
96 & mult_xbt, mult_drift,
97 & mult_argot, mult_argos,
98 & mult_scatx, mult_scaty,
99 & mult_sdrift, mult_tdrift, mult_wdrift,
100 & mult_temp0, mult_salt0,
101 & mult_obcsn, mult_obcss,
102 & mult_obcsw, mult_obcse, mult_obcsvol,
103 & mult_curmtr, mult_ageos,
104 & mult_kapgm, mult_diffkr,
105 & mult_smooth_ic, mult_smooth_bc,
106 & whflux0, wsflux0, wtau0,
107 & watemp0, waqh0,
108 & wprecip0, wswflux0, wswdown0, wwind0,
109 & wdiffkr0, wkapgm0, wedtau0,
110 & wmean_hflux, wmean_sflux, wmean_tau,
111 & wmean_atemp, wmean_aqh, wmean_precip,
112 & wmean_swflux, wmean_swdown, wmean_wind,
113 & cost_iprec, cost_yftype
114
115 _BEGIN_MASTER( myThid )
116
117 c-- Set default values.
118 data_errfile = ' '
119 tbarfile = 'tbar'
120 sbarfile = 'sbar'
121 psbarfile = 'psbar'
122 ubarfile = 'ubar'
123 vbarfile = 'vbar'
124 wbarfile = 'wbar'
125 tauxbarfile = 'tauxbar'
126 tauybarfile = 'tauybar'
127 hfluxbarfile = 'hfluxbar'
128 sfluxbarfile = 'sfluxbar'
129 using_topex = .false.
130 topexstartdate1 = 0
131 topexstartdate2 = 0
132 topexperiod = 0. _d 0
133 topexintercept = 0. _d 0
134 topexslope = 0. _d 0
135 topexfile = ' '
136 topexmeanfile = ' '
137 using_ers = .false.
138 ersstartdate1 = 0
139 ersstartdate2 = 0
140 ersperiod = 0. _d 0
141 ersintercept = 0. _d 0
142 ersslope = 0. _d 0
143 ersfile = ' '
144 using_gfo = .false.
145 gfostartdate1 = 0
146 gfostartdate2 = 0
147 gfoperiod = 0. _d 0
148 gfointercept = 0. _d 0
149 gfoslope = 0. _d 0
150 gfofile = ' '
151 scatstartdate1 = 0
152 scatstartdate2 = 0
153 scatperiod = 0. _d 0
154 scatxdatfile = ' '
155 scatydatfile = ' '
156 ssh_errfile = ' '
157 tp_errfile = ' '
158 ers_errfile = ' '
159 gfo_errfile = ' '
160 scatx_errfile = ' '
161 scaty_errfile = ' '
162 tmistartdate1 = 0
163 tmistartdate2 = 0
164 tmidatfile = ' '
165 sststartdate1 = 0
166 sststartdate2 = 0
167 sstdatfile = ' '
168 sssstartdate1 = 0
169 sssstartdate2 = 0
170 sssdatfile = ' '
171 tdatfile = ' '
172 sdatfile = ' '
173 ctdtfile = ' '
174 ctdsfile = ' '
175 ctdtclimfile = ' '
176 ctdsclimfile = ' '
177 curmtrufile = ' '
178 curmtrvfile = ' '
179 xbtfile = ' '
180 argotstartdate1 = 0
181 argotstartdate2 = 0
182 argotfile = ' '
183 argosstartdate1 = 0
184 argosstartdate2 = 0
185 argosfile = ' '
186 udriftfile = ' '
187 vdriftfile = ' '
188 udrifterrfile = ' '
189 vdrifterrfile = ' '
190 salterrfile = ' '
191 temperrfile = ' '
192 velerrfile = ' '
193 salt0errfile = ' '
194 temp0errfile = ' '
195 vel0errfile = ' '
196 hflux_errfile = ' '
197 sflux_errfile = ' '
198 tauu_errfile = ' '
199 tauv_errfile = ' '
200 atemp_errfile = ' '
201 aqh_errfile = ' '
202 precip_errfile = ' '
203 swflux_errfile = ' '
204 swdown_errfile = ' '
205 uwind_errfile = ' '
206 vwind_errfile = ' '
207 geoid_errfile = ' '
208 geoid_covariancefile = ' '
209
210 mult_hflux = 0. _d 0
211 mult_sflux = 0. _d 0
212 mult_hfluxmm = 0. _d 0
213 mult_sfluxmm = 0. _d 0
214 mult_tauu = 0. _d 0
215 mult_tauv = 0. _d 0
216 mult_atemp = 0. _d 0
217 mult_aqh = 0. _d 0
218 mult_precip = 0. _d 0
219 mult_swflux = 0. _d 0
220 mult_swdown = 0. _d 0
221 mult_uwind = 0. _d 0
222 mult_vwind = 0. _d 0
223 mult_hmean = 0. _d 0
224 mult_h = 1. _d 0
225 mult_tp = 0. _d 0
226 mult_ers = 0. _d 0
227 mult_gfo = 0. _d 0
228 mult_temp = 0. _d 0
229 mult_salt = 0. _d 0
230 mult_temp0 = 0. _d 0
231 mult_salt0 = 0. _d 0
232 mult_tmi = 0. _d 0
233 mult_sst = 0. _d 0
234 mult_sss = 0. _d 0
235 mult_ctdt = 0. _d 0
236 mult_ctds = 0. _d 0
237 mult_ctdtclim = 0. _d 0
238 mult_ctdsclim = 0. _d 0
239 mult_xbt = 0. _d 0
240 mult_argot = 0. _d 0
241 mult_argos = 0. _d 0
242 mult_drift = 0. _d 0
243 mult_tdrift = 0. _d 0
244 mult_sdrift = 0. _d 0
245 mult_wdrift = 0. _d 0
246 mult_scatx = 0. _d 0
247 mult_scaty = 0. _d 0
248 mult_obcsn = 0. _d 0
249 mult_obcss = 0. _d 0
250 mult_obcsw = 0. _d 0
251 mult_obcse = 0. _d 0
252 mult_obcsvol = 0. _d 0
253 mult_ageos = 0. _d 0
254 mult_curmtr = 0. _d 0
255 mult_kapgm = 0. _d 0
256 mult_diffkr = 0. _d 0
257 mult_smooth_ic = 0. _d 0
258 mult_smooth_bc = 0. _d 0
259 watemp0 = 0. _d 0
260 waqh0 = 0. _d 0
261 wprecip0 = 0. _d 0
262 wswflux0 = 0. _d 0
263 wswdown0 = 0. _d 0
264 wwind0 = 0. _d 0
265 wdiffkr0 = 1. _d 0
266 wkapgm0 = 1. _d 0
267 wedtau0 = 1. _d 0
268 whflux0 = 0. _d 0
269 wsflux0 = 0. _d 0
270 wtau0 = 0. _d 0
271 wmean_atemp = 0. _d 0
272 wmean_aqh = 0. _d 0
273 wmean_precip = 0. _d 0
274 wmean_swflux = 0. _d 0
275 wmean_swdown = 0. _d 0
276 wmean_wind = 0. _d 0
277 wmean_hflux = 0. _d 0
278 wmean_sflux = 0. _d 0
279 wmean_tau = 0. _d 0
280
281 c-- Next, read the cost data file.
282 WRITE(msgBuf,'(A)') 'ECCO_READPARMS: opening data.ecco'
283 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
284 & SQUEEZE_RIGHT , 1)
285
286 CALL OPEN_COPY_DATA_FILE(
287 I 'data.ecco', 'ECCO_READPARMS',
288 O iUnit,
289 I myThid )
290
291 READ( iUnit, nml = ecco_cost_nml )
292
293 WRITE(msgBuf,'(A)') 'ECCO_READPARMS: finished reading data.ecco'
294 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
295 & SQUEEZE_RIGHT , 1)
296
297 CLOSE( iUnit )
298
299 #ifdef ALLOW_CAL
300 c-- Get the complete dates of the ...
301 c-- ... SST data.
302 call cal_FullDate( sststartdate1, sststartdate2,
303 & sststartdate, mythid )
304 c-- ... TMI data.
305 call cal_FullDate( tmistartdate1, tmistartdate2,
306 & tmistartdate, mythid )
307 c-- ... SSS data.
308 call cal_FullDate( sssstartdate1, sssstartdate2,
309 & sssstartdate, mythid )
310 c-- ... T/P data.
311 call cal_FullDate( topexstartdate1, topexstartdate2,
312 & topexstartdate, mythid )
313 c-- ... ERS data.
314 call cal_FullDate( ersstartdate1, ersstartdate2,
315 & ersstartdate, mythid )
316 c-- ... GFO data.
317 call cal_FullDate( gfostartdate1, gfostartdate2,
318 & gfostartdate, mythid )
319 c-- ... SCAT data.
320 call cal_FullDate( scatstartdate1, scatstartdate2,
321 & scatxstartdate, mythid )
322 call cal_FullDate( scatstartdate1, scatstartdate2,
323 & scatystartdate, mythid )
324 #endif
325
326 _END_MASTER( mythid )
327
328 _BARRIER
329
330 end

  ViewVC Help
Powered by ViewVC 1.1.22