Changeset 2232 for palm/trunk/SOURCE/advec_u_pw.f90
- Timestamp:
- May 30, 2017 5:47:52 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/advec_u_pw.f90
r2101 r2232 20 20 ! Current revisions: 21 21 ! ----------------- 22 ! 22 ! topography representation via flags 23 23 ! 24 24 ! Former revisions: … … 96 96 97 97 USE indices, & 98 ONLY: nxlu, nxr, nyn, nys, nzb _u_inner, nzt98 ONLY: nxlu, nxr, nyn, nys, nzb, nzt, wall_flags_0 99 99 100 100 USE kinds … … 114 114 DO i = nxlu, nxr 115 115 DO j = nys, nyn 116 DO k = nzb _u_inner(j,i)+1, nzt116 DO k = nzb+1, nzt 117 117 tend(k,j,i) = tend(k,j,i) - 0.25_wp * ( & 118 118 ( u(k,j,i+1) * ( u(k,j,i+1) + u(k,j,i) - gu ) & … … 123 123 - u(k-1,j,i) * ( w(k-1,j,i) + w(k-1,j,i-1) ) ) & 124 124 * ddzw(k) & 125 ) 125 ) & 126 * MERGE( 1.0_wp, 0.0_wp, & 127 BTEST( wall_flags_0(k,j,i), 1 ) ) 126 128 ENDDO 127 129 ENDDO … … 148 150 149 151 USE indices, & 150 ONLY: nzb _u_inner, nzt152 ONLY: nzb, nzt, wall_flags_0 151 153 152 154 USE kinds … … 164 166 gu = 2.0_wp * u_gtrans 165 167 gv = 2.0_wp * v_gtrans 166 DO k = nzb _u_inner(j,i)+1, nzt168 DO k = nzb+1, nzt 167 169 tend(k,j,i) = tend(k,j,i) - 0.25_wp * ( & 168 170 ( u(k,j,i+1) * ( u(k,j,i+1) + u(k,j,i) - gu ) & … … 173 175 - u(k-1,j,i) * ( w(k-1,j,i) + w(k-1,j,i-1) ) ) & 174 176 * ddzw(k) & 175 ) 177 ) & 178 * MERGE( 1.0_wp, 0.0_wp, & 179 BTEST( wall_flags_0(k,j,i), 1 ) ) 176 180 ENDDO 177 181
Note: See TracChangeset
for help on using the changeset viewer.