Changeset 4745 for palm/trunk/SOURCE
- Timestamp:
- Oct 15, 2020 4:37:13 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/pmc_interface_mod.f90
r4734 r4745 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Adjustement of face-area calculation to 3D-topographies 28 ! 29 ! 4734 2020-10-09 13:21:06Z suehring 27 30 ! Bugfix for RANS-RANS nesting and minor revision in the TKE treatment (only logical control) 28 31 ! … … 2332 2335 INTEGER(iwp) :: j !< Running index in the y-direction 2333 2336 INTEGER(iwp) :: k !< Running index in the z-direction 2334 INTEGER(iwp) :: k_wall !< Local topography top k-index2335 2337 INTEGER(iwp) :: n !< Running index over boundary faces 2336 2338 … … 2346 2348 DO j = nys, nyn 2347 2349 sub_sum = 0.0_wp 2348 k_wall = topo_top_ind(j,i,1) 2349 DO k = k_wall + 1, nzt 2350 sub_sum = sub_sum + dzw(k) 2350 DO k = nzb + 1, nzt 2351 sub_sum = sub_sum + dzw(k) * MERGE( 1.0_wp, 0.0_wp, BTEST(wall_flags_total_0(k,j,i), 1 ) ) 2351 2352 ENDDO 2352 2353 face_area_local = face_area_local + dy * sub_sum … … 2368 2369 DO j = nys, nyn 2369 2370 sub_sum = 0.0_wp 2370 k_wall = topo_top_ind(j,i,1) 2371 DO k = k_wall + 1, nzt 2372 sub_sum = sub_sum + dzw(k) 2371 DO k = nzb + 1, nzt 2372 sub_sum = sub_sum + dzw(k) * MERGE( 1.0_wp, 0.0_wp, BTEST(wall_flags_total_0(k,j,i), 1 ) ) 2373 2373 ENDDO 2374 2374 face_area_local = face_area_local + dy * sub_sum … … 2390 2390 DO i = nxl, nxr 2391 2391 sub_sum = 0.0_wp 2392 k_wall = topo_top_ind(j,i,2) 2393 DO k = k_wall + 1, nzt 2394 sub_sum = sub_sum + dzw(k) 2392 DO k = nzb + 1, nzt 2393 sub_sum = sub_sum + dzw(k) * MERGE( 1.0_wp, 0.0_wp, BTEST(wall_flags_total_0(k,j,i), 2 ) ) 2395 2394 ENDDO 2396 2395 face_area_local = face_area_local + dx * sub_sum … … 2412 2411 DO i = nxl, nxr 2413 2412 sub_sum = 0.0_wp 2414 k_wall = topo_top_ind(j,i,2) 2415 DO k = k_wall + 1, nzt 2416 sub_sum = sub_sum + dzw(k) 2413 DO k = nzb + 1, nzt 2414 sub_sum = sub_sum + dzw(k) * MERGE( 1.0_wp, 0.0_wp, BTEST(wall_flags_total_0(k,j,i), 2 ) ) 2417 2415 ENDDO 2418 2416 face_area_local = face_area_local + dx * sub_sum
Note: See TracChangeset
for help on using the changeset viewer.