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