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