1 | SUBROUTINE read_var_list |
---|
2 | |
---|
3 | !------------------------------------------------------------------------------! |
---|
4 | ! Current revisions: |
---|
5 | ! ------------------ |
---|
6 | ! |
---|
7 | ! |
---|
8 | ! Former revisions: |
---|
9 | ! ----------------- |
---|
10 | ! $Id: read_var_list.f90 941 2012-07-09 14:50:21Z maronga $ |
---|
11 | ! |
---|
12 | ! 940 2012-07-09 14:31:00Z raasch |
---|
13 | ! +neutral |
---|
14 | ! |
---|
15 | ! 927 2012-06-06 19:15:04Z raasch |
---|
16 | ! +masking_method |
---|
17 | ! |
---|
18 | ! 849 2012-03-15 10:35:09Z raasch |
---|
19 | ! first_call_advec_particles renamed first_call_lpm |
---|
20 | ! |
---|
21 | ! 824 2012-02-17 09:09:57Z raasch |
---|
22 | ! +curvature_solution_effects |
---|
23 | ! |
---|
24 | ! 626 2010-12-10 13:04:12Z suehring |
---|
25 | ! idum replaced by cdum in read_parts_of_var_list |
---|
26 | ! |
---|
27 | ! 622 2010-12-10 08:08:13Z raasch |
---|
28 | ! +collective_wait |
---|
29 | ! |
---|
30 | ! 600 2010-11-24 16:10:51Z raasch |
---|
31 | ! +call_psolver_at_all_substeps, cfl_factor, cycle_mg, mg_cycles, |
---|
32 | ! mg_switch_to_pe0_level, ngsrb, nsor, omega_sor, psolver, |
---|
33 | ! rayleigh_damping_factor, rayleigh_damping_height, residual_limit |
---|
34 | ! in routine skip_var_list (end of this file), variable ldum is replaced |
---|
35 | ! by cdum(LEN=1), because otherwise read errors (too few data on file) |
---|
36 | ! appear due to one of the additional parameters (cycle_mg) which are now |
---|
37 | ! stored on the restart file |
---|
38 | ! |
---|
39 | ! 591 2010-10-28 06:35:52Z helmke |
---|
40 | ! remove print command |
---|
41 | ! |
---|
42 | ! 587 2010-10-27 08:36:51Z helmke |
---|
43 | ! +time_domask |
---|
44 | ! |
---|
45 | ! 580 2010-10-05 13:59:11Z heinze |
---|
46 | ! Renaming of ws_vertical_gradient to subs_vertical_gradient, |
---|
47 | ! ws_vertical_gradient_level to subs_vertical_gradient_level and |
---|
48 | ! ws_vertical_gradient_level_ind to subs_vertical_gradient_level_i |
---|
49 | ! |
---|
50 | ! 411 2009-12-11 14:15:58Z heinze |
---|
51 | ! +large_scale_subsidence, ws_vertical_gradient, ws_vertical_gradient_level, |
---|
52 | ! ws_vertical_gradient_level_ind |
---|
53 | ! |
---|
54 | ! 345 2009-07-01 14:37:56Z heinze |
---|
55 | ! +output_for_t0 |
---|
56 | ! dt_fixed is read into a dummy variable. |
---|
57 | ! Output of messages replaced by message handling routine. |
---|
58 | ! +canyon_height, canyon_width_x, canyon_width_y, canyon_wall_left, |
---|
59 | ! canyon_wall_south, conserve_volume_flow_mode, coupling_start_time, |
---|
60 | ! dp_external, dp_level_b, dp_smooth, dpdxy, run_coupled, |
---|
61 | ! time_since_reference_point, topography_grid_convention, u_bulk, v_bulk |
---|
62 | ! |
---|
63 | ! 216 2008-11-25 07:12:43Z raasch |
---|
64 | ! limitations for nx_on_file, ny_on_file removed (read_parts_of_var_list) |
---|
65 | ! |
---|
66 | ! 173 2008-05-23 20:39:38Z raasch |
---|
67 | ! +cthf, leaf_surface_concentration, scalar_exchange_coefficient |
---|
68 | ! +numprocs_previous_run, hor_index_bounds_previous_run, inflow_damping_factor, |
---|
69 | ! inflow_damping_height, inflow_damping_width, mean_inflow_profiles, |
---|
70 | ! recycling_width, turbulent_inflow, |
---|
71 | ! -cross_ts_*, npex, npey, |
---|
72 | ! hom_sum, volume_flow_area, volume_flow_initial moved from |
---|
73 | ! read_3d_binary to here, |
---|
74 | ! routines read_parts_of_var_list and skip_var_list added at the end |
---|
75 | ! |
---|
76 | ! 138 2007-11-28 10:03:58Z letzel |
---|
77 | ! +canopy_mode, drag_coefficient, lad, lad_surface, lad_vertical_gradient, |
---|
78 | ! lad_vertical_gradient_level, lad_vertical_gradient_level_ind, pch_index, |
---|
79 | ! plant_canopy, time_sort_particles |
---|
80 | ! |
---|
81 | ! 102 2007-07-27 09:09:17Z raasch |
---|
82 | ! +time_coupling, top_momentumflux_u|v |
---|
83 | ! |
---|
84 | ! 95 2007-06-02 16:48:38Z raasch |
---|
85 | ! +bc_sa_t, ocean, sa_init, sa_surface, sa_vertical_gradient, |
---|
86 | ! sa_vertical_gradient_level, bottom/top_salinity_flux |
---|
87 | ! |
---|
88 | ! 87 2007-05-22 15:46:47Z raasch |
---|
89 | ! +max_pr_user (version 3.1), var_hom renamed pr_palm |
---|
90 | ! |
---|
91 | ! 75 2007-03-22 09:54:05Z raasch |
---|
92 | ! +loop_optimization, pt_reference, moisture renamed humidity |
---|
93 | ! |
---|
94 | ! 20 2007-02-26 00:12:32Z raasch |
---|
95 | ! +top_heatflux, use_top_fluxes |
---|
96 | ! |
---|
97 | ! RCS Log replace by Id keyword, revision history cleaned up |
---|
98 | ! |
---|
99 | ! Revision 1.34 2006/08/22 14:14:27 raasch |
---|
100 | ! +dz_max |
---|
101 | ! |
---|
102 | ! Revision 1.1 1998/03/18 20:18:48 raasch |
---|
103 | ! Initial revision |
---|
104 | ! |
---|
105 | ! |
---|
106 | ! Description: |
---|
107 | ! ------------ |
---|
108 | ! Reading values of global control variables from restart-file (binary format) |
---|
109 | !------------------------------------------------------------------------------! |
---|
110 | |
---|
111 | USE arrays_3d |
---|
112 | USE averaging |
---|
113 | USE cloud_parameters |
---|
114 | USE control_parameters |
---|
115 | USE grid_variables |
---|
116 | USE indices |
---|
117 | USE model_1d |
---|
118 | USE netcdf_control |
---|
119 | USE particle_attributes |
---|
120 | USE pegrid |
---|
121 | USE profil_parameter |
---|
122 | USE statistics |
---|
123 | |
---|
124 | IMPLICIT NONE |
---|
125 | |
---|
126 | CHARACTER (LEN=10) :: binary_version, version_on_file |
---|
127 | CHARACTER (LEN=30) :: variable_chr |
---|
128 | |
---|
129 | LOGICAL :: ldum |
---|
130 | |
---|
131 | |
---|
132 | CALL check_open( 13 ) |
---|
133 | |
---|
134 | ! |
---|
135 | !-- Make version number check first |
---|
136 | READ ( 13 ) version_on_file |
---|
137 | binary_version = '3.5' |
---|
138 | IF ( TRIM( version_on_file ) /= TRIM( binary_version ) ) THEN |
---|
139 | WRITE( message_string, * ) 'version mismatch concerning control ', & |
---|
140 | 'variables', & |
---|
141 | '&version on file = "', & |
---|
142 | TRIM( version_on_file ), '"', & |
---|
143 | '&version on program = "', & |
---|
144 | TRIM( binary_version ), '"' |
---|
145 | CALL message( 'read_var_list', 'PA0296', 1, 2, 0, 6, 0 ) |
---|
146 | ENDIF |
---|
147 | |
---|
148 | ! |
---|
149 | !-- Read number of PEs and horizontal index bounds of all PEs used in previous |
---|
150 | !-- run |
---|
151 | READ ( 13 ) variable_chr |
---|
152 | IF ( TRIM( variable_chr ) /= 'numprocs' ) THEN |
---|
153 | WRITE( message_string, * ) 'numprocs not found in data from prior ', & |
---|
154 | 'run on PE ', myid |
---|
155 | CALL message( 'read_var_list', 'PA0297', 1, 2, 0, 6, 0 ) |
---|
156 | ENDIF |
---|
157 | READ ( 13 ) numprocs_previous_run |
---|
158 | |
---|
159 | IF ( .NOT. ALLOCATED( hor_index_bounds_previous_run ) ) THEN |
---|
160 | ALLOCATE( hor_index_bounds_previous_run(4,0:numprocs_previous_run-1) ) |
---|
161 | ENDIF |
---|
162 | |
---|
163 | READ ( 13 ) variable_chr |
---|
164 | IF ( TRIM( variable_chr ) /= 'hor_index_bounds' ) THEN |
---|
165 | WRITE( message_string, * ) 'hor_index_bounds not found in data from ', & |
---|
166 | 'prior run on PE ', myid |
---|
167 | CALL message( 'read_var_list', 'PA0298', 1, 2, 0, 6, 0 ) |
---|
168 | ENDIF |
---|
169 | READ ( 13 ) hor_index_bounds_previous_run |
---|
170 | |
---|
171 | ! |
---|
172 | !-- Read vertical number of gridpoints and number of different areas used |
---|
173 | !-- for computing statistics. Allocate arrays depending on these values, |
---|
174 | !-- which are needed for the following read instructions. |
---|
175 | READ ( 13 ) variable_chr |
---|
176 | IF ( TRIM( variable_chr ) /= 'nz' ) THEN |
---|
177 | WRITE( message_string, * ) 'nz not found in data from prior run on PE ',& |
---|
178 | myid |
---|
179 | CALL message( 'read_var_list', 'PA0299', 1, 2, 0, 6, 0 ) |
---|
180 | ENDIF |
---|
181 | READ ( 13 ) nz |
---|
182 | |
---|
183 | READ ( 13 ) variable_chr |
---|
184 | IF ( TRIM( variable_chr ) /= 'max_pr_user' ) THEN |
---|
185 | WRITE( message_string, * ) 'max_pr_user not found in data from ', & |
---|
186 | 'prior run on PE ', myid |
---|
187 | CALL message( 'read_var_list', 'PA0300', 1, 2, 0, 6, 0 ) |
---|
188 | ENDIF |
---|
189 | READ ( 13 ) max_pr_user ! This value is checked against the number of |
---|
190 | ! user profiles given for the current run |
---|
191 | ! in routine user_parin (it has to match) |
---|
192 | |
---|
193 | READ ( 13 ) variable_chr |
---|
194 | IF ( TRIM( variable_chr ) /= 'statistic_regions' ) THEN |
---|
195 | WRITE( message_string, * ) 'statistic_regions not found in data from ', & |
---|
196 | 'prior run on PE ', myid |
---|
197 | CALL message( 'read_var_list', 'PA0301', 1, 2, 0, 6, 0 ) |
---|
198 | ENDIF |
---|
199 | READ ( 13 ) statistic_regions |
---|
200 | IF ( .NOT. ALLOCATED( ug ) ) THEN |
---|
201 | ALLOCATE( lad(0:nz+1), ug(0:nz+1), u_init(0:nz+1), vg(0:nz+1), & |
---|
202 | v_init(0:nz+1), pt_init(0:nz+1), q_init(0:nz+1), & |
---|
203 | sa_init(0:nz+1), & |
---|
204 | hom(0:nz+1,2,pr_palm+max_pr_user,0:statistic_regions), & |
---|
205 | hom_sum(0:nz+1,pr_palm+max_pr_user,0:statistic_regions) ) |
---|
206 | ENDIF |
---|
207 | |
---|
208 | ! |
---|
209 | !-- Now read all control parameters: |
---|
210 | !-- Caution: When the following read instructions have been changed, the |
---|
211 | !-- ------- version number stored in the variable binary_version has to be |
---|
212 | !-- increased. The same changes must also be done in write_var_list. |
---|
213 | READ ( 13 ) variable_chr |
---|
214 | DO WHILE ( TRIM( variable_chr ) /= '*** end ***' ) |
---|
215 | |
---|
216 | SELECT CASE ( TRIM( variable_chr ) ) |
---|
217 | |
---|
218 | CASE ( 'adjust_mixing_length' ) |
---|
219 | READ ( 13 ) adjust_mixing_length |
---|
220 | CASE ( 'advected_distance_x' ) |
---|
221 | READ ( 13 ) advected_distance_x |
---|
222 | CASE ( 'advected_distance_y' ) |
---|
223 | READ ( 13 ) advected_distance_y |
---|
224 | CASE ( 'alpha_surface' ) |
---|
225 | READ ( 13 ) alpha_surface |
---|
226 | CASE ( 'average_count_pr' ) |
---|
227 | READ ( 13 ) average_count_pr |
---|
228 | CASE ( 'average_count_sp' ) |
---|
229 | READ ( 13 ) average_count_sp |
---|
230 | CASE ( 'average_count_3d' ) |
---|
231 | READ ( 13 ) average_count_3d |
---|
232 | CASE ( 'bc_e_b' ) |
---|
233 | READ ( 13 ) bc_e_b |
---|
234 | CASE ( 'bc_lr' ) |
---|
235 | READ ( 13 ) bc_lr |
---|
236 | CASE ( 'bc_ns' ) |
---|
237 | READ ( 13 ) bc_ns |
---|
238 | CASE ( 'bc_p_b' ) |
---|
239 | READ ( 13 ) bc_p_b |
---|
240 | CASE ( 'bc_p_t' ) |
---|
241 | READ ( 13 ) bc_p_t |
---|
242 | CASE ( 'bc_pt_b' ) |
---|
243 | READ ( 13 ) bc_pt_b |
---|
244 | CASE ( 'bc_pt_t' ) |
---|
245 | READ ( 13 ) bc_pt_t |
---|
246 | CASE ( 'bc_pt_t_val' ) |
---|
247 | READ ( 13 ) bc_pt_t_val |
---|
248 | CASE ( 'bc_q_b' ) |
---|
249 | READ ( 13 ) bc_q_b |
---|
250 | CASE ( 'bc_q_t' ) |
---|
251 | READ ( 13 ) bc_q_t |
---|
252 | CASE ( 'bc_q_t_val' ) |
---|
253 | READ ( 13 ) bc_q_t_val |
---|
254 | CASE ( 'bc_s_b' ) |
---|
255 | READ ( 13 ) bc_s_b |
---|
256 | CASE ( 'bc_s_t' ) |
---|
257 | READ ( 13 ) bc_s_t |
---|
258 | CASE ( 'bc_sa_t' ) |
---|
259 | READ ( 13 ) bc_sa_t |
---|
260 | CASE ( 'bc_uv_b' ) |
---|
261 | READ ( 13 ) bc_uv_b |
---|
262 | CASE ( 'bc_uv_t' ) |
---|
263 | READ ( 13 ) bc_uv_t |
---|
264 | CASE ( 'bottom_salinityflux' ) |
---|
265 | READ ( 13 ) bottom_salinityflux |
---|
266 | CASE ( 'building_height' ) |
---|
267 | READ ( 13 ) building_height |
---|
268 | CASE ( 'building_length_x' ) |
---|
269 | READ ( 13 ) building_length_x |
---|
270 | CASE ( 'building_length_y' ) |
---|
271 | READ ( 13 ) building_length_y |
---|
272 | CASE ( 'building_wall_left' ) |
---|
273 | READ ( 13 ) building_wall_left |
---|
274 | CASE ( 'building_wall_south' ) |
---|
275 | READ ( 13 ) building_wall_south |
---|
276 | CASE ( 'call_psolver_at_all_substeps' ) |
---|
277 | READ ( 13 ) call_psolver_at_all_substeps |
---|
278 | CASE ( 'canopy_mode' ) |
---|
279 | READ ( 13 ) canopy_mode |
---|
280 | CASE ( 'canyon_height' ) |
---|
281 | READ ( 13 ) canyon_height |
---|
282 | CASE ( 'canyon_width_x' ) |
---|
283 | READ ( 13 ) canyon_width_x |
---|
284 | CASE ( 'canyon_width_y' ) |
---|
285 | READ ( 13 ) canyon_width_y |
---|
286 | CASE ( 'canyon_wall_left' ) |
---|
287 | READ ( 13 ) canyon_wall_left |
---|
288 | CASE ( 'canyon_wall_south' ) |
---|
289 | READ ( 13 ) canyon_wall_south |
---|
290 | CASE ( 'cfl_factor' ) |
---|
291 | READ ( 13 ) cfl_factor |
---|
292 | CASE ( 'cloud_droplets' ) |
---|
293 | READ ( 13 ) cloud_droplets |
---|
294 | CASE ( 'cloud_physics' ) |
---|
295 | READ ( 13 ) cloud_physics |
---|
296 | CASE ( 'collective_wait' ) |
---|
297 | READ ( 13 ) collective_wait |
---|
298 | CASE ( 'conserve_volume_flow' ) |
---|
299 | READ ( 13 ) conserve_volume_flow |
---|
300 | CASE ( 'conserve_volume_flow_mode' ) |
---|
301 | READ ( 13 ) conserve_volume_flow_mode |
---|
302 | CASE ( 'coupling_start_time' ) |
---|
303 | READ ( 13 ) coupling_start_time |
---|
304 | CASE ( 'cthf' ) |
---|
305 | READ ( 13 ) cthf |
---|
306 | CASE ( 'current_timestep_number' ) |
---|
307 | READ ( 13 ) current_timestep_number |
---|
308 | CASE ( 'curvature_solution_effects' ) |
---|
309 | READ ( 13 ) curvature_solution_effects |
---|
310 | CASE ( 'cut_spline_overshoot' ) |
---|
311 | READ ( 13 ) cut_spline_overshoot |
---|
312 | CASE ( 'cycle_mg' ) |
---|
313 | READ ( 13 ) cycle_mg |
---|
314 | CASE ( 'damp_level_1d' ) |
---|
315 | READ ( 13 ) damp_level_1d |
---|
316 | CASE ( 'dissipation_1d' ) |
---|
317 | READ ( 13 ) dissipation_1d |
---|
318 | CASE ( 'dp_external' ) |
---|
319 | READ ( 13 ) dp_external |
---|
320 | CASE ( 'dp_level_b' ) |
---|
321 | READ ( 13 ) dp_level_b |
---|
322 | CASE ( 'dp_smooth' ) |
---|
323 | READ ( 13 ) dp_smooth |
---|
324 | CASE ( 'dpdxy' ) |
---|
325 | READ ( 13 ) dpdxy |
---|
326 | CASE ( 'drag_coefficient' ) |
---|
327 | READ ( 13 ) drag_coefficient |
---|
328 | CASE ( 'dt_fixed' ) |
---|
329 | READ ( 13 ) ldum ! restart files created before rev 333 |
---|
330 | ! contained dt_fixed by mistake; it is still |
---|
331 | ! read here in order to allow usage of these |
---|
332 | ! older restart files; can be removed in a |
---|
333 | ! later version |
---|
334 | CASE ( 'dt_pr_1d' ) |
---|
335 | READ ( 13 ) dt_pr_1d |
---|
336 | CASE ( 'dt_run_control_1d' ) |
---|
337 | READ ( 13 ) dt_run_control_1d |
---|
338 | CASE ( 'dt_3d' ) |
---|
339 | READ ( 13 ) dt_3d |
---|
340 | CASE ( 'dvrp_filecount' ) |
---|
341 | READ ( 13 ) dvrp_filecount |
---|
342 | CASE ( 'dx' ) |
---|
343 | READ ( 13 ) dx |
---|
344 | CASE ( 'dy' ) |
---|
345 | READ ( 13 ) dy |
---|
346 | CASE ( 'dz' ) |
---|
347 | READ ( 13 ) dz |
---|
348 | CASE ( 'dz_max' ) |
---|
349 | READ ( 13 ) dz_max |
---|
350 | CASE ( 'dz_stretch_factor' ) |
---|
351 | READ ( 13 ) dz_stretch_factor |
---|
352 | CASE ( 'dz_stretch_level' ) |
---|
353 | READ ( 13 ) dz_stretch_level |
---|
354 | CASE ( 'e_min' ) |
---|
355 | READ ( 13 ) e_min |
---|
356 | CASE ( 'end_time_1d' ) |
---|
357 | READ ( 13 ) end_time_1d |
---|
358 | CASE ( 'fft_method' ) |
---|
359 | READ ( 13 ) fft_method |
---|
360 | CASE ( 'first_call_lpm' ) |
---|
361 | READ ( 13 ) first_call_lpm |
---|
362 | CASE ( 'galilei_transformation' ) |
---|
363 | READ ( 13 ) galilei_transformation |
---|
364 | CASE ( 'grid_matching' ) |
---|
365 | READ ( 13 ) grid_matching |
---|
366 | CASE ( 'hom' ) |
---|
367 | READ ( 13 ) hom |
---|
368 | CASE ( 'hom_sum' ) |
---|
369 | READ ( 13 ) hom_sum |
---|
370 | CASE ( 'humidity' ) |
---|
371 | READ ( 13 ) humidity |
---|
372 | CASE ( 'inflow_damping_factor' ) |
---|
373 | IF ( .NOT. ALLOCATED( inflow_damping_factor ) ) THEN |
---|
374 | ALLOCATE( inflow_damping_factor(0:nz+1) ) |
---|
375 | ENDIF |
---|
376 | READ ( 13 ) inflow_damping_factor |
---|
377 | CASE ( 'inflow_damping_height' ) |
---|
378 | READ ( 13 ) inflow_damping_height |
---|
379 | CASE ( 'inflow_damping_width' ) |
---|
380 | READ ( 13 ) inflow_damping_width |
---|
381 | CASE ( 'inflow_disturbance_begin' ) |
---|
382 | READ ( 13 ) inflow_disturbance_begin |
---|
383 | CASE ( 'inflow_disturbance_end' ) |
---|
384 | READ ( 13 ) inflow_disturbance_end |
---|
385 | CASE ( 'km_constant' ) |
---|
386 | READ ( 13 ) km_constant |
---|
387 | CASE ( 'km_damp_max' ) |
---|
388 | READ ( 13 ) km_damp_max |
---|
389 | CASE ( 'lad' ) |
---|
390 | READ ( 13 ) lad |
---|
391 | CASE ( 'lad_surface' ) |
---|
392 | READ ( 13 ) lad_surface |
---|
393 | CASE ( 'lad_vertical_gradient' ) |
---|
394 | READ ( 13 ) lad_vertical_gradient |
---|
395 | CASE ( 'lad_vertical_gradient_level' ) |
---|
396 | READ ( 13 ) lad_vertical_gradient_level |
---|
397 | CASE ( 'lad_vertical_gradient_level_in' ) |
---|
398 | READ ( 13 ) lad_vertical_gradient_level_ind |
---|
399 | CASE ( 'last_dt_change' ) |
---|
400 | READ ( 13 ) last_dt_change |
---|
401 | CASE ( 'large_scale_subsidence' ) |
---|
402 | READ ( 13 ) large_scale_subsidence |
---|
403 | CASE ( 'leaf_surface_concentration' ) |
---|
404 | READ ( 13 ) leaf_surface_concentration |
---|
405 | CASE ( 'long_filter_factor' ) |
---|
406 | READ ( 13 ) long_filter_factor |
---|
407 | CASE ( 'loop_optimization' ) |
---|
408 | READ ( 13 ) loop_optimization |
---|
409 | CASE ( 'masking_method' ) |
---|
410 | READ ( 13 ) masking_method |
---|
411 | CASE ( 'mean_inflow_profiles' ) |
---|
412 | IF ( .NOT. ALLOCATED( mean_inflow_profiles ) ) THEN |
---|
413 | ALLOCATE( mean_inflow_profiles(0:nz+1,5) ) |
---|
414 | ENDIF |
---|
415 | READ ( 13 ) mean_inflow_profiles |
---|
416 | CASE ( 'mg_cycles' ) |
---|
417 | READ ( 13 ) mg_cycles |
---|
418 | CASE ( 'mg_switch_to_pe0_level' ) |
---|
419 | READ ( 13 ) mg_switch_to_pe0_level |
---|
420 | CASE ( 'mixing_length_1d' ) |
---|
421 | READ ( 13 ) mixing_length_1d |
---|
422 | CASE ( 'momentum_advec' ) |
---|
423 | READ ( 13 ) momentum_advec |
---|
424 | CASE ( 'netcdf_precision' ) |
---|
425 | READ ( 13 ) netcdf_precision |
---|
426 | CASE ( 'neutral' ) |
---|
427 | READ ( 13 ) neutral |
---|
428 | CASE ( 'ngsrb' ) |
---|
429 | READ ( 13 ) ngsrb |
---|
430 | CASE ( 'nsor' ) |
---|
431 | READ ( 13 ) nsor |
---|
432 | CASE ( 'nsor_ini' ) |
---|
433 | READ ( 13 ) nsor_ini |
---|
434 | CASE ( 'nx' ) |
---|
435 | READ ( 13 ) nx |
---|
436 | nx_on_file = nx |
---|
437 | CASE ( 'ny' ) |
---|
438 | READ ( 13 ) ny |
---|
439 | ny_on_file = ny |
---|
440 | CASE ( 'ocean' ) |
---|
441 | READ ( 13 ) ocean |
---|
442 | CASE ( 'old_dt' ) |
---|
443 | READ ( 13 ) old_dt |
---|
444 | CASE ( 'omega' ) |
---|
445 | READ ( 13 ) omega |
---|
446 | CASE ( 'omega_sor' ) |
---|
447 | READ ( 13 ) omega_sor |
---|
448 | CASE ( 'outflow_damping_width' ) |
---|
449 | READ ( 13 ) outflow_damping_width |
---|
450 | CASE ( 'output_for_t0' ) |
---|
451 | READ (13) output_for_t0 |
---|
452 | CASE ( 'overshoot_limit_e' ) |
---|
453 | READ ( 13 ) overshoot_limit_e |
---|
454 | CASE ( 'overshoot_limit_pt' ) |
---|
455 | READ ( 13 ) overshoot_limit_pt |
---|
456 | CASE ( 'overshoot_limit_u' ) |
---|
457 | READ ( 13 ) overshoot_limit_u |
---|
458 | CASE ( 'overshoot_limit_v' ) |
---|
459 | READ ( 13 ) overshoot_limit_v |
---|
460 | CASE ( 'overshoot_limit_w' ) |
---|
461 | READ ( 13 ) overshoot_limit_w |
---|
462 | CASE ( 'passive_scalar' ) |
---|
463 | READ ( 13 ) passive_scalar |
---|
464 | CASE ( 'pch_index' ) |
---|
465 | READ ( 13 ) pch_index |
---|
466 | CASE ( 'phi' ) |
---|
467 | READ ( 13 ) phi |
---|
468 | CASE ( 'plant_canopy' ) |
---|
469 | READ ( 13 ) plant_canopy |
---|
470 | CASE ( 'prandtl_layer' ) |
---|
471 | READ ( 13 ) prandtl_layer |
---|
472 | CASE ( 'prandtl_number' ) |
---|
473 | READ ( 13 ) prandtl_number |
---|
474 | CASE ( 'precipitation' ) |
---|
475 | READ ( 13 ) precipitation |
---|
476 | CASE ( 'psolver' ) |
---|
477 | READ ( 13 ) psolver |
---|
478 | CASE ( 'pt_init' ) |
---|
479 | READ ( 13 ) pt_init |
---|
480 | CASE ( 'pt_reference' ) |
---|
481 | READ ( 13 ) pt_reference |
---|
482 | CASE ( 'pt_surface' ) |
---|
483 | READ ( 13 ) pt_surface |
---|
484 | CASE ( 'pt_surface_initial_change' ) |
---|
485 | READ ( 13 ) pt_surface_initial_change |
---|
486 | CASE ( 'pt_vertical_gradient' ) |
---|
487 | READ ( 13 ) pt_vertical_gradient |
---|
488 | CASE ( 'pt_vertical_gradient_level' ) |
---|
489 | READ ( 13 ) pt_vertical_gradient_level |
---|
490 | CASE ( 'pt_vertical_gradient_level_ind' ) |
---|
491 | READ ( 13 ) pt_vertical_gradient_level_ind |
---|
492 | CASE ( 'q_init' ) |
---|
493 | READ ( 13 ) q_init |
---|
494 | CASE ( 'q_surface' ) |
---|
495 | READ ( 13 ) q_surface |
---|
496 | CASE ( 'q_surface_initial_change' ) |
---|
497 | READ ( 13 ) q_surface_initial_change |
---|
498 | CASE ( 'q_vertical_gradient' ) |
---|
499 | READ ( 13 ) q_vertical_gradient |
---|
500 | CASE ( 'q_vertical_gradient_level' ) |
---|
501 | READ ( 13 ) q_vertical_gradient_level |
---|
502 | CASE ( 'q_vertical_gradient_level_ind' ) |
---|
503 | READ ( 13 ) q_vertical_gradient_level_ind |
---|
504 | CASE ( 'radiation' ) |
---|
505 | READ ( 13 ) radiation |
---|
506 | CASE ( 'random_generator' ) |
---|
507 | READ ( 13 ) random_generator |
---|
508 | CASE ( 'random_heatflux' ) |
---|
509 | READ ( 13 ) random_heatflux |
---|
510 | CASE ( 'rayleigh_damping_factor' ) |
---|
511 | READ ( 13 ) rayleigh_damping_factor |
---|
512 | CASE ( 'rayleigh_damping_height' ) |
---|
513 | READ ( 13 ) rayleigh_damping_height |
---|
514 | CASE ( 'recycling_width' ) |
---|
515 | READ ( 13 ) recycling_width |
---|
516 | CASE ( 'residual_limit' ) |
---|
517 | READ ( 13 ) residual_limit |
---|
518 | CASE ( 'rif_max' ) |
---|
519 | READ ( 13 ) rif_max |
---|
520 | CASE ( 'rif_min' ) |
---|
521 | READ ( 13 ) rif_min |
---|
522 | CASE ( 'roughness_length' ) |
---|
523 | READ ( 13 ) roughness_length |
---|
524 | CASE ( 'runnr' ) |
---|
525 | READ ( 13 ) runnr |
---|
526 | CASE ( 'run_coupled' ) |
---|
527 | READ ( 13 ) run_coupled |
---|
528 | CASE ( 'sa_init' ) |
---|
529 | READ ( 13 ) sa_init |
---|
530 | CASE ( 'sa_surface' ) |
---|
531 | READ ( 13 ) sa_surface |
---|
532 | CASE ( 'sa_vertical_gradient' ) |
---|
533 | READ ( 13 ) sa_vertical_gradient |
---|
534 | CASE ( 'sa_vertical_gradient_level' ) |
---|
535 | READ ( 13 ) sa_vertical_gradient_level |
---|
536 | CASE ( 'scalar_advec' ) |
---|
537 | READ ( 13 ) scalar_advec |
---|
538 | CASE ( 'scalar_exchange_coefficient' ) |
---|
539 | READ ( 13 ) scalar_exchange_coefficient |
---|
540 | CASE ( 'simulated_time' ) |
---|
541 | READ ( 13 ) simulated_time |
---|
542 | CASE ( 'surface_heatflux' ) |
---|
543 | READ ( 13 ) surface_heatflux |
---|
544 | CASE ( 'surface_pressure' ) |
---|
545 | READ ( 13 ) surface_pressure |
---|
546 | CASE ( 'surface_scalarflux' ) |
---|
547 | READ ( 13 ) surface_scalarflux |
---|
548 | CASE ( 'surface_waterflux' ) |
---|
549 | READ ( 13 ) surface_waterflux |
---|
550 | CASE ( 's_surface' ) |
---|
551 | READ ( 13 ) s_surface |
---|
552 | CASE ( 's_surface_initial_change' ) |
---|
553 | READ ( 13 ) s_surface_initial_change |
---|
554 | CASE ( 's_vertical_gradient' ) |
---|
555 | READ ( 13 ) s_vertical_gradient |
---|
556 | CASE ( 's_vertical_gradient_level' ) |
---|
557 | READ ( 13 ) s_vertical_gradient_level |
---|
558 | CASE ( 'time_coupling' ) |
---|
559 | READ ( 13 ) time_coupling |
---|
560 | CASE ( 'time_disturb' ) |
---|
561 | READ ( 13 ) time_disturb |
---|
562 | CASE ( 'time_dopr' ) |
---|
563 | READ ( 13 ) time_dopr |
---|
564 | CASE ( 'time_domask' ) |
---|
565 | READ ( 13 ) time_domask |
---|
566 | CASE ( 'time_dopr_av' ) |
---|
567 | READ ( 13 ) time_dopr_av |
---|
568 | CASE ( 'time_dopr_listing' ) |
---|
569 | READ ( 13 ) time_dopr_listing |
---|
570 | CASE ( 'time_dopts' ) |
---|
571 | READ ( 13 ) time_dopts |
---|
572 | CASE ( 'time_dosp' ) |
---|
573 | READ ( 13 ) time_dosp |
---|
574 | CASE ( 'time_dots' ) |
---|
575 | READ ( 13 ) time_dots |
---|
576 | CASE ( 'time_do2d_xy' ) |
---|
577 | READ ( 13 ) time_do2d_xy |
---|
578 | CASE ( 'time_do2d_xz' ) |
---|
579 | READ ( 13 ) time_do2d_xz |
---|
580 | CASE ( 'time_do2d_yz' ) |
---|
581 | READ ( 13 ) time_do2d_yz |
---|
582 | CASE ( 'time_do3d' ) |
---|
583 | READ ( 13 ) time_do3d |
---|
584 | CASE ( 'time_do_av' ) |
---|
585 | READ ( 13 ) time_do_av |
---|
586 | CASE ( 'time_do_sla' ) |
---|
587 | READ ( 13 ) time_do_sla |
---|
588 | CASE ( 'time_dvrp' ) |
---|
589 | READ ( 13 ) time_dvrp |
---|
590 | CASE ( 'time_restart' ) |
---|
591 | READ ( 13 ) time_restart |
---|
592 | CASE ( 'time_run_control' ) |
---|
593 | READ ( 13 ) time_run_control |
---|
594 | CASE ( 'time_since_reference_point' ) |
---|
595 | READ ( 13 ) time_since_reference_point |
---|
596 | CASE ( 'time_sort_particles' ) |
---|
597 | READ ( 13 ) time_sort_particles |
---|
598 | CASE ( 'timestep_scheme' ) |
---|
599 | READ ( 13 ) timestep_scheme |
---|
600 | CASE ( 'topography' ) |
---|
601 | READ ( 13 ) topography |
---|
602 | CASE ( 'topography_grid_convention' ) |
---|
603 | READ ( 13 ) topography_grid_convention |
---|
604 | CASE ( 'top_heatflux' ) |
---|
605 | READ ( 13 ) top_heatflux |
---|
606 | CASE ( 'top_momentumflux_u' ) |
---|
607 | READ ( 13 ) top_momentumflux_u |
---|
608 | CASE ( 'top_momentumflux_v' ) |
---|
609 | READ ( 13 ) top_momentumflux_v |
---|
610 | CASE ( 'top_salinityflux' ) |
---|
611 | READ ( 13 ) top_salinityflux |
---|
612 | CASE ( 'tsc' ) |
---|
613 | READ ( 13 ) tsc |
---|
614 | CASE ( 'turbulent_inflow' ) |
---|
615 | READ ( 13 ) turbulent_inflow |
---|
616 | CASE ( 'u_bulk' ) |
---|
617 | READ ( 13 ) u_bulk |
---|
618 | CASE ( 'u_init' ) |
---|
619 | READ ( 13 ) u_init |
---|
620 | CASE ( 'u_max' ) |
---|
621 | READ ( 13 ) u_max |
---|
622 | CASE ( 'u_max_ijk' ) |
---|
623 | READ ( 13 ) u_max_ijk |
---|
624 | CASE ( 'ug' ) |
---|
625 | READ ( 13 ) ug |
---|
626 | CASE ( 'ug_surface' ) |
---|
627 | READ ( 13 ) ug_surface |
---|
628 | CASE ( 'ug_vertical_gradient' ) |
---|
629 | READ ( 13 ) ug_vertical_gradient |
---|
630 | CASE ( 'ug_vertical_gradient_level' ) |
---|
631 | READ ( 13 ) ug_vertical_gradient_level |
---|
632 | CASE ( 'ug_vertical_gradient_level_ind' ) |
---|
633 | READ ( 13 ) ug_vertical_gradient_level_ind |
---|
634 | CASE ( 'ups_limit_e' ) |
---|
635 | READ ( 13 ) ups_limit_e |
---|
636 | CASE ( 'ups_limit_pt' ) |
---|
637 | READ ( 13 ) ups_limit_pt |
---|
638 | CASE ( 'ups_limit_u' ) |
---|
639 | READ ( 13 ) ups_limit_u |
---|
640 | CASE ( 'ups_limit_v' ) |
---|
641 | READ ( 13 ) ups_limit_v |
---|
642 | CASE ( 'ups_limit_w' ) |
---|
643 | READ ( 13 ) ups_limit_w |
---|
644 | CASE ( 'use_surface_fluxes' ) |
---|
645 | READ ( 13 ) use_surface_fluxes |
---|
646 | CASE ( 'use_top_fluxes' ) |
---|
647 | READ ( 13 ) use_top_fluxes |
---|
648 | CASE ( 'use_ug_for_galilei_tr' ) |
---|
649 | READ ( 13 ) use_ug_for_galilei_tr |
---|
650 | CASE ( 'use_upstream_for_tke' ) |
---|
651 | READ ( 13 ) use_upstream_for_tke |
---|
652 | CASE ( 'v_bulk' ) |
---|
653 | READ ( 13 ) v_bulk |
---|
654 | CASE ( 'v_init' ) |
---|
655 | READ ( 13 ) v_init |
---|
656 | CASE ( 'v_max' ) |
---|
657 | READ ( 13 ) v_max |
---|
658 | CASE ( 'v_max_ijk' ) |
---|
659 | READ ( 13 ) v_max_ijk |
---|
660 | CASE ( 'vg' ) |
---|
661 | READ ( 13 ) vg |
---|
662 | CASE ( 'vg_surface' ) |
---|
663 | READ ( 13 ) vg_surface |
---|
664 | CASE ( 'vg_vertical_gradient' ) |
---|
665 | READ ( 13 ) vg_vertical_gradient |
---|
666 | CASE ( 'vg_vertical_gradient_level' ) |
---|
667 | READ ( 13 ) vg_vertical_gradient_level |
---|
668 | CASE ( 'vg_vertical_gradient_level_ind' ) |
---|
669 | READ ( 13 ) vg_vertical_gradient_level_ind |
---|
670 | CASE ( 'volume_flow_area' ) |
---|
671 | READ ( 13 ) volume_flow_area |
---|
672 | CASE ( 'volume_flow_initial' ) |
---|
673 | READ ( 13 ) volume_flow_initial |
---|
674 | CASE ( 'wall_adjustment' ) |
---|
675 | READ ( 13 ) wall_adjustment |
---|
676 | CASE ( 'subs_vertical_gradient' ) |
---|
677 | READ ( 13 ) subs_vertical_gradient |
---|
678 | CASE ( 'subs_vertical_gradient_level' ) |
---|
679 | READ ( 13 ) subs_vertical_gradient_level |
---|
680 | CASE ( 'subs_vertical_gradient_level_i' ) |
---|
681 | READ ( 13 ) subs_vertical_gradient_level_i |
---|
682 | CASE ( 'w_max' ) |
---|
683 | READ ( 13 ) w_max |
---|
684 | CASE ( 'w_max_ijk' ) |
---|
685 | READ ( 13 ) w_max_ijk |
---|
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 |
---|