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