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