- Timestamp:
- 2020-10-01T12:04:12+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2020/dev_r13383_HPC-02_Daley_Tiling/src/OCE/TRA/traadv_mus.F90
r13516 r13551 19 19 USE trc_oce ! share passive tracers/Ocean variables 20 20 USE dom_oce ! ocean space and time domain 21 ! TEMP: This change not necessary after trd_tra is tiled22 USE domain, ONLY : dom_tile23 21 USE trd_oce ! trends: ocean variables 24 22 USE trdtra ! tracers trends manager … … 83 81 LOGICAL , INTENT(in ) :: ld_msc_ups ! use upstream scheme within muscl 84 82 REAL(wp) , INTENT(in ) :: p2dt ! tracer time-step 85 ! TEMP: This can be ST_2D(nn_hls) after trd_tra is tiled83 ! TEMP: This can be ST_2D(nn_hls) if using XIOS (subdomain support) 86 84 REAL(wp), DIMENSION(jpi,jpj,jpk ), INTENT(in ) :: pU, pV, pW ! 3 ocean volume flux components 87 85 REAL(wp), DIMENSION(jpi,jpj,jpk,kjpt,jpt), INTENT(inout) :: pt ! tracers and RHS of tracer equation 88 86 ! 89 ! TEMP: This change not necessary after trd_tra is tiled90 INTEGER :: itile91 87 INTEGER :: ji, jj, jk, jn ! dummy loop indices 92 88 INTEGER :: ierr ! local integer … … 95 91 REAL(wp), DIMENSION(ST_2D(nn_hls),jpk) :: zwx, zslpx ! 3D workspace 96 92 REAL(wp), DIMENSION(ST_2D(nn_hls),jpk) :: zwy, zslpy ! - - 97 ! TEMP: This change not necessary after trd_tra is tiled98 REAL(wp), DIMENSION(:,:,:), SAVE, ALLOCATABLE :: ztrdx, ztrdy, ztrdz99 93 !!---------------------------------------------------------------------- 100 ! TEMP: This change not necessary after trd_tra is tiled101 itile = ntile102 94 ! 103 95 IF( ntile == 0 .OR. ntile == 1 ) THEN ! Do only on the first tile … … 134 126 IF( cdtype == 'TRA' .AND. ( iom_use("uadv_heattr") .OR. iom_use("vadv_heattr") .OR. & 135 127 & iom_use("uadv_salttr") .OR. iom_use("vadv_salttr") ) ) l_hst = .TRUE. 136 137 ! TEMP: This can be ST_2D(nn_hls) after trd_tra is tiled138 IF( kt == kit000 .AND. l_trd ) THEN139 ALLOCATE( ztrdx(jpi,jpj,jpk), ztrdy(jpi,jpj,jpk), ztrdz(jpi,jpj,jpk) )140 ENDIF141 128 ENDIF 142 129 ! … … 197 184 END_3D 198 185 ! ! trend diagnostics 199 ! TEMP: These changes not necessary after trd_tra is tiled200 186 IF( l_trd ) THEN 201 DO_3D( 1, 0, 1, 0, 1, jpk ) 202 ztrdx(ji,jj,jk) = zwx(ji,jj,jk) 203 ztrdy(ji,jj,jk) = zwy(ji,jj,jk) 204 END_3D 205 206 IF( ntile == 0 .OR. ntile == nijtile ) THEN ! Do only for the full domain 207 IF( ln_tile ) CALL dom_tile( ntsi, ntsj, ntei, ntej, ktile = 0 ) ! Use full domain 208 209 ! TODO: TO BE TILED- trd_tra 210 CALL trd_tra( kt, Kmm, Krhs, cdtype, jn, jptra_xad, ztrdx, pU, pt(:,:,:,jn,Kbb) ) 211 CALL trd_tra( kt, Kmm, Krhs, cdtype, jn, jptra_yad, ztrdy, pV, pt(:,:,:,jn,Kbb) ) 212 213 IF( ln_tile ) CALL dom_tile( ntsi, ntsj, ntei, ntej, ktile = itile ) ! Revert to tile domain 214 ENDIF 187 CALL trd_tra( kt, Kmm, Krhs, cdtype, jn, jptra_xad, zwx, pU, pt(:,:,:,jn,Kbb) ) 188 CALL trd_tra( kt, Kmm, Krhs, cdtype, jn, jptra_yad, zwy, pV, pt(:,:,:,jn,Kbb) ) 215 189 END IF 216 190 ! ! "Poleward" heat and salt transports … … 264 238 END_3D 265 239 ! ! send trends for diagnostic 266 ! TEMP: These changes not necessary after trd_tra is tiled 267 IF( l_trd ) THEN 268 DO_3D( 0, 0, 0, 0, 1, jpk ) 269 ztrdz(ji,jj,jk) = zwx(ji,jj,jk) 270 END_3D 271 272 IF( ntile == 0 .OR. ntile == nijtile ) THEN ! Do only for the full domain 273 IF( ln_tile ) CALL dom_tile( ntsi, ntsj, ntei, ntej, ktile = 0 ) ! Use full domain 274 275 ! TODO: TO BE TILED- trd_tra 276 CALL trd_tra( kt, Kmm, Krhs, cdtype, jn, jptra_zad, ztrdz, pW, pt(:,:,:,jn,Kbb) ) 277 278 IF( ln_tile ) CALL dom_tile( ntsi, ntsj, ntei, ntej, ktile = itile ) ! Revert to tile domain 279 ENDIF 280 ENDIF 240 IF( l_trd ) CALL trd_tra( kt, Kmm, Krhs, cdtype, jn, jptra_zad, zwx, pW, pt(:,:,:,jn,Kbb) ) 281 241 ! 282 242 END DO ! end of tracer loop
Note: See TracChangeset
for help on using the changeset viewer.