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