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