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