Changeset 4346 for palm/trunk/SOURCE/vdi_internal_controls.f90
- Timestamp:
- Dec 18, 2019 11:55:56 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/vdi_internal_controls.f90
r4329 r4346 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Introduction of wall_flags_total_0, which currently sets bits based on static 28 ! topography information used in wall_flags_static_0 29 ! 30 ! 4329 2019-12-10 15:46:36Z motisi 27 31 ! Renamed wall_flags_0 to wall_flags_static_0 28 32 ! … … 83 87 nzb, & 84 88 nzt, & 85 wall_flags_ static_089 wall_flags_total_0 86 90 87 91 USE kinds … … 205 209 ! 206 210 !-- If the grid point lies in a building, a new point is defined 207 DO WHILE ( .NOT. BTEST( wall_flags_ static_0(cgp_k,cgp_j,cgp_i), 1 ) )211 DO WHILE ( .NOT. BTEST( wall_flags_total_0(cgp_k,cgp_j,cgp_i), 1 ) ) 208 212 CALL RANDOM_NUMBER( random ) 209 213 cgp_k = cgp_k + FLOOR( ( nzt - cgp_k ) * random ) !< Random number upon cgp_k … … 454 458 DO j = nys, nyn 455 459 DO k = nzb+1, nzt+1 456 flag = MERGE( 1.0_wp, 0.0_wp, BTEST( wall_flags_ static_0(k,j,i), quant_type ) )460 flag = MERGE( 1.0_wp, 0.0_wp, BTEST( wall_flags_total_0(k,j,i), quant_type ) ) 457 461 quant_av_k_l(k) = quant_av_k_l(k) + quant(k,j,i) * flag 458 462 count_2d_l(k) = count_2d_l(k) + INT( flag, KIND=iwp ) … … 482 486 + ( quant(k,j,i) - quant_av_k(k) )**2 & 483 487 * MERGE( 1.0_wp, 0.0_wp, & 484 BTEST( wall_flags_ static_0(k,j,i), quant_type ) )488 BTEST( wall_flags_total_0(k,j,i), quant_type ) ) 485 489 ENDDO 486 490 ENDDO … … 722 726 DO j = nys, nyn 723 727 DO k = nzb, nzt+1 724 flag = MERGE( 1.0_wp, 0.0_wp, BTEST( wall_flags_ static_0(k,j,i), quant_type ) )728 flag = MERGE( 1.0_wp, 0.0_wp, BTEST( wall_flags_total_0(k,j,i), quant_type ) ) 725 729 quant_av_l = quant_av_l + quant(k,j,i) * flag 726 730 average_count_l = average_count_l + INT( flag, KIND=iwp ) … … 774 778 + u(k,j,i) * dzw(k) * dy & 775 779 * MERGE( 1.0_wp, 0.0_wp, & 776 BTEST( wall_flags_static_0(k,j,i), 1 ) &780 BTEST( wall_flags_total_0(k,j,i), 1 ) & 777 781 ) 778 782 ENDDO … … 788 792 - u(k,j,i) * dzw(k) * dy & 789 793 * MERGE( 1.0_wp, 0.0_wp, & 790 BTEST( wall_flags_static_0(k,j,i), 1 ) &794 BTEST( wall_flags_total_0(k,j,i), 1 ) & 791 795 ) 792 796 ENDDO … … 803 807 + v(k,j,i) * dzw(k) * dx & 804 808 * MERGE( 1.0_wp, 0.0_wp, & 805 BTEST( wall_flags_static_0(k,j,i), 2 ) &809 BTEST( wall_flags_total_0(k,j,i), 2 ) & 806 810 ) 807 811 ENDDO … … 817 821 - v(k,j,i) * dzw(k) * dx & 818 822 * MERGE( 1.0_wp, 0.0_wp, & 819 BTEST( wall_flags_static_0(k,j,i), 2 ) &823 BTEST( wall_flags_total_0(k,j,i), 2 ) & 820 824 ) 821 825 ENDDO
Note: See TracChangeset
for help on using the changeset viewer.