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