Changeset 3182 for palm/trunk/SOURCE/pres.f90
- Timestamp:
- Jul 27, 2018 1:36:03 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/pres.f90
r3016 r3182 20 20 ! Current revisions: 21 21 ! ------------------ 22 ! 22 ! Rename variables for boundary flags and nesting 23 23 ! 24 24 ! Former revisions: … … 161 161 162 162 USE control_parameters, & 163 ONLY: bc_lr_cyc, bc_ns_cyc, conserve_volume_flow, coupling_mode, & 163 ONLY: bc_lr_cyc, bc_ns_cyc, bc_radiation_l, bc_radiation_n, & 164 bc_radiation_r, bc_radiation_s, child_domain, & 165 conserve_volume_flow, coupling_mode, & 164 166 dt_3d, gathered_size, ibc_p_b, ibc_p_t, & 165 167 intermediate_timestep_count, intermediate_timestep_count_max, & 166 mg_switch_to_pe0_level, nest_domain, outflow_l, outflow_n, & 167 outflow_r, outflow_s, psolver, subdomain_size, topography, & 168 volume_flow, volume_flow_area, volume_flow_initial 168 mg_switch_to_pe0_level, psolver, subdomain_size, & 169 topography, volume_flow, volume_flow_area, volume_flow_initial 169 170 170 171 USE cpulog, & … … 219 220 REAL(wp), DIMENSION(1:nzt) :: w_l_l !< 220 221 221 LOGICAL :: nest_domain_nvn !<222 LOGICAL :: child_domain_nvn !< 222 223 223 224 … … 280 281 ! 281 282 !-- Left/right 282 IF ( conserve_volume_flow .AND. ( outflow_l .OR. outflow_r ) ) THEN 283 IF ( conserve_volume_flow .AND. ( bc_radiation_l .OR. & 284 bc_radiation_r ) ) THEN 283 285 284 286 volume_flow(1) = 0.0_wp 285 287 volume_flow_l(1) = 0.0_wp 286 288 287 IF ( outflow_l ) THEN289 IF ( bc_radiation_l ) THEN 288 290 i = 0 289 ELSEIF ( outflow_r ) THEN291 ELSEIF ( bc_radiation_r ) THEN 290 292 i = nx+1 291 293 ENDIF … … 325 327 ! 326 328 !-- South/north 327 IF ( conserve_volume_flow .AND. ( outflow_n .OR. outflow_s ) ) THEN329 IF ( conserve_volume_flow .AND. ( bc_radiation_n .OR. bc_radiation_s ) ) THEN 328 330 329 331 volume_flow(2) = 0.0_wp 330 332 volume_flow_l(2) = 0.0_wp 331 333 332 IF ( outflow_s ) THEN334 IF ( bc_radiation_s ) THEN 333 335 j = 0 334 ELSEIF ( outflow_n ) THEN336 ELSEIF ( bc_radiation_n ) THEN 335 337 j = ny+1 336 338 ENDIF … … 372 374 !-- used both at bottom and top boundary, and if not a nested domain in a 373 375 !-- normal nesting run. In case of vertical nesting, this must be done. 374 !-- Therefore an auxiliary logical variable nest_domain_nvn is used here, and376 !-- Therefore an auxiliary logical variable child_domain_nvn is used here, and 375 377 !-- nvn stands for non-vertical nesting. 376 378 !-- This cannot be done before the first initial time step because ngp_2dh_outer 377 379 !-- is not yet known then. 378 nest_domain_nvn = nest_domain379 IF ( nest_domain .AND. nesting_mode == 'vertical' ) THEN380 nest_domain_nvn = .FALSE.380 child_domain_nvn = child_domain 381 IF ( child_domain .AND. nesting_mode == 'vertical' ) THEN 382 child_domain_nvn = .FALSE. 381 383 ENDIF 382 384 383 385 IF ( ibc_p_b == 1 .AND. ibc_p_t == 1 .AND. & 384 .NOT. nest_domain_nvn .AND. intermediate_timestep_count /= 0 )&386 .NOT. child_domain_nvn .AND. intermediate_timestep_count /= 0 ) & 385 387 THEN 386 388 w_l = 0.0_wp; w_l_l = 0.0_wp … … 758 760 !-- height nzt after above modifications. Hint: w level nzt+1 does not impact 759 761 !-- results. 760 IF ( nest_domain .OR. coupling_mode == 'vnested_fine') THEN762 IF ( child_domain .OR. coupling_mode == 'vnested_fine' ) THEN 761 763 w(nzt+1,:,:) = w(nzt,:,:) 762 764 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.