1 | SUBROUTINE read_var_list |
---|
2 | |
---|
3 | !------------------------------------------------------------------------------! |
---|
4 | ! Actual revisions: |
---|
5 | ! ----------------- |
---|
6 | ! +loop_optimization, pt_reference |
---|
7 | ! |
---|
8 | ! Former revisions: |
---|
9 | ! ----------------- |
---|
10 | ! $Id: read_var_list.f90 63 2007-03-13 03:52:49Z 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 ( 'loop_optimization' ) |
---|
211 | READ ( 13 ) loop_optimization |
---|
212 | CASE ( 'mixing_length_1d' ) |
---|
213 | READ ( 13 ) mixing_length_1d |
---|
214 | CASE ( 'moisture' ) |
---|
215 | READ ( 13 ) moisture |
---|
216 | CASE ( 'momentum_advec' ) |
---|
217 | READ ( 13 ) momentum_advec |
---|
218 | CASE ( 'netcdf_precision' ) |
---|
219 | READ ( 13 ) netcdf_precision |
---|
220 | CASE ( 'npex' ) |
---|
221 | READ ( 13 ) npex |
---|
222 | CASE ( 'npey' ) |
---|
223 | READ ( 13 ) npey |
---|
224 | CASE ( 'nsor_ini' ) |
---|
225 | READ ( 13 ) nsor_ini |
---|
226 | CASE ( 'nx' ) |
---|
227 | READ ( 13 ) nx |
---|
228 | CASE ( 'ny' ) |
---|
229 | READ ( 13 ) ny |
---|
230 | CASE ( 'old_dt' ) |
---|
231 | READ ( 13 ) old_dt |
---|
232 | CASE ( 'omega' ) |
---|
233 | READ ( 13 ) omega |
---|
234 | CASE ( 'outflow_damping_width' ) |
---|
235 | READ ( 13 ) outflow_damping_width |
---|
236 | CASE ( 'overshoot_limit_e' ) |
---|
237 | READ ( 13 ) overshoot_limit_e |
---|
238 | CASE ( 'overshoot_limit_pt' ) |
---|
239 | READ ( 13 ) overshoot_limit_pt |
---|
240 | CASE ( 'overshoot_limit_u' ) |
---|
241 | READ ( 13 ) overshoot_limit_u |
---|
242 | CASE ( 'overshoot_limit_v' ) |
---|
243 | READ ( 13 ) overshoot_limit_v |
---|
244 | CASE ( 'overshoot_limit_w' ) |
---|
245 | READ ( 13 ) overshoot_limit_w |
---|
246 | CASE ( 'passive_scalar' ) |
---|
247 | READ ( 13 ) passive_scalar |
---|
248 | CASE ( 'phi' ) |
---|
249 | READ ( 13 ) phi |
---|
250 | CASE ( 'prandtl_layer' ) |
---|
251 | READ ( 13 ) prandtl_layer |
---|
252 | CASE ( 'precipitation' ) |
---|
253 | READ ( 13 ) precipitation |
---|
254 | CASE ( 'pt_init' ) |
---|
255 | READ ( 13 ) pt_init |
---|
256 | CASE ( 'pt_reference' ) |
---|
257 | READ ( 13 ) pt_reference |
---|
258 | CASE ( 'pt_surface' ) |
---|
259 | READ ( 13 ) pt_surface |
---|
260 | CASE ( 'pt_surface_initial_change' ) |
---|
261 | READ ( 13 ) pt_surface_initial_change |
---|
262 | CASE ( 'pt_vertical_gradient' ) |
---|
263 | READ ( 13 ) pt_vertical_gradient |
---|
264 | CASE ( 'pt_vertical_gradient_level' ) |
---|
265 | READ ( 13 ) pt_vertical_gradient_level |
---|
266 | CASE ( 'pt_vertical_gradient_level_ind' ) |
---|
267 | READ ( 13 ) pt_vertical_gradient_level_ind |
---|
268 | CASE ( 'q_init' ) |
---|
269 | READ ( 13 ) q_init |
---|
270 | CASE ( 'q_surface' ) |
---|
271 | READ ( 13 ) q_surface |
---|
272 | CASE ( 'q_surface_initial_change' ) |
---|
273 | READ ( 13 ) q_surface_initial_change |
---|
274 | CASE ( 'q_vertical_gradient' ) |
---|
275 | READ ( 13 ) q_vertical_gradient |
---|
276 | CASE ( 'q_vertical_gradient_level' ) |
---|
277 | READ ( 13 ) q_vertical_gradient_level |
---|
278 | CASE ( 'q_vertical_gradient_level_ind' ) |
---|
279 | READ ( 13 ) q_vertical_gradient_level_ind |
---|
280 | CASE ( 'radiation' ) |
---|
281 | READ ( 13 ) radiation |
---|
282 | CASE ( 'random_generator' ) |
---|
283 | READ ( 13 ) random_generator |
---|
284 | CASE ( 'random_heatflux' ) |
---|
285 | READ ( 13 ) random_heatflux |
---|
286 | CASE ( 'rif_max' ) |
---|
287 | READ ( 13 ) rif_max |
---|
288 | CASE ( 'rif_min' ) |
---|
289 | READ ( 13 ) rif_min |
---|
290 | CASE ( 'roughness_length' ) |
---|
291 | READ ( 13 ) roughness_length |
---|
292 | CASE ( 'runnr' ) |
---|
293 | READ ( 13 ) runnr |
---|
294 | CASE ( 'scalar_advec' ) |
---|
295 | READ ( 13 ) scalar_advec |
---|
296 | CASE ( 'simulated_time' ) |
---|
297 | READ ( 13 ) simulated_time |
---|
298 | CASE ( 'surface_heatflux' ) |
---|
299 | READ ( 13 ) surface_heatflux |
---|
300 | CASE ( 'surface_pressure' ) |
---|
301 | READ ( 13 ) surface_pressure |
---|
302 | CASE ( 'surface_scalarflux' ) |
---|
303 | READ ( 13 ) surface_scalarflux |
---|
304 | CASE ( 'surface_waterflux' ) |
---|
305 | READ ( 13 ) surface_waterflux |
---|
306 | CASE ( 's_surface' ) |
---|
307 | READ ( 13 ) s_surface |
---|
308 | CASE ( 's_surface_initial_change' ) |
---|
309 | READ ( 13 ) s_surface_initial_change |
---|
310 | CASE ( 's_vertical_gradient' ) |
---|
311 | READ ( 13 ) s_vertical_gradient |
---|
312 | CASE ( 's_vertical_gradient_level' ) |
---|
313 | READ ( 13 ) s_vertical_gradient_level |
---|
314 | CASE ( 'time_disturb' ) |
---|
315 | READ ( 13 ) time_disturb |
---|
316 | CASE ( 'time_dopr' ) |
---|
317 | READ ( 13 ) time_dopr |
---|
318 | CASE ( 'time_dopr_av' ) |
---|
319 | READ ( 13 ) time_dopr_av |
---|
320 | CASE ( 'time_dopr_listing' ) |
---|
321 | READ ( 13 ) time_dopr_listing |
---|
322 | CASE ( 'time_dopts' ) |
---|
323 | READ ( 13 ) time_dopts |
---|
324 | CASE ( 'time_dosp' ) |
---|
325 | READ ( 13 ) time_dosp |
---|
326 | CASE ( 'time_dots' ) |
---|
327 | READ ( 13 ) time_dots |
---|
328 | CASE ( 'time_do2d_xy' ) |
---|
329 | READ ( 13 ) time_do2d_xy |
---|
330 | CASE ( 'time_do2d_xz' ) |
---|
331 | READ ( 13 ) time_do2d_xz |
---|
332 | CASE ( 'time_do2d_yz' ) |
---|
333 | READ ( 13 ) time_do2d_yz |
---|
334 | CASE ( 'time_do3d' ) |
---|
335 | READ ( 13 ) time_do3d |
---|
336 | CASE ( 'time_do_av' ) |
---|
337 | READ ( 13 ) time_do_av |
---|
338 | CASE ( 'time_do_sla' ) |
---|
339 | READ ( 13 ) time_do_sla |
---|
340 | CASE ( 'time_dvrp' ) |
---|
341 | READ ( 13 ) time_dvrp |
---|
342 | CASE ( 'time_restart' ) |
---|
343 | READ ( 13 ) time_restart |
---|
344 | CASE ( 'time_run_control' ) |
---|
345 | READ ( 13 ) time_run_control |
---|
346 | CASE ( 'timestep_scheme' ) |
---|
347 | READ ( 13 ) timestep_scheme |
---|
348 | CASE ( 'topography' ) |
---|
349 | READ ( 13 ) topography |
---|
350 | CASE ( 'top_heatflux' ) |
---|
351 | READ ( 13 ) top_heatflux |
---|
352 | CASE ( 'tsc' ) |
---|
353 | READ ( 13 ) tsc |
---|
354 | CASE ( 'u_init' ) |
---|
355 | READ ( 13 ) u_init |
---|
356 | CASE ( 'u_max' ) |
---|
357 | READ ( 13 ) u_max |
---|
358 | CASE ( 'u_max_ijk' ) |
---|
359 | READ ( 13 ) u_max_ijk |
---|
360 | CASE ( 'ug' ) |
---|
361 | READ ( 13 ) ug |
---|
362 | CASE ( 'ug_surface' ) |
---|
363 | READ ( 13 ) ug_surface |
---|
364 | CASE ( 'ug_vertical_gradient' ) |
---|
365 | READ ( 13 ) ug_vertical_gradient |
---|
366 | CASE ( 'ug_vertical_gradient_level' ) |
---|
367 | READ ( 13 ) ug_vertical_gradient_level |
---|
368 | CASE ( 'ug_vertical_gradient_level_ind' ) |
---|
369 | READ ( 13 ) ug_vertical_gradient_level_ind |
---|
370 | CASE ( 'ups_limit_e' ) |
---|
371 | READ ( 13 ) ups_limit_e |
---|
372 | CASE ( 'ups_limit_pt' ) |
---|
373 | READ ( 13 ) ups_limit_pt |
---|
374 | CASE ( 'ups_limit_u' ) |
---|
375 | READ ( 13 ) ups_limit_u |
---|
376 | CASE ( 'ups_limit_v' ) |
---|
377 | READ ( 13 ) ups_limit_v |
---|
378 | CASE ( 'ups_limit_w' ) |
---|
379 | READ ( 13 ) ups_limit_w |
---|
380 | CASE ( 'use_surface_fluxes' ) |
---|
381 | READ ( 13 ) use_surface_fluxes |
---|
382 | CASE ( 'use_top_fluxes' ) |
---|
383 | READ ( 13 ) use_top_fluxes |
---|
384 | CASE ( 'use_ug_for_galilei_tr' ) |
---|
385 | READ ( 13 ) use_ug_for_galilei_tr |
---|
386 | CASE ( 'use_upstream_for_tke' ) |
---|
387 | READ ( 13 ) use_upstream_for_tke |
---|
388 | CASE ( 'v_init' ) |
---|
389 | READ ( 13 ) v_init |
---|
390 | CASE ( 'v_max' ) |
---|
391 | READ ( 13 ) v_max |
---|
392 | CASE ( 'v_max_ijk' ) |
---|
393 | READ ( 13 ) v_max_ijk |
---|
394 | CASE ( 'vg' ) |
---|
395 | READ ( 13 ) vg |
---|
396 | CASE ( 'vg_surface' ) |
---|
397 | READ ( 13 ) vg_surface |
---|
398 | CASE ( 'vg_vertical_gradient' ) |
---|
399 | READ ( 13 ) vg_vertical_gradient |
---|
400 | CASE ( 'vg_vertical_gradient_level' ) |
---|
401 | READ ( 13 ) vg_vertical_gradient_level |
---|
402 | CASE ( 'vg_vertical_gradient_level_ind' ) |
---|
403 | READ ( 13 ) vg_vertical_gradient_level_ind |
---|
404 | CASE ( 'wall_adjustment' ) |
---|
405 | READ ( 13 ) wall_adjustment |
---|
406 | CASE ( 'w_max' ) |
---|
407 | READ ( 13 ) w_max |
---|
408 | CASE ( 'w_max_ijk' ) |
---|
409 | READ ( 13 ) w_max_ijk |
---|
410 | CASE ( 'time-series-quantities' ) |
---|
411 | READ ( 13 ) cross_ts_uymax, cross_ts_uymax_computed, & |
---|
412 | cross_ts_uymin, cross_ts_uymin_computed |
---|
413 | |
---|
414 | CASE DEFAULT |
---|
415 | PRINT*, '+++ read_var_list: unknown variable named "', & |
---|
416 | TRIM( variable_chr ), '" found in' |
---|
417 | PRINT*, ' data from prior run on PE ', myid |
---|
418 | CALL local_stop |
---|
419 | END SELECT |
---|
420 | ! |
---|
421 | !-- Read next string |
---|
422 | READ ( 13 ) variable_chr |
---|
423 | |
---|
424 | ENDDO |
---|
425 | |
---|
426 | |
---|
427 | END SUBROUTINE read_var_list |
---|