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