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