Changeset 14215 for NEMO/trunk/src/OCE/TRA/traadv_qck.F90
- Timestamp:
- 2020-12-18T14:49:22+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/trunk/src/OCE/TRA/traadv_qck.F90
r14189 r14215 145 145 ! 146 146 !!gm why not using a SHIFT instruction... 147 DO_3D( 0, 0, nn_hls-1, nn_hls-1, 1, jpkm1 ) !--- Computation of the ustream and downstream value of the tracer and the mask147 DO_3D( nn_hls-1, nn_hls-1, 0, 0, 1, jpkm1 ) !--- Computation of the ustream and downstream value of the tracer and the mask 148 148 zfc(ji,jj,jk) = pt(ji-1,jj,jk,jn,Kbb) ! Upstream in the x-direction for the tracer 149 149 zfd(ji,jj,jk) = pt(ji+1,jj,jk,jn,Kbb) ! Downstream in the x-direction for the tracer … … 154 154 ! Horizontal advective fluxes 155 155 ! --------------------------- 156 DO_3D( 0, 0, nn_hls-1, 0, 1, jpkm1 )156 DO_3D( nn_hls-1, 0, 0, 0, 1, jpkm1 ) 157 157 zdir = 0.5 + SIGN( 0.5_wp, pU(ji,jj,jk) ) ! if pU > 0 : zdir = 1 otherwise zdir = 0 158 158 zfu(ji,jj,jk) = zdir * zfc(ji,jj,jk ) + ( 1. - zdir ) * zfd(ji+1,jj,jk) ! FU in the x-direction for T 159 159 END_3D 160 160 ! 161 DO_3D( 0, 0, nn_hls-1, 0, 1, jpkm1 )161 DO_3D( nn_hls-1, 0, 0, 0, 1, jpkm1 ) 162 162 zdir = 0.5 + SIGN( 0.5_wp, pU(ji,jj,jk) ) ! if pU > 0 : zdir = 1 otherwise zdir = 0 163 163 zdx = ( zdir * e1t(ji,jj) + ( 1. - zdir ) * e1t(ji+1,jj) ) * e2u(ji,jj) * e3u(ji,jj,jk,Kmm) … … 173 173 ! 174 174 ! Mask at the T-points in the x-direction (mask=0 or mask=1) 175 DO_3D( 0, 0, nn_hls-1, nn_hls-1, 1, jpkm1 )175 DO_3D( nn_hls-1, nn_hls-1, 0, 0, 1, jpkm1 ) 176 176 zfu(ji,jj,jk) = tmask(ji-1,jj,jk) + tmask(ji,jj,jk) + tmask(ji+1,jj,jk) - 2. 177 177 END_3D … … 180 180 ! 181 181 ! Tracer flux on the x-direction 182 DO_3D( 0, 0, 1, 0, 1, jpkm1 )182 DO_3D( 1, 0, 0, 0, 1, jpkm1 ) 183 183 zdir = 0.5 + SIGN( 0.5_wp, pU(ji,jj,jk) ) ! if pU > 0 : zdir = 1 otherwise zdir = 0 184 184 !--- If the second ustream point is a land point … … 232 232 ! 233 233 !--- Computation of the ustream and downstream value of the tracer and the mask 234 DO_2D( nn_hls-1, nn_hls-1, 0, 0)234 DO_2D( 0, 0, nn_hls-1, nn_hls-1 ) 235 235 ! Upstream in the x-direction for the tracer 236 236 zfc(ji,jj,jk) = pt(ji,jj-1,jk,jn,Kbb) … … 245 245 ! --------------------------- 246 246 ! 247 DO_3D( nn_hls-1, 0, 0, 0, 1, jpkm1 )247 DO_3D( 0, 0, nn_hls-1, 0, 1, jpkm1 ) 248 248 zdir = 0.5 + SIGN( 0.5_wp, pV(ji,jj,jk) ) ! if pU > 0 : zdir = 1 otherwise zdir = 0 249 249 zfu(ji,jj,jk) = zdir * zfc(ji,jj,jk ) + ( 1. - zdir ) * zfd(ji,jj+1,jk) ! FU in the x-direction for T 250 250 END_3D 251 251 ! 252 DO_3D( nn_hls-1, 0, 0, 0, 1, jpkm1 )252 DO_3D( 0, 0, nn_hls-1, 0, 1, jpkm1 ) 253 253 zdir = 0.5 + SIGN( 0.5_wp, pV(ji,jj,jk) ) ! if pU > 0 : zdir = 1 otherwise zdir = 0 254 254 zdx = ( zdir * e2t(ji,jj) + ( 1. - zdir ) * e2t(ji,jj+1) ) * e1v(ji,jj) * e3v(ji,jj,jk,Kmm) … … 265 265 ! 266 266 ! Mask at the T-points in the x-direction (mask=0 or mask=1) 267 DO_3D( nn_hls-1, nn_hls-1, 0, 0, 1, jpkm1 )267 DO_3D( 0, 0, nn_hls-1, nn_hls-1, 1, jpkm1 ) 268 268 zfu(ji,jj,jk) = tmask(ji,jj-1,jk) + tmask(ji,jj,jk) + tmask(ji,jj+1,jk) - 2. 269 269 END_3D … … 271 271 ! 272 272 ! Tracer flux on the x-direction 273 DO_3D( 1, 0, 0, 0, 1, jpkm1 )273 DO_3D( 0, 0, 1, 0, 1, jpkm1 ) 274 274 zdir = 0.5 + SIGN( 0.5_wp, pV(ji,jj,jk) ) ! if pU > 0 : zdir = 1 otherwise zdir = 0 275 275 !--- If the second ustream point is a land point
Note: See TracChangeset
for help on using the changeset viewer.