1 | SUBROUTINE read_var_list |
---|
2 | |
---|
3 | !------------------------------------------------------------------------------! |
---|
4 | ! Actual revisions: |
---|
5 | ! ----------------- |
---|
6 | ! |
---|
7 | ! |
---|
8 | ! Former revisions: |
---|
9 | ! ----------------- |
---|
10 | ! $Id: read_var_list.f90 39 2007-03-01 12:46:59Z raasch $ |
---|
11 | ! |
---|
12 | ! 20 2007-02-26 00:12:32Z raasch |
---|
13 | ! +top_heatflux, use_top_fluxes |
---|
14 | ! |
---|
15 | ! RCS Log replace by Id keyword, revision history cleaned up |
---|
16 | ! |
---|
17 | ! Revision 1.34 2006/08/22 14:14:27 raasch |
---|
18 | ! +dz_max |
---|
19 | ! |
---|
20 | ! Revision 1.1 1998/03/18 20:18:48 raasch |
---|
21 | ! Initial revision |
---|
22 | ! |
---|
23 | ! |
---|
24 | ! Description: |
---|
25 | ! ------------ |
---|
26 | ! Reading values of control variables from restart-file (binary format) |
---|
27 | !------------------------------------------------------------------------------! |
---|
28 | |
---|
29 | USE arrays_3d |
---|
30 | USE averaging |
---|
31 | USE grid_variables |
---|
32 | USE indices |
---|
33 | USE model_1d |
---|
34 | USE pegrid |
---|
35 | USE profil_parameter |
---|
36 | USE statistics |
---|
37 | USE control_parameters |
---|
38 | |
---|
39 | IMPLICIT NONE |
---|
40 | |
---|
41 | CHARACTER (LEN=10) :: binary_version, version_on_file |
---|
42 | CHARACTER (LEN=30) :: variable_chr |
---|
43 | |
---|
44 | CALL check_open( 13 ) |
---|
45 | |
---|
46 | ! |
---|
47 | !-- Make version number check first |
---|
48 | READ ( 13 ) version_on_file |
---|
49 | binary_version = '3.0' |
---|
50 | IF ( TRIM( version_on_file ) /= TRIM( binary_version ) ) THEN |
---|
51 | IF ( myid == 0 ) THEN |
---|
52 | PRINT*, '+++ read_var_list: version mismatch concerning control', & |
---|
53 | ' variables' |
---|
54 | PRINT*, ' version on file = "', & |
---|
55 | TRIM( version_on_file ), '"' |
---|
56 | PRINT*, ' version on program = "', & |
---|
57 | TRIM( binary_version ), '"' |
---|
58 | ENDIF |
---|
59 | CALL local_stop |
---|
60 | ENDIF |
---|
61 | |
---|
62 | ! |
---|
63 | !-- Read vertical number of gridpoints and number of different areas used |
---|
64 | !-- for computing statistics. Allocate arrays depending on these values, |
---|
65 | !-- which are needed for the following read instructions. |
---|
66 | READ ( 13 ) variable_chr |
---|
67 | IF ( TRIM( variable_chr ) /= 'nz' ) THEN |
---|
68 | PRINT*, '+++ read_var_list: nz not found in data from prior run on PE ',& |
---|
69 | myid |
---|
70 | CALL local_stop |
---|
71 | ENDIF |
---|
72 | READ ( 13 ) nz |
---|
73 | READ ( 13 ) variable_chr |
---|
74 | IF ( TRIM( variable_chr ) /= 'statistic_regions' ) THEN |
---|
75 | PRINT*, '+++ read_var_list: statistic_regions not found in data from ', & |
---|
76 | 'prior run on PE ', myid |
---|
77 | CALL local_stop |
---|
78 | ENDIF |
---|
79 | READ ( 13 ) statistic_regions |
---|
80 | ALLOCATE( ug(0:nz+1), u_init(0:nz+1), vg(0:nz+1), v_init(0:nz+1), & |
---|
81 | pt_init(0:nz+1), q_init(0:nz+1), & |
---|
82 | hom(0:nz+1,2,var_hom,0:statistic_regions) ) |
---|
83 | |
---|
84 | ! |
---|
85 | !-- Now read all control parameters: |
---|
86 | !-- Caution: When the following read instructions have been changed, the |
---|
87 | !-- ------- version number stored in the variable binary_version has to be |
---|
88 | !-- increased. The same changes must also be done in write_var_list. |
---|
89 | READ ( 13 ) variable_chr |
---|
90 | DO WHILE ( TRIM( variable_chr ) /= '*** end ***' ) |
---|
91 | |
---|
92 | SELECT CASE ( TRIM( variable_chr ) ) |
---|
93 | |
---|
94 | CASE ( 'adjust_mixing_length' ) |
---|
95 | READ ( 13 ) adjust_mixing_length |
---|
96 | CASE ( 'advected_distance_x' ) |
---|
97 | READ ( 13 ) advected_distance_x |
---|
98 | CASE ( 'advected_distance_y' ) |
---|
99 | READ ( 13 ) advected_distance_y |
---|
100 | CASE ( 'alpha_surface' ) |
---|
101 | READ ( 13 ) alpha_surface |
---|
102 | CASE ( 'average_count_pr' ) |
---|
103 | READ ( 13 ) average_count_pr |
---|
104 | CASE ( 'average_count_sp' ) |
---|
105 | READ ( 13 ) average_count_sp |
---|
106 | CASE ( 'average_count_3d' ) |
---|
107 | READ ( 13 ) average_count_3d |
---|
108 | CASE ( 'bc_e_b' ) |
---|
109 | READ ( 13 ) bc_e_b |
---|
110 | CASE ( 'bc_lr' ) |
---|
111 | READ ( 13 ) bc_lr |
---|
112 | CASE ( 'bc_ns' ) |
---|
113 | READ ( 13 ) bc_ns |
---|
114 | CASE ( 'bc_p_b' ) |
---|
115 | READ ( 13 ) bc_p_b |
---|
116 | CASE ( 'bc_p_t' ) |
---|
117 | READ ( 13 ) bc_p_t |
---|
118 | CASE ( 'bc_pt_b' ) |
---|
119 | READ ( 13 ) bc_pt_b |
---|
120 | CASE ( 'bc_pt_t' ) |
---|
121 | READ ( 13 ) bc_pt_t |
---|
122 | CASE ( 'bc_pt_t_val' ) |
---|
123 | READ ( 13 ) bc_pt_t_val |
---|
124 | CASE ( 'bc_q_b' ) |
---|
125 | READ ( 13 ) bc_q_b |
---|
126 | CASE ( 'bc_q_t' ) |
---|
127 | READ ( 13 ) bc_q_t |
---|
128 | CASE ( 'bc_q_t_val' ) |
---|
129 | READ ( 13 ) bc_q_t_val |
---|
130 | CASE ( 'bc_s_b' ) |
---|
131 | READ ( 13 ) bc_s_b |
---|
132 | CASE ( 'bc_s_t' ) |
---|
133 | READ ( 13 ) bc_s_t |
---|
134 | CASE ( 'bc_uv_b' ) |
---|
135 | READ ( 13 ) bc_uv_b |
---|
136 | CASE ( 'bc_uv_t' ) |
---|
137 | READ ( 13 ) bc_uv_t |
---|
138 | CASE ( 'building_height' ) |
---|
139 | READ ( 13 ) building_height |
---|
140 | CASE ( 'building_length_x' ) |
---|
141 | READ ( 13 ) building_length_x |
---|
142 | CASE ( 'building_length_y' ) |
---|
143 | READ ( 13 ) building_length_y |
---|
144 | CASE ( 'building_wall_left' ) |
---|
145 | READ ( 13 ) building_wall_left |
---|
146 | CASE ( 'building_wall_south' ) |
---|
147 | READ ( 13 ) building_wall_south |
---|
148 | CASE ( 'cloud_droplets' ) |
---|
149 | READ ( 13 ) cloud_droplets |
---|
150 | CASE ( 'cloud_physics' ) |
---|
151 | READ ( 13 ) cloud_physics |
---|
152 | CASE ( 'conserve_volume_flow' ) |
---|
153 | READ ( 13 ) conserve_volume_flow |
---|
154 | CASE ( 'current_timestep_number' ) |
---|
155 | READ ( 13 ) current_timestep_number |
---|
156 | CASE ( 'cut_spline_overshoot' ) |
---|
157 | READ ( 13 ) cut_spline_overshoot |
---|
158 | CASE ( 'damp_level_1d' ) |
---|
159 | READ ( 13 ) damp_level_1d |
---|
160 | CASE ( 'dissipation_1d' ) |
---|
161 | READ ( 13 ) dissipation_1d |
---|
162 | CASE ( 'dt_fixed' ) |
---|
163 | READ ( 13 ) dt_fixed |
---|
164 | CASE ( 'dt_pr_1d' ) |
---|
165 | READ ( 13 ) dt_pr_1d |
---|
166 | CASE ( 'dt_run_control_1d' ) |
---|
167 | READ ( 13 ) dt_run_control_1d |
---|
168 | CASE ( 'dt_3d' ) |
---|
169 | READ ( 13 ) dt_3d |
---|
170 | CASE ( 'dvrp_filecount' ) |
---|
171 | READ ( 13 ) dvrp_filecount |
---|
172 | CASE ( 'dx' ) |
---|
173 | READ ( 13 ) dx |
---|
174 | CASE ( 'dy' ) |
---|
175 | READ ( 13 ) dy |
---|
176 | CASE ( 'dz' ) |
---|
177 | READ ( 13 ) dz |
---|
178 | CASE ( 'dz_max' ) |
---|
179 | READ ( 13 ) dz_max |
---|
180 | CASE ( 'dz_stretch_factor' ) |
---|
181 | READ ( 13 ) dz_stretch_factor |
---|
182 | CASE ( 'dz_stretch_level' ) |
---|
183 | READ ( 13 ) dz_stretch_level |
---|
184 | CASE ( 'e_min' ) |
---|
185 | READ ( 13 ) e_min |
---|
186 | CASE ( 'end_time_1d' ) |
---|
187 | READ ( 13 ) end_time_1d |
---|
188 | CASE ( 'fft_method' ) |
---|
189 | READ ( 13 ) fft_method |
---|
190 | CASE ( 'first_call_advec_particles' ) |
---|
191 | READ ( 13 ) first_call_advec_particles |
---|
192 | CASE ( 'galilei_transformation' ) |
---|
193 | READ ( 13 ) galilei_transformation |
---|
194 | CASE ( 'grid_matching' ) |
---|
195 | READ ( 13 ) grid_matching |
---|
196 | CASE ( 'hom' ) |
---|
197 | READ ( 13 ) hom |
---|
198 | CASE ( 'inflow_disturbance_begin' ) |
---|
199 | READ ( 13 ) inflow_disturbance_begin |
---|
200 | CASE ( 'inflow_disturbance_end' ) |
---|
201 | READ ( 13 ) inflow_disturbance_end |
---|
202 | CASE ( 'km_constant' ) |
---|
203 | READ ( 13 ) km_constant |
---|
204 | CASE ( 'km_damp_max' ) |
---|
205 | READ ( 13 ) km_damp_max |
---|
206 | CASE ( 'last_dt_change' ) |
---|
207 | READ ( 13 ) last_dt_change |
---|
208 | CASE ( 'long_filter_factor' ) |
---|
209 | READ ( 13 ) long_filter_factor |
---|
210 | CASE ( 'mixing_length_1d' ) |
---|
211 | READ ( 13 ) mixing_length_1d |
---|
212 | CASE ( 'moisture' ) |
---|
213 | READ ( 13 ) moisture |
---|
214 | CASE ( 'momentum_advec' ) |
---|
215 | READ ( 13 ) momentum_advec |
---|
216 | CASE ( 'netcdf_precision' ) |
---|
217 | READ ( 13 ) netcdf_precision |
---|
218 | CASE ( 'npex' ) |
---|
219 | READ ( 13 ) npex |
---|
220 | CASE ( 'npey' ) |
---|
221 | READ ( 13 ) npey |
---|
222 | CASE ( 'nsor_ini' ) |
---|
223 | READ ( 13 ) nsor_ini |
---|
224 | CASE ( 'nx' ) |
---|
225 | READ ( 13 ) nx |
---|
226 | CASE ( 'ny' ) |
---|
227 | READ ( 13 ) ny |
---|
228 | CASE ( 'old_dt' ) |
---|
229 | READ ( 13 ) old_dt |
---|
230 | CASE ( 'omega' ) |
---|
231 | READ ( 13 ) omega |
---|
232 | CASE ( 'outflow_damping_width' ) |
---|
233 | READ ( 13 ) outflow_damping_width |
---|
234 | CASE ( 'overshoot_limit_e' ) |
---|
235 | READ ( 13 ) overshoot_limit_e |
---|
236 | CASE ( 'overshoot_limit_pt' ) |
---|
237 | READ ( 13 ) overshoot_limit_pt |
---|
238 | CASE ( 'overshoot_limit_u' ) |
---|
239 | READ ( 13 ) overshoot_limit_u |
---|
240 | CASE ( 'overshoot_limit_v' ) |
---|
241 | READ ( 13 ) overshoot_limit_v |
---|
242 | CASE ( 'overshoot_limit_w' ) |
---|
243 | READ ( 13 ) overshoot_limit_w |
---|
244 | CASE ( 'passive_scalar' ) |
---|
245 | READ ( 13 ) passive_scalar |
---|
246 | CASE ( 'phi' ) |
---|
247 | READ ( 13 ) phi |
---|
248 | CASE ( 'prandtl_layer' ) |
---|
249 | READ ( 13 ) prandtl_layer |
---|
250 | CASE ( 'precipitation' ) |
---|
251 | READ ( 13 ) precipitation |
---|
252 | CASE ( 'pt_init' ) |
---|
253 | READ ( 13 ) pt_init |
---|
254 | CASE ( 'pt_surface' ) |
---|
255 | READ ( 13 ) pt_surface |
---|
256 | CASE ( 'pt_surface_initial_change' ) |
---|
257 | READ ( 13 ) pt_surface_initial_change |
---|
258 | CASE ( 'pt_vertical_gradient' ) |
---|
259 | READ ( 13 ) pt_vertical_gradient |
---|
260 | CASE ( 'pt_vertical_gradient_level' ) |
---|
261 | READ ( 13 ) pt_vertical_gradient_level |
---|
262 | CASE ( 'pt_vertical_gradient_level_ind' ) |
---|
263 | READ ( 13 ) pt_vertical_gradient_level_ind |
---|
264 | CASE ( 'q_init' ) |
---|
265 | READ ( 13 ) q_init |
---|
266 | CASE ( 'q_surface' ) |
---|
267 | READ ( 13 ) q_surface |
---|
268 | CASE ( 'q_surface_initial_change' ) |
---|
269 | READ ( 13 ) q_surface_initial_change |
---|
270 | CASE ( 'q_vertical_gradient' ) |
---|
271 | READ ( 13 ) q_vertical_gradient |
---|
272 | CASE ( 'q_vertical_gradient_level' ) |
---|
273 | READ ( 13 ) q_vertical_gradient_level |
---|
274 | CASE ( 'q_vertical_gradient_level_ind' ) |
---|
275 | READ ( 13 ) q_vertical_gradient_level_ind |
---|
276 | CASE ( 'radiation' ) |
---|
277 | READ ( 13 ) radiation |
---|
278 | CASE ( 'random_generator' ) |
---|
279 | READ ( 13 ) random_generator |
---|
280 | CASE ( 'random_heatflux' ) |
---|
281 | READ ( 13 ) random_heatflux |
---|
282 | CASE ( 'rif_max' ) |
---|
283 | READ ( 13 ) rif_max |
---|
284 | CASE ( 'rif_min' ) |
---|
285 | READ ( 13 ) rif_min |
---|
286 | CASE ( 'roughness_length' ) |
---|
287 | READ ( 13 ) roughness_length |
---|
288 | CASE ( 'runnr' ) |
---|
289 | READ ( 13 ) runnr |
---|
290 | CASE ( 'scalar_advec' ) |
---|
291 | READ ( 13 ) scalar_advec |
---|
292 | CASE ( 'simulated_time' ) |
---|
293 | READ ( 13 ) simulated_time |
---|
294 | CASE ( 'surface_heatflux' ) |
---|
295 | READ ( 13 ) surface_heatflux |
---|
296 | CASE ( 'surface_pressure' ) |
---|
297 | READ ( 13 ) surface_pressure |
---|
298 | CASE ( 'surface_scalarflux' ) |
---|
299 | READ ( 13 ) surface_scalarflux |
---|
300 | CASE ( 'surface_waterflux' ) |
---|
301 | READ ( 13 ) surface_waterflux |
---|
302 | CASE ( 's_surface' ) |
---|
303 | READ ( 13 ) s_surface |
---|
304 | CASE ( 's_surface_initial_change' ) |
---|
305 | READ ( 13 ) s_surface_initial_change |
---|
306 | CASE ( 's_vertical_gradient' ) |
---|
307 | READ ( 13 ) s_vertical_gradient |
---|
308 | CASE ( 's_vertical_gradient_level' ) |
---|
309 | READ ( 13 ) s_vertical_gradient_level |
---|
310 | CASE ( 'time_disturb' ) |
---|
311 | READ ( 13 ) time_disturb |
---|
312 | CASE ( 'time_dopr' ) |
---|
313 | READ ( 13 ) time_dopr |
---|
314 | CASE ( 'time_dopr_av' ) |
---|
315 | READ ( 13 ) time_dopr_av |
---|
316 | CASE ( 'time_dopr_listing' ) |
---|
317 | READ ( 13 ) time_dopr_listing |
---|
318 | CASE ( 'time_dopts' ) |
---|
319 | READ ( 13 ) time_dopts |
---|
320 | CASE ( 'time_dosp' ) |
---|
321 | READ ( 13 ) time_dosp |
---|
322 | CASE ( 'time_dots' ) |
---|
323 | READ ( 13 ) time_dots |
---|
324 | CASE ( 'time_do2d_xy' ) |
---|
325 | READ ( 13 ) time_do2d_xy |
---|
326 | CASE ( 'time_do2d_xz' ) |
---|
327 | READ ( 13 ) time_do2d_xz |
---|
328 | CASE ( 'time_do2d_yz' ) |
---|
329 | READ ( 13 ) time_do2d_yz |
---|
330 | CASE ( 'time_do3d' ) |
---|
331 | READ ( 13 ) time_do3d |
---|
332 | CASE ( 'time_do_av' ) |
---|
333 | READ ( 13 ) time_do_av |
---|
334 | CASE ( 'time_do_sla' ) |
---|
335 | READ ( 13 ) time_do_sla |
---|
336 | CASE ( 'time_dvrp' ) |
---|
337 | READ ( 13 ) time_dvrp |
---|
338 | CASE ( 'time_restart' ) |
---|
339 | READ ( 13 ) time_restart |
---|
340 | CASE ( 'time_run_control' ) |
---|
341 | READ ( 13 ) time_run_control |
---|
342 | CASE ( 'timestep_scheme' ) |
---|
343 | READ ( 13 ) timestep_scheme |
---|
344 | CASE ( 'topography' ) |
---|
345 | READ ( 13 ) topography |
---|
346 | CASE ( 'top_heatflux' ) |
---|
347 | READ ( 13 ) top_heatflux |
---|
348 | CASE ( 'tsc' ) |
---|
349 | READ ( 13 ) tsc |
---|
350 | CASE ( 'u_init' ) |
---|
351 | READ ( 13 ) u_init |
---|
352 | CASE ( 'u_max' ) |
---|
353 | READ ( 13 ) u_max |
---|
354 | CASE ( 'u_max_ijk' ) |
---|
355 | READ ( 13 ) u_max_ijk |
---|
356 | CASE ( 'ug' ) |
---|
357 | READ ( 13 ) ug |
---|
358 | CASE ( 'ug_surface' ) |
---|
359 | READ ( 13 ) ug_surface |
---|
360 | CASE ( 'ug_vertical_gradient' ) |
---|
361 | READ ( 13 ) ug_vertical_gradient |
---|
362 | CASE ( 'ug_vertical_gradient_level' ) |
---|
363 | READ ( 13 ) ug_vertical_gradient_level |
---|
364 | CASE ( 'ug_vertical_gradient_level_ind' ) |
---|
365 | READ ( 13 ) ug_vertical_gradient_level_ind |
---|
366 | CASE ( 'ups_limit_e' ) |
---|
367 | READ ( 13 ) ups_limit_e |
---|
368 | CASE ( 'ups_limit_pt' ) |
---|
369 | READ ( 13 ) ups_limit_pt |
---|
370 | CASE ( 'ups_limit_u' ) |
---|
371 | READ ( 13 ) ups_limit_u |
---|
372 | CASE ( 'ups_limit_v' ) |
---|
373 | READ ( 13 ) ups_limit_v |
---|
374 | CASE ( 'ups_limit_w' ) |
---|
375 | READ ( 13 ) ups_limit_w |
---|
376 | CASE ( 'use_surface_fluxes' ) |
---|
377 | READ ( 13 ) use_surface_fluxes |
---|
378 | CASE ( 'use_top_fluxes' ) |
---|
379 | READ ( 13 ) use_top_fluxes |
---|
380 | CASE ( 'use_ug_for_galilei_tr' ) |
---|
381 | READ ( 13 ) use_ug_for_galilei_tr |
---|
382 | CASE ( 'use_upstream_for_tke' ) |
---|
383 | READ ( 13 ) use_upstream_for_tke |
---|
384 | CASE ( 'v_init' ) |
---|
385 | READ ( 13 ) v_init |
---|
386 | CASE ( 'v_max' ) |
---|
387 | READ ( 13 ) v_max |
---|
388 | CASE ( 'v_max_ijk' ) |
---|
389 | READ ( 13 ) v_max_ijk |
---|
390 | CASE ( 'vg' ) |
---|
391 | READ ( 13 ) vg |
---|
392 | CASE ( 'vg_surface' ) |
---|
393 | READ ( 13 ) vg_surface |
---|
394 | CASE ( 'vg_vertical_gradient' ) |
---|
395 | READ ( 13 ) vg_vertical_gradient |
---|
396 | CASE ( 'vg_vertical_gradient_level' ) |
---|
397 | READ ( 13 ) vg_vertical_gradient_level |
---|
398 | CASE ( 'vg_vertical_gradient_level_ind' ) |
---|
399 | READ ( 13 ) vg_vertical_gradient_level_ind |
---|
400 | CASE ( 'wall_adjustment' ) |
---|
401 | READ ( 13 ) wall_adjustment |
---|
402 | CASE ( 'w_max' ) |
---|
403 | READ ( 13 ) w_max |
---|
404 | CASE ( 'w_max_ijk' ) |
---|
405 | READ ( 13 ) w_max_ijk |
---|
406 | CASE ( 'time-series-quantities' ) |
---|
407 | READ ( 13 ) cross_ts_uymax, cross_ts_uymax_computed, & |
---|
408 | cross_ts_uymin, cross_ts_uymin_computed |
---|
409 | |
---|
410 | CASE DEFAULT |
---|
411 | PRINT*, '+++ read_var_list: unknown variable named "', & |
---|
412 | TRIM( variable_chr ), '" found in' |
---|
413 | PRINT*, ' data from prior run on PE ', myid |
---|
414 | CALL local_stop |
---|
415 | END SELECT |
---|
416 | ! |
---|
417 | !-- Read next string |
---|
418 | READ ( 13 ) variable_chr |
---|
419 | |
---|
420 | ENDDO |
---|
421 | |
---|
422 | |
---|
423 | END SUBROUTINE read_var_list |
---|