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