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