1 | SUBROUTINE read_var_list |
---|
2 | |
---|
3 | !--------------------------------------------------------------------------------! |
---|
4 | ! This file is part of PALM. |
---|
5 | ! |
---|
6 | ! PALM is free software: you can redistribute it and/or modify it under the terms |
---|
7 | ! of the GNU General Public License as published by the Free Software Foundation, |
---|
8 | ! either version 3 of the License, or (at your option) any later version. |
---|
9 | ! |
---|
10 | ! PALM is distributed in the hope that it will be useful, but WITHOUT ANY |
---|
11 | ! WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR |
---|
12 | ! A PARTICULAR PURPOSE. See the GNU General Public License for more details. |
---|
13 | ! |
---|
14 | ! You should have received a copy of the GNU General Public License along with |
---|
15 | ! PALM. If not, see <http://www.gnu.org/licenses/>. |
---|
16 | ! |
---|
17 | ! Copyright 1997-2012 Leibniz University Hannover |
---|
18 | !--------------------------------------------------------------------------------! |
---|
19 | ! |
---|
20 | ! Current revisions: |
---|
21 | ! ------------------ |
---|
22 | ! unused variables removed |
---|
23 | ! |
---|
24 | ! Former revisions: |
---|
25 | ! ----------------- |
---|
26 | ! $Id: read_var_list.f90 1115 2013-03-26 18:16:16Z hoffmann $ |
---|
27 | ! |
---|
28 | ! 1092 2013-02-02 11:24:22Z raasch |
---|
29 | ! unused variables removed |
---|
30 | ! |
---|
31 | ! 1065 2012-11-22 17:42:36Z hoffmann |
---|
32 | ! +nc, c_sedimentation, limiter_sedimentation, turbulence |
---|
33 | ! -mu_constant, mu_constant_value |
---|
34 | ! |
---|
35 | ! 1053 2012-11-13 17:11:03Z hoffmann |
---|
36 | ! necessary expansions according to the two new prognostic equations (nr, qr) |
---|
37 | ! of the two-moment cloud physics scheme: |
---|
38 | ! +bc_*_b, +bc_*_t, +bc_*_t_val, *_init, *_surface, *_surface_initial_change, |
---|
39 | ! +*_vertical_gradient, +*_vertical_gradient_level, *_vertical_gradient_level_ind, |
---|
40 | ! +surface_waterflux_* |
---|
41 | ! |
---|
42 | ! in addition, steering parameters parameters of the two-moment cloud physics |
---|
43 | ! scheme: |
---|
44 | ! +cloud_scheme, +drizzle, +mu_constant, +mu_constant_value, +ventilation_effect |
---|
45 | ! |
---|
46 | ! 1036 2012-10-22 13:43:42Z raasch |
---|
47 | ! code put under GPL (PALM 3.9) |
---|
48 | ! |
---|
49 | ! 1015 2012-09-27 09:23:24Z raasch |
---|
50 | ! -adjust_mixing_length |
---|
51 | ! |
---|
52 | ! 1003 2012-09-14 14:35:53Z raasch |
---|
53 | ! -grid_matching |
---|
54 | ! |
---|
55 | ! 1001 2012-09-13 14:08:46Z raasch |
---|
56 | ! -cut_spline_overshoot, dt_fixed, last_dt_change, long_filter_factor, |
---|
57 | ! overshoot_limit_*, ups_limit_* |
---|
58 | ! |
---|
59 | ! 978 2012-08-09 08:28:32Z fricke |
---|
60 | ! -km_damp_max, outflow_damping_width |
---|
61 | ! +pt_damping_factor, pt_damping_width |
---|
62 | ! +z0h_factor |
---|
63 | ! |
---|
64 | ! 940 2012-07-09 14:31:00Z raasch |
---|
65 | ! +neutral |
---|
66 | ! |
---|
67 | ! 927 2012-06-06 19:15:04Z raasch |
---|
68 | ! +masking_method |
---|
69 | ! |
---|
70 | ! 849 2012-03-15 10:35:09Z raasch |
---|
71 | ! first_call_advec_particles renamed first_call_lpm |
---|
72 | ! |
---|
73 | ! 824 2012-02-17 09:09:57Z raasch |
---|
74 | ! +curvature_solution_effects |
---|
75 | ! |
---|
76 | ! 626 2010-12-10 13:04:12Z suehring |
---|
77 | ! idum replaced by cdum in read_parts_of_var_list |
---|
78 | ! |
---|
79 | ! 622 2010-12-10 08:08:13Z raasch |
---|
80 | ! +collective_wait |
---|
81 | ! |
---|
82 | ! 600 2010-11-24 16:10:51Z raasch |
---|
83 | ! +call_psolver_at_all_substeps, cfl_factor, cycle_mg, mg_cycles, |
---|
84 | ! mg_switch_to_pe0_level, ngsrb, nsor, omega_sor, psolver, |
---|
85 | ! rayleigh_damping_factor, rayleigh_damping_height, residual_limit |
---|
86 | ! in routine skip_var_list (end of this file), variable ldum is replaced |
---|
87 | ! by cdum(LEN=1), because otherwise read errors (too few data on file) |
---|
88 | ! appear due to one of the additional parameters (cycle_mg) which are now |
---|
89 | ! stored on the restart file |
---|
90 | ! |
---|
91 | ! 591 2010-10-28 06:35:52Z helmke |
---|
92 | ! remove print command |
---|
93 | ! |
---|
94 | ! 587 2010-10-27 08:36:51Z helmke |
---|
95 | ! +time_domask |
---|
96 | ! |
---|
97 | ! 580 2010-10-05 13:59:11Z heinze |
---|
98 | ! Renaming of ws_vertical_gradient to subs_vertical_gradient, |
---|
99 | ! ws_vertical_gradient_level to subs_vertical_gradient_level and |
---|
100 | ! ws_vertical_gradient_level_ind to subs_vertical_gradient_level_i |
---|
101 | ! |
---|
102 | ! 411 2009-12-11 14:15:58Z heinze |
---|
103 | ! +large_scale_subsidence, ws_vertical_gradient, ws_vertical_gradient_level, |
---|
104 | ! ws_vertical_gradient_level_ind |
---|
105 | ! |
---|
106 | ! 345 2009-07-01 14:37:56Z heinze |
---|
107 | ! +output_for_t0 |
---|
108 | ! dt_fixed is read into a dummy variable. |
---|
109 | ! Output of messages replaced by message handling routine. |
---|
110 | ! +canyon_height, canyon_width_x, canyon_width_y, canyon_wall_left, |
---|
111 | ! canyon_wall_south, conserve_volume_flow_mode, coupling_start_time, |
---|
112 | ! dp_external, dp_level_b, dp_smooth, dpdxy, run_coupled, |
---|
113 | ! time_since_reference_point, topography_grid_convention, u_bulk, v_bulk |
---|
114 | ! |
---|
115 | ! 216 2008-11-25 07:12:43Z raasch |
---|
116 | ! limitations for nx_on_file, ny_on_file removed (read_parts_of_var_list) |
---|
117 | ! |
---|
118 | ! 173 2008-05-23 20:39:38Z raasch |
---|
119 | ! +cthf, leaf_surface_concentration, scalar_exchange_coefficient |
---|
120 | ! +numprocs_previous_run, hor_index_bounds_previous_run, inflow_damping_factor, |
---|
121 | ! inflow_damping_height, inflow_damping_width, mean_inflow_profiles, |
---|
122 | ! recycling_width, turbulent_inflow, |
---|
123 | ! -cross_ts_*, npex, npey, |
---|
124 | ! hom_sum, volume_flow_area, volume_flow_initial moved from |
---|
125 | ! read_3d_binary to here, |
---|
126 | ! routines read_parts_of_var_list and skip_var_list added at the end |
---|
127 | ! |
---|
128 | ! 138 2007-11-28 10:03:58Z letzel |
---|
129 | ! +canopy_mode, drag_coefficient, lad, lad_surface, lad_vertical_gradient, |
---|
130 | ! lad_vertical_gradient_level, lad_vertical_gradient_level_ind, pch_index, |
---|
131 | ! plant_canopy, time_sort_particles |
---|
132 | ! |
---|
133 | ! 102 2007-07-27 09:09:17Z raasch |
---|
134 | ! +time_coupling, top_momentumflux_u|v |
---|
135 | ! |
---|
136 | ! 95 2007-06-02 16:48:38Z raasch |
---|
137 | ! +bc_sa_t, ocean, sa_init, sa_surface, sa_vertical_gradient, |
---|
138 | ! sa_vertical_gradient_level, bottom/top_salinity_flux |
---|
139 | ! |
---|
140 | ! 87 2007-05-22 15:46:47Z raasch |
---|
141 | ! +max_pr_user (version 3.1), var_hom renamed pr_palm |
---|
142 | ! |
---|
143 | ! 75 2007-03-22 09:54:05Z raasch |
---|
144 | ! +loop_optimization, pt_reference, moisture renamed humidity |
---|
145 | ! |
---|
146 | ! 20 2007-02-26 00:12:32Z raasch |
---|
147 | ! +top_heatflux, use_top_fluxes |
---|
148 | ! |
---|
149 | ! RCS Log replace by Id keyword, revision history cleaned up |
---|
150 | ! |
---|
151 | ! Revision 1.34 2006/08/22 14:14:27 raasch |
---|
152 | ! +dz_max |
---|
153 | ! |
---|
154 | ! Revision 1.1 1998/03/18 20:18:48 raasch |
---|
155 | ! Initial revision |
---|
156 | ! |
---|
157 | ! |
---|
158 | ! Description: |
---|
159 | ! ------------ |
---|
160 | ! Reading values of global control variables from restart-file (binary format) |
---|
161 | !------------------------------------------------------------------------------! |
---|
162 | |
---|
163 | USE arrays_3d |
---|
164 | USE averaging |
---|
165 | USE cloud_parameters |
---|
166 | USE control_parameters |
---|
167 | USE grid_variables |
---|
168 | USE indices |
---|
169 | USE model_1d |
---|
170 | USE netcdf_control |
---|
171 | USE particle_attributes |
---|
172 | USE pegrid |
---|
173 | USE profil_parameter |
---|
174 | USE statistics |
---|
175 | |
---|
176 | IMPLICIT NONE |
---|
177 | |
---|
178 | CHARACTER (LEN=10) :: binary_version, version_on_file |
---|
179 | CHARACTER (LEN=30) :: variable_chr |
---|
180 | |
---|
181 | |
---|
182 | CALL check_open( 13 ) |
---|
183 | |
---|
184 | ! |
---|
185 | !-- Make version number check first |
---|
186 | READ ( 13 ) version_on_file |
---|
187 | binary_version = '3.9' |
---|
188 | IF ( TRIM( version_on_file ) /= TRIM( binary_version ) ) THEN |
---|
189 | WRITE( message_string, * ) 'version mismatch concerning control ', & |
---|
190 | 'variables', & |
---|
191 | '&version on file = "', & |
---|
192 | TRIM( version_on_file ), '"', & |
---|
193 | '&version on program = "', & |
---|
194 | TRIM( binary_version ), '"' |
---|
195 | CALL message( 'read_var_list', 'PA0296', 1, 2, 0, 6, 0 ) |
---|
196 | ENDIF |
---|
197 | |
---|
198 | ! |
---|
199 | !-- Read number of PEs and horizontal index bounds of all PEs used in previous |
---|
200 | !-- run |
---|
201 | READ ( 13 ) variable_chr |
---|
202 | IF ( TRIM( variable_chr ) /= 'numprocs' ) THEN |
---|
203 | WRITE( message_string, * ) 'numprocs not found in data from prior ', & |
---|
204 | 'run on PE ', myid |
---|
205 | CALL message( 'read_var_list', 'PA0297', 1, 2, 0, 6, 0 ) |
---|
206 | ENDIF |
---|
207 | READ ( 13 ) numprocs_previous_run |
---|
208 | |
---|
209 | IF ( .NOT. ALLOCATED( hor_index_bounds_previous_run ) ) THEN |
---|
210 | ALLOCATE( hor_index_bounds_previous_run(4,0:numprocs_previous_run-1) ) |
---|
211 | ENDIF |
---|
212 | |
---|
213 | READ ( 13 ) variable_chr |
---|
214 | IF ( TRIM( variable_chr ) /= 'hor_index_bounds' ) THEN |
---|
215 | WRITE( message_string, * ) 'hor_index_bounds not found in data from ', & |
---|
216 | 'prior run on PE ', myid |
---|
217 | CALL message( 'read_var_list', 'PA0298', 1, 2, 0, 6, 0 ) |
---|
218 | ENDIF |
---|
219 | READ ( 13 ) hor_index_bounds_previous_run |
---|
220 | |
---|
221 | ! |
---|
222 | !-- Read vertical number of gridpoints and number of different areas used |
---|
223 | !-- for computing statistics. Allocate arrays depending on these values, |
---|
224 | !-- which are needed for the following read instructions. |
---|
225 | READ ( 13 ) variable_chr |
---|
226 | IF ( TRIM( variable_chr ) /= 'nz' ) THEN |
---|
227 | WRITE( message_string, * ) 'nz not found in data from prior run on PE ',& |
---|
228 | myid |
---|
229 | CALL message( 'read_var_list', 'PA0299', 1, 2, 0, 6, 0 ) |
---|
230 | ENDIF |
---|
231 | READ ( 13 ) nz |
---|
232 | |
---|
233 | READ ( 13 ) variable_chr |
---|
234 | IF ( TRIM( variable_chr ) /= 'max_pr_user' ) THEN |
---|
235 | WRITE( message_string, * ) 'max_pr_user not found in data from ', & |
---|
236 | 'prior run on PE ', myid |
---|
237 | CALL message( 'read_var_list', 'PA0300', 1, 2, 0, 6, 0 ) |
---|
238 | ENDIF |
---|
239 | READ ( 13 ) max_pr_user ! This value is checked against the number of |
---|
240 | ! user profiles given for the current run |
---|
241 | ! in routine user_parin (it has to match) |
---|
242 | |
---|
243 | READ ( 13 ) variable_chr |
---|
244 | IF ( TRIM( variable_chr ) /= 'statistic_regions' ) THEN |
---|
245 | WRITE( message_string, * ) 'statistic_regions not found in data from ', & |
---|
246 | 'prior run on PE ', myid |
---|
247 | CALL message( 'read_var_list', 'PA0301', 1, 2, 0, 6, 0 ) |
---|
248 | ENDIF |
---|
249 | READ ( 13 ) statistic_regions |
---|
250 | IF ( .NOT. ALLOCATED( ug ) ) THEN |
---|
251 | ALLOCATE( lad(0:nz+1), ug(0:nz+1), u_init(0:nz+1), vg(0:nz+1), & |
---|
252 | v_init(0:nz+1), pt_init(0:nz+1), q_init(0:nz+1), & |
---|
253 | sa_init(0:nz+1), & |
---|
254 | hom(0:nz+1,2,pr_palm+max_pr_user,0:statistic_regions), & |
---|
255 | hom_sum(0:nz+1,pr_palm+max_pr_user,0:statistic_regions) ) |
---|
256 | ENDIF |
---|
257 | |
---|
258 | ! |
---|
259 | !-- Now read all control parameters: |
---|
260 | !-- Caution: When the following read instructions have been changed, the |
---|
261 | !-- ------- version number stored in the variable binary_version has to be |
---|
262 | !-- increased. The same changes must also be done in write_var_list. |
---|
263 | READ ( 13 ) variable_chr |
---|
264 | DO WHILE ( TRIM( variable_chr ) /= '*** end ***' ) |
---|
265 | |
---|
266 | SELECT CASE ( TRIM( variable_chr ) ) |
---|
267 | |
---|
268 | CASE ( 'advected_distance_x' ) |
---|
269 | READ ( 13 ) advected_distance_x |
---|
270 | CASE ( 'advected_distance_y' ) |
---|
271 | READ ( 13 ) advected_distance_y |
---|
272 | CASE ( 'alpha_surface' ) |
---|
273 | READ ( 13 ) alpha_surface |
---|
274 | CASE ( 'average_count_pr' ) |
---|
275 | READ ( 13 ) average_count_pr |
---|
276 | CASE ( 'average_count_sp' ) |
---|
277 | READ ( 13 ) average_count_sp |
---|
278 | CASE ( 'average_count_3d' ) |
---|
279 | READ ( 13 ) average_count_3d |
---|
280 | CASE ( 'bc_e_b' ) |
---|
281 | READ ( 13 ) bc_e_b |
---|
282 | CASE ( 'bc_lr' ) |
---|
283 | READ ( 13 ) bc_lr |
---|
284 | CASE ( 'bc_ns' ) |
---|
285 | READ ( 13 ) bc_ns |
---|
286 | CASE ( 'bc_p_b' ) |
---|
287 | READ ( 13 ) bc_p_b |
---|
288 | CASE ( 'bc_p_t' ) |
---|
289 | READ ( 13 ) bc_p_t |
---|
290 | CASE ( 'bc_pt_b' ) |
---|
291 | READ ( 13 ) bc_pt_b |
---|
292 | CASE ( 'bc_pt_t' ) |
---|
293 | READ ( 13 ) bc_pt_t |
---|
294 | CASE ( 'bc_pt_t_val' ) |
---|
295 | READ ( 13 ) bc_pt_t_val |
---|
296 | CASE ( 'bc_q_b' ) |
---|
297 | READ ( 13 ) bc_q_b |
---|
298 | CASE ( 'bc_q_t' ) |
---|
299 | READ ( 13 ) bc_q_t |
---|
300 | CASE ( 'bc_q_t_val' ) |
---|
301 | READ ( 13 ) bc_q_t_val |
---|
302 | CASE ( 'bc_s_b' ) |
---|
303 | READ ( 13 ) bc_s_b |
---|
304 | CASE ( 'bc_s_t' ) |
---|
305 | READ ( 13 ) bc_s_t |
---|
306 | CASE ( 'bc_sa_t' ) |
---|
307 | READ ( 13 ) bc_sa_t |
---|
308 | CASE ( 'bc_uv_b' ) |
---|
309 | READ ( 13 ) bc_uv_b |
---|
310 | CASE ( 'bc_uv_t' ) |
---|
311 | READ ( 13 ) bc_uv_t |
---|
312 | CASE ( 'bottom_salinityflux' ) |
---|
313 | READ ( 13 ) bottom_salinityflux |
---|
314 | CASE ( 'building_height' ) |
---|
315 | READ ( 13 ) building_height |
---|
316 | CASE ( 'building_length_x' ) |
---|
317 | READ ( 13 ) building_length_x |
---|
318 | CASE ( 'building_length_y' ) |
---|
319 | READ ( 13 ) building_length_y |
---|
320 | CASE ( 'building_wall_left' ) |
---|
321 | READ ( 13 ) building_wall_left |
---|
322 | CASE ( 'building_wall_south' ) |
---|
323 | READ ( 13 ) building_wall_south |
---|
324 | CASE ( 'call_psolver_at_all_substeps' ) |
---|
325 | READ ( 13 ) call_psolver_at_all_substeps |
---|
326 | CASE ( 'canopy_mode' ) |
---|
327 | READ ( 13 ) canopy_mode |
---|
328 | CASE ( 'canyon_height' ) |
---|
329 | READ ( 13 ) canyon_height |
---|
330 | CASE ( 'canyon_width_x' ) |
---|
331 | READ ( 13 ) canyon_width_x |
---|
332 | CASE ( 'canyon_width_y' ) |
---|
333 | READ ( 13 ) canyon_width_y |
---|
334 | CASE ( 'canyon_wall_left' ) |
---|
335 | READ ( 13 ) canyon_wall_left |
---|
336 | CASE ( 'canyon_wall_south' ) |
---|
337 | READ ( 13 ) canyon_wall_south |
---|
338 | CASE ( 'c_sedimentation' ) |
---|
339 | READ ( 13 ) c_sedimentation |
---|
340 | CASE ( 'cfl_factor' ) |
---|
341 | READ ( 13 ) cfl_factor |
---|
342 | CASE ( 'cloud_droplets' ) |
---|
343 | READ ( 13 ) cloud_droplets |
---|
344 | CASE ( 'cloud_physics' ) |
---|
345 | READ ( 13 ) cloud_physics |
---|
346 | CASE ( 'cloud_scheme' ) |
---|
347 | READ ( 13 ) cloud_scheme |
---|
348 | CASE ( 'collective_wait' ) |
---|
349 | READ ( 13 ) collective_wait |
---|
350 | CASE ( 'conserve_volume_flow' ) |
---|
351 | READ ( 13 ) conserve_volume_flow |
---|
352 | CASE ( 'conserve_volume_flow_mode' ) |
---|
353 | READ ( 13 ) conserve_volume_flow_mode |
---|
354 | CASE ( 'coupling_start_time' ) |
---|
355 | READ ( 13 ) coupling_start_time |
---|
356 | CASE ( 'cthf' ) |
---|
357 | READ ( 13 ) cthf |
---|
358 | CASE ( 'current_timestep_number' ) |
---|
359 | READ ( 13 ) current_timestep_number |
---|
360 | CASE ( 'curvature_solution_effects' ) |
---|
361 | READ ( 13 ) curvature_solution_effects |
---|
362 | CASE ( 'cycle_mg' ) |
---|
363 | READ ( 13 ) cycle_mg |
---|
364 | CASE ( 'damp_level_1d' ) |
---|
365 | READ ( 13 ) damp_level_1d |
---|
366 | CASE ( 'dissipation_1d' ) |
---|
367 | READ ( 13 ) dissipation_1d |
---|
368 | CASE ( 'dp_external' ) |
---|
369 | READ ( 13 ) dp_external |
---|
370 | CASE ( 'dp_level_b' ) |
---|
371 | READ ( 13 ) dp_level_b |
---|
372 | CASE ( 'dp_smooth' ) |
---|
373 | READ ( 13 ) dp_smooth |
---|
374 | CASE ( 'dpdxy' ) |
---|
375 | READ ( 13 ) dpdxy |
---|
376 | CASE ( 'drag_coefficient' ) |
---|
377 | READ ( 13 ) drag_coefficient |
---|
378 | CASE ( 'drizzle' ) |
---|
379 | READ ( 13 ) drizzle |
---|
380 | CASE ( 'dt_pr_1d' ) |
---|
381 | READ ( 13 ) dt_pr_1d |
---|
382 | CASE ( 'dt_run_control_1d' ) |
---|
383 | READ ( 13 ) dt_run_control_1d |
---|
384 | CASE ( 'dt_3d' ) |
---|
385 | READ ( 13 ) dt_3d |
---|
386 | CASE ( 'dvrp_filecount' ) |
---|
387 | READ ( 13 ) dvrp_filecount |
---|
388 | CASE ( 'dx' ) |
---|
389 | READ ( 13 ) dx |
---|
390 | CASE ( 'dy' ) |
---|
391 | READ ( 13 ) dy |
---|
392 | CASE ( 'dz' ) |
---|
393 | READ ( 13 ) dz |
---|
394 | CASE ( 'dz_max' ) |
---|
395 | READ ( 13 ) dz_max |
---|
396 | CASE ( 'dz_stretch_factor' ) |
---|
397 | READ ( 13 ) dz_stretch_factor |
---|
398 | CASE ( 'dz_stretch_level' ) |
---|
399 | READ ( 13 ) dz_stretch_level |
---|
400 | CASE ( 'e_min' ) |
---|
401 | READ ( 13 ) e_min |
---|
402 | CASE ( 'end_time_1d' ) |
---|
403 | READ ( 13 ) end_time_1d |
---|
404 | CASE ( 'fft_method' ) |
---|
405 | READ ( 13 ) fft_method |
---|
406 | CASE ( 'first_call_lpm' ) |
---|
407 | READ ( 13 ) first_call_lpm |
---|
408 | CASE ( 'galilei_transformation' ) |
---|
409 | READ ( 13 ) galilei_transformation |
---|
410 | CASE ( 'hom' ) |
---|
411 | READ ( 13 ) hom |
---|
412 | CASE ( 'hom_sum' ) |
---|
413 | READ ( 13 ) hom_sum |
---|
414 | CASE ( 'humidity' ) |
---|
415 | READ ( 13 ) humidity |
---|
416 | CASE ( 'inflow_damping_factor' ) |
---|
417 | IF ( .NOT. ALLOCATED( inflow_damping_factor ) ) THEN |
---|
418 | ALLOCATE( inflow_damping_factor(0:nz+1) ) |
---|
419 | ENDIF |
---|
420 | READ ( 13 ) inflow_damping_factor |
---|
421 | CASE ( 'inflow_damping_height' ) |
---|
422 | READ ( 13 ) inflow_damping_height |
---|
423 | CASE ( 'inflow_damping_width' ) |
---|
424 | READ ( 13 ) inflow_damping_width |
---|
425 | CASE ( 'inflow_disturbance_begin' ) |
---|
426 | READ ( 13 ) inflow_disturbance_begin |
---|
427 | CASE ( 'inflow_disturbance_end' ) |
---|
428 | READ ( 13 ) inflow_disturbance_end |
---|
429 | CASE ( 'km_constant' ) |
---|
430 | READ ( 13 ) km_constant |
---|
431 | CASE ( 'lad' ) |
---|
432 | READ ( 13 ) lad |
---|
433 | CASE ( 'lad_surface' ) |
---|
434 | READ ( 13 ) lad_surface |
---|
435 | CASE ( 'lad_vertical_gradient' ) |
---|
436 | READ ( 13 ) lad_vertical_gradient |
---|
437 | CASE ( 'lad_vertical_gradient_level' ) |
---|
438 | READ ( 13 ) lad_vertical_gradient_level |
---|
439 | CASE ( 'lad_vertical_gradient_level_in' ) |
---|
440 | READ ( 13 ) lad_vertical_gradient_level_ind |
---|
441 | CASE ( 'large_scale_subsidence' ) |
---|
442 | READ ( 13 ) large_scale_subsidence |
---|
443 | CASE ( 'leaf_surface_concentration' ) |
---|
444 | READ ( 13 ) leaf_surface_concentration |
---|
445 | CASE ( 'limiter_sedimentation' ) |
---|
446 | READ ( 13 ) limiter_sedimentation |
---|
447 | CASE ( 'loop_optimization' ) |
---|
448 | READ ( 13 ) loop_optimization |
---|
449 | CASE ( 'masking_method' ) |
---|
450 | READ ( 13 ) masking_method |
---|
451 | CASE ( 'mean_inflow_profiles' ) |
---|
452 | IF ( .NOT. ALLOCATED( mean_inflow_profiles ) ) THEN |
---|
453 | ALLOCATE( mean_inflow_profiles(0:nz+1,5) ) |
---|
454 | ENDIF |
---|
455 | READ ( 13 ) mean_inflow_profiles |
---|
456 | CASE ( 'mg_cycles' ) |
---|
457 | READ ( 13 ) mg_cycles |
---|
458 | CASE ( 'mg_switch_to_pe0_level' ) |
---|
459 | READ ( 13 ) mg_switch_to_pe0_level |
---|
460 | CASE ( 'mixing_length_1d' ) |
---|
461 | READ ( 13 ) mixing_length_1d |
---|
462 | CASE ( 'momentum_advec' ) |
---|
463 | READ ( 13 ) momentum_advec |
---|
464 | CASE ( 'nc_const' ) |
---|
465 | READ ( 13 ) nc_const |
---|
466 | CASE ( 'netcdf_precision' ) |
---|
467 | READ ( 13 ) netcdf_precision |
---|
468 | CASE ( 'neutral' ) |
---|
469 | READ ( 13 ) neutral |
---|
470 | CASE ( 'ngsrb' ) |
---|
471 | READ ( 13 ) ngsrb |
---|
472 | CASE ( 'nsor' ) |
---|
473 | READ ( 13 ) nsor |
---|
474 | CASE ( 'nsor_ini' ) |
---|
475 | READ ( 13 ) nsor_ini |
---|
476 | CASE ( 'nx' ) |
---|
477 | READ ( 13 ) nx |
---|
478 | nx_on_file = nx |
---|
479 | CASE ( 'ny' ) |
---|
480 | READ ( 13 ) ny |
---|
481 | ny_on_file = ny |
---|
482 | CASE ( 'ocean' ) |
---|
483 | READ ( 13 ) ocean |
---|
484 | CASE ( 'old_dt' ) |
---|
485 | READ ( 13 ) old_dt |
---|
486 | CASE ( 'omega' ) |
---|
487 | READ ( 13 ) omega |
---|
488 | CASE ( 'omega_sor' ) |
---|
489 | READ ( 13 ) omega_sor |
---|
490 | CASE ( 'output_for_t0' ) |
---|
491 | READ (13) output_for_t0 |
---|
492 | CASE ( 'passive_scalar' ) |
---|
493 | READ ( 13 ) passive_scalar |
---|
494 | CASE ( 'pch_index' ) |
---|
495 | READ ( 13 ) pch_index |
---|
496 | CASE ( 'phi' ) |
---|
497 | READ ( 13 ) phi |
---|
498 | CASE ( 'plant_canopy' ) |
---|
499 | READ ( 13 ) plant_canopy |
---|
500 | CASE ( 'prandtl_layer' ) |
---|
501 | READ ( 13 ) prandtl_layer |
---|
502 | CASE ( 'prandtl_number' ) |
---|
503 | READ ( 13 ) prandtl_number |
---|
504 | CASE ( 'precipitation' ) |
---|
505 | READ ( 13 ) precipitation |
---|
506 | CASE ( 'psolver' ) |
---|
507 | READ ( 13 ) psolver |
---|
508 | CASE ( 'pt_damping_factor' ) |
---|
509 | READ ( 13 ) pt_damping_factor |
---|
510 | CASE ( 'pt_damping_width' ) |
---|
511 | READ ( 13 ) pt_damping_width |
---|
512 | CASE ( 'pt_init' ) |
---|
513 | READ ( 13 ) pt_init |
---|
514 | CASE ( 'pt_reference' ) |
---|
515 | READ ( 13 ) pt_reference |
---|
516 | CASE ( 'pt_surface' ) |
---|
517 | READ ( 13 ) pt_surface |
---|
518 | CASE ( 'pt_surface_initial_change' ) |
---|
519 | READ ( 13 ) pt_surface_initial_change |
---|
520 | CASE ( 'pt_vertical_gradient' ) |
---|
521 | READ ( 13 ) pt_vertical_gradient |
---|
522 | CASE ( 'pt_vertical_gradient_level' ) |
---|
523 | READ ( 13 ) pt_vertical_gradient_level |
---|
524 | CASE ( 'pt_vertical_gradient_level_ind' ) |
---|
525 | READ ( 13 ) pt_vertical_gradient_level_ind |
---|
526 | CASE ( 'q_init' ) |
---|
527 | READ ( 13 ) q_init |
---|
528 | CASE ( 'q_surface' ) |
---|
529 | READ ( 13 ) q_surface |
---|
530 | CASE ( 'q_surface_initial_change' ) |
---|
531 | READ ( 13 ) q_surface_initial_change |
---|
532 | CASE ( 'q_vertical_gradient' ) |
---|
533 | READ ( 13 ) q_vertical_gradient |
---|
534 | CASE ( 'q_vertical_gradient_level' ) |
---|
535 | READ ( 13 ) q_vertical_gradient_level |
---|
536 | CASE ( 'q_vertical_gradient_level_ind' ) |
---|
537 | READ ( 13 ) q_vertical_gradient_level_ind |
---|
538 | CASE ( 'radiation' ) |
---|
539 | READ ( 13 ) radiation |
---|
540 | CASE ( 'random_generator' ) |
---|
541 | READ ( 13 ) random_generator |
---|
542 | CASE ( 'random_heatflux' ) |
---|
543 | READ ( 13 ) random_heatflux |
---|
544 | CASE ( 'rayleigh_damping_factor' ) |
---|
545 | READ ( 13 ) rayleigh_damping_factor |
---|
546 | CASE ( 'rayleigh_damping_height' ) |
---|
547 | READ ( 13 ) rayleigh_damping_height |
---|
548 | CASE ( 'recycling_width' ) |
---|
549 | READ ( 13 ) recycling_width |
---|
550 | CASE ( 'residual_limit' ) |
---|
551 | READ ( 13 ) residual_limit |
---|
552 | CASE ( 'rif_max' ) |
---|
553 | READ ( 13 ) rif_max |
---|
554 | CASE ( 'rif_min' ) |
---|
555 | READ ( 13 ) rif_min |
---|
556 | CASE ( 'roughness_length' ) |
---|
557 | READ ( 13 ) roughness_length |
---|
558 | CASE ( 'runnr' ) |
---|
559 | READ ( 13 ) runnr |
---|
560 | CASE ( 'run_coupled' ) |
---|
561 | READ ( 13 ) run_coupled |
---|
562 | CASE ( 'sa_init' ) |
---|
563 | READ ( 13 ) sa_init |
---|
564 | CASE ( 'sa_surface' ) |
---|
565 | READ ( 13 ) sa_surface |
---|
566 | CASE ( 'sa_vertical_gradient' ) |
---|
567 | READ ( 13 ) sa_vertical_gradient |
---|
568 | CASE ( 'sa_vertical_gradient_level' ) |
---|
569 | READ ( 13 ) sa_vertical_gradient_level |
---|
570 | CASE ( 'scalar_advec' ) |
---|
571 | READ ( 13 ) scalar_advec |
---|
572 | CASE ( 'scalar_exchange_coefficient' ) |
---|
573 | READ ( 13 ) scalar_exchange_coefficient |
---|
574 | CASE ( 'simulated_time' ) |
---|
575 | READ ( 13 ) simulated_time |
---|
576 | CASE ( 'surface_heatflux' ) |
---|
577 | READ ( 13 ) surface_heatflux |
---|
578 | CASE ( 'surface_pressure' ) |
---|
579 | READ ( 13 ) surface_pressure |
---|
580 | CASE ( 'surface_scalarflux' ) |
---|
581 | READ ( 13 ) surface_scalarflux |
---|
582 | CASE ( 'surface_waterflux' ) |
---|
583 | READ ( 13 ) surface_waterflux |
---|
584 | CASE ( 's_surface' ) |
---|
585 | READ ( 13 ) s_surface |
---|
586 | CASE ( 's_surface_initial_change' ) |
---|
587 | READ ( 13 ) s_surface_initial_change |
---|
588 | CASE ( 's_vertical_gradient' ) |
---|
589 | READ ( 13 ) s_vertical_gradient |
---|
590 | CASE ( 's_vertical_gradient_level' ) |
---|
591 | READ ( 13 ) s_vertical_gradient_level |
---|
592 | CASE ( 'time_coupling' ) |
---|
593 | READ ( 13 ) time_coupling |
---|
594 | CASE ( 'time_disturb' ) |
---|
595 | READ ( 13 ) time_disturb |
---|
596 | CASE ( 'time_dopr' ) |
---|
597 | READ ( 13 ) time_dopr |
---|
598 | CASE ( 'time_domask' ) |
---|
599 | READ ( 13 ) time_domask |
---|
600 | CASE ( 'time_dopr_av' ) |
---|
601 | READ ( 13 ) time_dopr_av |
---|
602 | CASE ( 'time_dopr_listing' ) |
---|
603 | READ ( 13 ) time_dopr_listing |
---|
604 | CASE ( 'time_dopts' ) |
---|
605 | READ ( 13 ) time_dopts |
---|
606 | CASE ( 'time_dosp' ) |
---|
607 | READ ( 13 ) time_dosp |
---|
608 | CASE ( 'time_dots' ) |
---|
609 | READ ( 13 ) time_dots |
---|
610 | CASE ( 'time_do2d_xy' ) |
---|
611 | READ ( 13 ) time_do2d_xy |
---|
612 | CASE ( 'time_do2d_xz' ) |
---|
613 | READ ( 13 ) time_do2d_xz |
---|
614 | CASE ( 'time_do2d_yz' ) |
---|
615 | READ ( 13 ) time_do2d_yz |
---|
616 | CASE ( 'time_do3d' ) |
---|
617 | READ ( 13 ) time_do3d |
---|
618 | CASE ( 'time_do_av' ) |
---|
619 | READ ( 13 ) time_do_av |
---|
620 | CASE ( 'time_do_sla' ) |
---|
621 | READ ( 13 ) time_do_sla |
---|
622 | CASE ( 'time_dvrp' ) |
---|
623 | READ ( 13 ) time_dvrp |
---|
624 | CASE ( 'time_restart' ) |
---|
625 | READ ( 13 ) time_restart |
---|
626 | CASE ( 'time_run_control' ) |
---|
627 | READ ( 13 ) time_run_control |
---|
628 | CASE ( 'time_since_reference_point' ) |
---|
629 | READ ( 13 ) time_since_reference_point |
---|
630 | CASE ( 'time_sort_particles' ) |
---|
631 | READ ( 13 ) time_sort_particles |
---|
632 | CASE ( 'timestep_scheme' ) |
---|
633 | READ ( 13 ) timestep_scheme |
---|
634 | CASE ( 'topography' ) |
---|
635 | READ ( 13 ) topography |
---|
636 | CASE ( 'topography_grid_convention' ) |
---|
637 | READ ( 13 ) topography_grid_convention |
---|
638 | CASE ( 'top_heatflux' ) |
---|
639 | READ ( 13 ) top_heatflux |
---|
640 | CASE ( 'top_momentumflux_u' ) |
---|
641 | READ ( 13 ) top_momentumflux_u |
---|
642 | CASE ( 'top_momentumflux_v' ) |
---|
643 | READ ( 13 ) top_momentumflux_v |
---|
644 | CASE ( 'top_salinityflux' ) |
---|
645 | READ ( 13 ) top_salinityflux |
---|
646 | CASE ( 'tsc' ) |
---|
647 | READ ( 13 ) tsc |
---|
648 | CASE ( 'turbulence' ) |
---|
649 | READ ( 13 ) turbulence |
---|
650 | CASE ( 'turbulent_inflow' ) |
---|
651 | READ ( 13 ) turbulent_inflow |
---|
652 | CASE ( 'u_bulk' ) |
---|
653 | READ ( 13 ) u_bulk |
---|
654 | CASE ( 'u_init' ) |
---|
655 | READ ( 13 ) u_init |
---|
656 | CASE ( 'u_max' ) |
---|
657 | READ ( 13 ) u_max |
---|
658 | CASE ( 'u_max_ijk' ) |
---|
659 | READ ( 13 ) u_max_ijk |
---|
660 | CASE ( 'ug' ) |
---|
661 | READ ( 13 ) ug |
---|
662 | CASE ( 'ug_surface' ) |
---|
663 | READ ( 13 ) ug_surface |
---|
664 | CASE ( 'ug_vertical_gradient' ) |
---|
665 | READ ( 13 ) ug_vertical_gradient |
---|
666 | CASE ( 'ug_vertical_gradient_level' ) |
---|
667 | READ ( 13 ) ug_vertical_gradient_level |
---|
668 | CASE ( 'ug_vertical_gradient_level_ind' ) |
---|
669 | READ ( 13 ) ug_vertical_gradient_level_ind |
---|
670 | CASE ( 'use_surface_fluxes' ) |
---|
671 | READ ( 13 ) use_surface_fluxes |
---|
672 | CASE ( 'use_top_fluxes' ) |
---|
673 | READ ( 13 ) use_top_fluxes |
---|
674 | CASE ( 'use_ug_for_galilei_tr' ) |
---|
675 | READ ( 13 ) use_ug_for_galilei_tr |
---|
676 | CASE ( 'use_upstream_for_tke' ) |
---|
677 | READ ( 13 ) use_upstream_for_tke |
---|
678 | CASE ( 'v_bulk' ) |
---|
679 | READ ( 13 ) v_bulk |
---|
680 | CASE ( 'v_init' ) |
---|
681 | READ ( 13 ) v_init |
---|
682 | CASE ( 'v_max' ) |
---|
683 | READ ( 13 ) v_max |
---|
684 | CASE ( 'v_max_ijk' ) |
---|
685 | READ ( 13 ) v_max_ijk |
---|
686 | CASE ( 'ventilation_effect' ) |
---|
687 | READ ( 13 ) ventilation_effect |
---|
688 | CASE ( 'vg' ) |
---|
689 | READ ( 13 ) vg |
---|
690 | CASE ( 'vg_surface' ) |
---|
691 | READ ( 13 ) vg_surface |
---|
692 | CASE ( 'vg_vertical_gradient' ) |
---|
693 | READ ( 13 ) vg_vertical_gradient |
---|
694 | CASE ( 'vg_vertical_gradient_level' ) |
---|
695 | READ ( 13 ) vg_vertical_gradient_level |
---|
696 | CASE ( 'vg_vertical_gradient_level_ind' ) |
---|
697 | READ ( 13 ) vg_vertical_gradient_level_ind |
---|
698 | CASE ( 'volume_flow_area' ) |
---|
699 | READ ( 13 ) volume_flow_area |
---|
700 | CASE ( 'volume_flow_initial' ) |
---|
701 | READ ( 13 ) volume_flow_initial |
---|
702 | CASE ( 'wall_adjustment' ) |
---|
703 | READ ( 13 ) wall_adjustment |
---|
704 | CASE ( 'subs_vertical_gradient' ) |
---|
705 | READ ( 13 ) subs_vertical_gradient |
---|
706 | CASE ( 'subs_vertical_gradient_level' ) |
---|
707 | READ ( 13 ) subs_vertical_gradient_level |
---|
708 | CASE ( 'subs_vertical_gradient_level_i' ) |
---|
709 | READ ( 13 ) subs_vertical_gradient_level_i |
---|
710 | CASE ( 'w_max' ) |
---|
711 | READ ( 13 ) w_max |
---|
712 | CASE ( 'w_max_ijk' ) |
---|
713 | READ ( 13 ) w_max_ijk |
---|
714 | CASE ( 'z0h_factor' ) |
---|
715 | READ ( 13 ) z0h_factor |
---|
716 | |
---|
717 | CASE DEFAULT |
---|
718 | WRITE( message_string, * ) 'unknown variable named "', & |
---|
719 | TRIM( variable_chr ), '" found in', & |
---|
720 | ' data from prior run on PE ', myid |
---|
721 | CALL message( 'read_var_list', 'PA0302', 1, 2, 0, 6, 0 ) |
---|
722 | END SELECT |
---|
723 | ! |
---|
724 | !-- Read next string |
---|
725 | READ ( 13 ) variable_chr |
---|
726 | |
---|
727 | ENDDO |
---|
728 | |
---|
729 | |
---|
730 | END SUBROUTINE read_var_list |
---|
731 | |
---|
732 | |
---|
733 | |
---|
734 | SUBROUTINE read_parts_of_var_list |
---|
735 | |
---|
736 | !------------------------------------------------------------------------------! |
---|
737 | ! Description: |
---|
738 | ! ------------ |
---|
739 | ! Skipping the global control variables from restart-file (binary format) |
---|
740 | ! except some informations needed when reading restart data from a previous |
---|
741 | ! run which used a smaller total domain or/and a different domain decomposition. |
---|
742 | !------------------------------------------------------------------------------! |
---|
743 | |
---|
744 | USE arrays_3d |
---|
745 | USE control_parameters |
---|
746 | USE indices |
---|
747 | USE pegrid |
---|
748 | USE statistics |
---|
749 | |
---|
750 | IMPLICIT NONE |
---|
751 | |
---|
752 | CHARACTER (LEN=10) :: version_on_file |
---|
753 | CHARACTER (LEN=30) :: variable_chr |
---|
754 | CHARACTER (LEN=1) :: cdum |
---|
755 | |
---|
756 | INTEGER :: max_pr_user_on_file, nz_on_file, & |
---|
757 | statistic_regions_on_file, tmp_mpru, tmp_sr |
---|
758 | |
---|
759 | REAL, DIMENSION(:,:,:), ALLOCATABLE :: hom_sum_on_file |
---|
760 | REAL, DIMENSION(:,:,:,:), ALLOCATABLE :: hom_on_file |
---|
761 | |
---|
762 | |
---|
763 | CALL check_open( 13 ) |
---|
764 | |
---|
765 | WRITE (9,*) 'rpovl: after check open 13' |
---|
766 | CALL local_flush( 9 ) |
---|
767 | READ ( 13 ) version_on_file |
---|
768 | |
---|
769 | ! |
---|
770 | !-- Read number of PEs and horizontal index bounds of all PEs used in previous |
---|
771 | !-- run |
---|
772 | READ ( 13 ) variable_chr |
---|
773 | IF ( TRIM( variable_chr ) /= 'numprocs' ) THEN |
---|
774 | WRITE( message_string, * ) 'numprocs not found in data from prior ', & |
---|
775 | 'run on PE ', myid |
---|
776 | CALL message( 'read_parts_of_var_list', 'PA0297', 1, 2, 0, 6, 0 ) |
---|
777 | ENDIF |
---|
778 | READ ( 13 ) numprocs_previous_run |
---|
779 | |
---|
780 | IF ( .NOT. ALLOCATED( hor_index_bounds_previous_run ) ) THEN |
---|
781 | ALLOCATE( hor_index_bounds_previous_run(4,0:numprocs_previous_run-1) ) |
---|
782 | ENDIF |
---|
783 | |
---|
784 | READ ( 13 ) variable_chr |
---|
785 | IF ( TRIM( variable_chr ) /= 'hor_index_bounds' ) THEN |
---|
786 | WRITE( message_string, * ) 'hor_index_bounds not found in data from ', & |
---|
787 | 'prior run on PE ', myid |
---|
788 | CALL message( 'read_parts_of_var_list', 'PA0298', 1, 2, 0, 6, 0 ) |
---|
789 | ENDIF |
---|
790 | READ ( 13 ) hor_index_bounds_previous_run |
---|
791 | |
---|
792 | ! |
---|
793 | !-- Read vertical number of gridpoints and number of different areas used |
---|
794 | !-- for computing statistics. Allocate arrays depending on these values, |
---|
795 | !-- which are needed for the following read instructions. |
---|
796 | READ ( 13 ) variable_chr |
---|
797 | IF ( TRIM( variable_chr ) /= 'nz' ) THEN |
---|
798 | message_string = 'nz not found in restart data file' |
---|
799 | CALL message( 'read_parts_of_var_list', 'PA0303', 1, 2, 0, 6, 0 ) |
---|
800 | ENDIF |
---|
801 | READ ( 13 ) nz_on_file |
---|
802 | IF ( nz_on_file /= nz ) THEN |
---|
803 | WRITE( message_string, * ) 'mismatch concerning number of ', & |
---|
804 | 'gridpoints along z', & |
---|
805 | '&nz on file = "', nz_on_file, '"', & |
---|
806 | '&nz from run = "', nz, '"' |
---|
807 | CALL message( 'read_parts_of_var_list', 'PA0304', 1, 2, 0, 6, 0 ) |
---|
808 | ENDIF |
---|
809 | |
---|
810 | READ ( 13 ) variable_chr |
---|
811 | IF ( TRIM( variable_chr ) /= 'max_pr_user' ) THEN |
---|
812 | message_string = 'max_pr_user not found in restart data file' |
---|
813 | CALL message( 'read_parts_of_var_list', 'PA0305', 1, 2, 0, 6, 0 ) |
---|
814 | ENDIF |
---|
815 | READ ( 13 ) max_pr_user_on_file |
---|
816 | IF ( max_pr_user_on_file /= max_pr_user ) THEN |
---|
817 | WRITE( message_string, * ) 'number of user profiles on res', & |
---|
818 | 'tart data file differs from the current ', & |
---|
819 | 'run&max_pr_user on file = "', & |
---|
820 | max_pr_user_on_file, '"', & |
---|
821 | '&max_pr_user from run = "', & |
---|
822 | max_pr_user, '"' |
---|
823 | CALL message( 'read_parts_of_var_list', 'PA0306', 0, 0, 0, 6, 0 ) |
---|
824 | tmp_mpru = MIN( max_pr_user_on_file, max_pr_user ) |
---|
825 | ELSE |
---|
826 | tmp_mpru = max_pr_user |
---|
827 | ENDIF |
---|
828 | |
---|
829 | READ ( 13 ) variable_chr |
---|
830 | IF ( TRIM( variable_chr ) /= 'statistic_regions' ) THEN |
---|
831 | message_string = 'statistic_regions not found in restart data file' |
---|
832 | CALL message( 'read_parts_of_var_list', 'PA0307', 1, 2, 0, 6, 0 ) |
---|
833 | ENDIF |
---|
834 | READ ( 13 ) statistic_regions_on_file |
---|
835 | IF ( statistic_regions_on_file /= statistic_regions ) THEN |
---|
836 | WRITE( message_string, * ) 'statistic regions on restart data file ',& |
---|
837 | 'differ from the current run', & |
---|
838 | '&statistic regions on file = "', & |
---|
839 | statistic_regions_on_file, '"', & |
---|
840 | '&statistic regions from run = "', & |
---|
841 | statistic_regions, '"', & |
---|
842 | '&statistic data may be lost!' |
---|
843 | CALL message( 'read_parts_of_var_list', 'PA0308', 0, 1, 0, 6, 0 ) |
---|
844 | tmp_sr = MIN( statistic_regions_on_file, statistic_regions ) |
---|
845 | ELSE |
---|
846 | tmp_sr = statistic_regions |
---|
847 | ENDIF |
---|
848 | |
---|
849 | |
---|
850 | ! |
---|
851 | !-- Now read and check some control parameters and skip the rest |
---|
852 | WRITE (9,*) 'wpovl: begin reading variables' |
---|
853 | CALL local_flush( 9 ) |
---|
854 | READ ( 13 ) variable_chr |
---|
855 | |
---|
856 | DO WHILE ( TRIM( variable_chr ) /= '*** end ***' ) |
---|
857 | |
---|
858 | SELECT CASE ( TRIM( variable_chr ) ) |
---|
859 | |
---|
860 | CASE ( 'average_count_pr' ) |
---|
861 | READ ( 13 ) average_count_pr |
---|
862 | IF ( average_count_pr /= 0 ) THEN |
---|
863 | WRITE( message_string, * ) 'inflow profiles not temporally ', & |
---|
864 | 'averaged. &Averaging will be done now using ', & |
---|
865 | average_count_pr, ' samples.' |
---|
866 | CALL message( 'read_parts_of_var_list', 'PA0309', & |
---|
867 | 0, 1, 0, 6, 0 ) |
---|
868 | ENDIF |
---|
869 | |
---|
870 | CASE ( 'hom' ) |
---|
871 | ALLOCATE( hom_on_file(0:nz+1,2,pr_palm+max_pr_user_on_file, & |
---|
872 | 0:statistic_regions_on_file) ) |
---|
873 | READ ( 13 ) hom_on_file |
---|
874 | hom(:,:,1:pr_palm+tmp_mpru,0:tmp_sr) = & |
---|
875 | hom_on_file(:,:,1:pr_palm+tmp_mpru,0:tmp_sr) |
---|
876 | DEALLOCATE( hom_on_file ) |
---|
877 | |
---|
878 | CASE ( 'hom_sum' ) |
---|
879 | ALLOCATE( hom_sum_on_file(0:nz+1,pr_palm+max_pr_user_on_file, & |
---|
880 | 0:statistic_regions_on_file) ) |
---|
881 | READ ( 13 ) hom_sum_on_file |
---|
882 | hom_sum(:,1:pr_palm+tmp_mpru,0:tmp_sr) = & |
---|
883 | hom_sum_on_file(:,1:pr_palm+tmp_mpru,0:tmp_sr) |
---|
884 | DEALLOCATE( hom_sum_on_file ) |
---|
885 | |
---|
886 | CASE ( 'nx' ) |
---|
887 | READ ( 13 ) nx_on_file |
---|
888 | |
---|
889 | CASE ( 'ny' ) |
---|
890 | READ ( 13 ) ny_on_file |
---|
891 | |
---|
892 | |
---|
893 | CASE DEFAULT |
---|
894 | |
---|
895 | READ ( 13 ) cdum |
---|
896 | |
---|
897 | END SELECT |
---|
898 | |
---|
899 | READ ( 13 ) variable_chr |
---|
900 | |
---|
901 | ENDDO |
---|
902 | |
---|
903 | ! |
---|
904 | !-- Calculate the temporal average of vertical profiles, if neccessary |
---|
905 | IF ( average_count_pr /= 0 ) THEN |
---|
906 | hom_sum = hom_sum / REAL( average_count_pr ) |
---|
907 | ENDIF |
---|
908 | |
---|
909 | |
---|
910 | END SUBROUTINE read_parts_of_var_list |
---|
911 | |
---|
912 | |
---|
913 | |
---|
914 | SUBROUTINE skip_var_list |
---|
915 | |
---|
916 | !------------------------------------------------------------------------------! |
---|
917 | ! Description: |
---|
918 | ! ------------ |
---|
919 | ! Skipping the global control variables from restart-file (binary format) |
---|
920 | !------------------------------------------------------------------------------! |
---|
921 | |
---|
922 | IMPLICIT NONE |
---|
923 | |
---|
924 | CHARACTER (LEN=10) :: version_on_file |
---|
925 | CHARACTER (LEN=30) :: variable_chr |
---|
926 | |
---|
927 | CHARACTER (LEN=1) :: cdum |
---|
928 | |
---|
929 | |
---|
930 | WRITE (9,*) 'skipvl #1' |
---|
931 | CALL local_flush( 9 ) |
---|
932 | READ ( 13 ) version_on_file |
---|
933 | |
---|
934 | WRITE (9,*) 'skipvl before variable_chr' |
---|
935 | CALL local_flush( 9 ) |
---|
936 | READ ( 13 ) variable_chr |
---|
937 | WRITE (9,*) 'skipvl after variable_chr' |
---|
938 | CALL local_flush( 9 ) |
---|
939 | |
---|
940 | DO WHILE ( TRIM( variable_chr ) /= '*** end ***' ) |
---|
941 | |
---|
942 | WRITE (9,*) 'skipvl chr = ', variable_chr |
---|
943 | CALL local_flush( 9 ) |
---|
944 | READ ( 13 ) cdum |
---|
945 | READ ( 13 ) variable_chr |
---|
946 | |
---|
947 | ENDDO |
---|
948 | WRITE (9,*) 'skipvl last' |
---|
949 | CALL local_flush( 9 ) |
---|
950 | |
---|
951 | |
---|
952 | END SUBROUTINE skip_var_list |
---|