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