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