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