Changeset 2232 for palm/trunk/SOURCE/advec_s_pw.f90
- Timestamp:
- May 30, 2017 5:47:52 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/advec_s_pw.f90
r2101 r2232 20 20 ! Current revisions: 21 21 ! ----------------- 22 ! 22 ! topography representation via flags 23 23 ! 24 24 ! Former revisions: … … 104 104 105 105 USE indices, & 106 ONLY: nxl, nxlg, nxr, nxrg, nyn, nyng, nys, nysg, nzb, nzb_s_inner,&107 nzt 106 ONLY: nxl, nxlg, nxr, nxrg, nyn, nyng, nys, nysg, nzb, & 107 nzt, wall_flags_0 108 108 109 109 USE kinds … … 125 125 DO i = nxl, nxr 126 126 DO j = nys, nyn 127 DO k = nzb _s_inner(j,i)+1, nzt128 tend(k,j,i) = tend(k,j,i) &129 127 DO k = nzb+1, nzt 128 tend(k,j,i) = tend(k,j,i) + & 129 ( -0.5_wp * ( ( u(k,j,i+1) - u_gtrans ) * ( sk(k,j,i+1) - sk(k,j,i) ) & 130 130 - ( u(k,j,i) - u_gtrans ) * ( sk(k,j,i-1) - sk(k,j,i) ) & 131 131 ) * ddx & … … 135 135 - ( w(k,j,i) * ( sk(k+1,j,i) - sk(k,j,i) ) & 136 136 - w(k-1,j,i) * ( sk(k-1,j,i) - sk(k,j,i) ) & 137 ) * dd2zu(k) 137 ) * dd2zu(k) & 138 ) * MERGE( 1.0_wp, 0.0_wp, BTEST( wall_flags_0(k,j,i), 0 ) ) 138 139 ENDDO 139 140 ENDDO … … 160 161 161 162 USE indices, & 162 ONLY: nxlg, nxrg, nyng, nysg, nzb, nz b_s_inner, nzt163 ONLY: nxlg, nxrg, nyng, nysg, nzb, nzt, wall_flags_0 163 164 164 165 USE kinds … … 178 179 179 180 180 DO k = nzb _s_inner(j,i)+1, nzt181 tend(k,j,i) = tend(k,j,i) &182 181 DO k = nzb+1, nzt 182 tend(k,j,i) = tend(k,j,i) + & 183 ( -0.5_wp * ( ( u(k,j,i+1) - u_gtrans ) * ( sk(k,j,i+1) - sk(k,j,i) ) & 183 184 - ( u(k,j,i) - u_gtrans ) * ( sk(k,j,i-1) - sk(k,j,i) ) & 184 185 ) * ddx & … … 188 189 - ( w(k,j,i) * ( sk(k+1,j,i) - sk(k,j,i) ) & 189 190 - w(k-1,j,i) * ( sk(k-1,j,i) - sk(k,j,i) ) & 190 ) * dd2zu(k) 191 ) * dd2zu(k) & 192 ) * MERGE( 1.0_wp, 0.0_wp, BTEST( wall_flags_0(k,j,i), 0 ) ) 191 193 ENDDO 192 194
Note: See TracChangeset
for help on using the changeset viewer.