Changeset 4346 for palm/trunk/SOURCE/coriolis.f90
- Timestamp:
- Dec 18, 2019 11:55:56 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/coriolis.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 ! … … 79 83 80 84 USE indices, & 81 ONLY: nxl, nxlu, nxr, nyn, nys, nysv, nzb, nzt, wall_flags_static_0 85 ONLY: nxl, nxlu, nxr, nyn, nys, nysv, nzb, nzt, & 86 wall_flags_total_0 82 87 83 88 USE kinds … … 107 112 CASE ( 1 ) 108 113 !$ACC PARALLEL LOOP COLLAPSE(3) PRIVATE(i, j, k, flag) & 109 !$ACC PRESENT(wall_flags_ static_0) &114 !$ACC PRESENT(wall_flags_total_0) & 110 115 !$ACC PRESENT(v, w, vg) & 111 116 !$ACC PRESENT(tend) … … 115 120 ! 116 121 !-- Predetermine flag to mask topography 117 flag = MERGE( 1.0_wp, 0.0_wp, BTEST( wall_flags_ static_0(k,j,i), 1 ) )122 flag = MERGE( 1.0_wp, 0.0_wp, BTEST( wall_flags_total_0(k,j,i), 1 ) ) 118 123 119 124 tend(k,j,i) = tend(k,j,i) + flag * & … … 132 137 CASE ( 2 ) 133 138 !$ACC PARALLEL LOOP COLLAPSE(3) PRIVATE(i, j, k, flag) & 134 !$ACC PRESENT(wall_flags_ static_0) &139 !$ACC PRESENT(wall_flags_total_0) & 135 140 !$ACC PRESENT(u, w, ug) & 136 141 !$ACC PRESENT(tend) … … 140 145 ! 141 146 !-- Predetermine flag to mask topography 142 flag = MERGE( 1.0_wp, 0.0_wp, BTEST( wall_flags_ static_0(k,j,i), 2 ) )147 flag = MERGE( 1.0_wp, 0.0_wp, BTEST( wall_flags_total_0(k,j,i), 2 ) ) 143 148 144 149 tend(k,j,i) = tend(k,j,i) - flag * & … … 157 162 CASE ( 3 ) 158 163 !$ACC PARALLEL LOOP COLLAPSE(3) PRIVATE(i, j, k, flag) & 159 !$ACC PRESENT(wall_flags_ static_0) &164 !$ACC PRESENT(wall_flags_total_0) & 160 165 !$ACC PRESENT(u, v) & 161 166 !$ACC PRESENT(tend) … … 165 170 ! 166 171 !-- Predetermine flag to mask topography 167 flag = MERGE( 1.0_wp, 0.0_wp, BTEST( wall_flags_ static_0(k,j,i), 3 ) )172 flag = MERGE( 1.0_wp, 0.0_wp, BTEST( wall_flags_total_0(k,j,i), 3 ) ) 168 173 169 174 tend(k,j,i) = tend(k,j,i) & … … 205 210 206 211 USE indices, & 207 ONLY: nzb, nzt, wall_flags_ static_0212 ONLY: nzb, nzt, wall_flags_total_0 208 213 209 214 USE kinds … … 235 240 ! 236 241 !-- Predetermine flag to mask topography 237 flag = MERGE( 1.0_wp, 0.0_wp, BTEST( wall_flags_ static_0(k,j,i), 1 ) )242 flag = MERGE( 1.0_wp, 0.0_wp, BTEST( wall_flags_total_0(k,j,i), 1 ) ) 238 243 239 244 tend(k,j,i) = tend(k,j,i) + flag * & … … 252 257 ! 253 258 !-- Predetermine flag to mask topography 254 flag = MERGE( 1.0_wp, 0.0_wp, BTEST( wall_flags_ static_0(k,j,i), 2 ) )259 flag = MERGE( 1.0_wp, 0.0_wp, BTEST( wall_flags_total_0(k,j,i), 2 ) ) 255 260 256 261 tend(k,j,i) = tend(k,j,i) - flag * & … … 269 274 ! 270 275 !-- Predetermine flag to mask topography 271 flag = MERGE( 1.0_wp, 0.0_wp, BTEST( wall_flags_ static_0(k,j,i), 3 ) )276 flag = MERGE( 1.0_wp, 0.0_wp, BTEST( wall_flags_total_0(k,j,i), 3 ) ) 272 277 273 278 tend(k,j,i) = tend(k,j,i) &
Note: See TracChangeset
for help on using the changeset viewer.