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