- Timestamp:
- 2019-08-22T11:49:08+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/UKMO/dev_r10037_GPU/src/OCE/TRA/traadv.F90
r10843 r11467 83 83 !! ** Method : - Update (ua,va) with the advection term following nadv 84 84 !!---------------------------------------------------------------------- 85 USE scoce, ONLY : zun => scr1, zvn => scr2, zwn => scr3, & ! 3D workspace 86 ztrdt => scr4, ztrds => scr5 85 87 INTEGER, INTENT(in) :: kt ! ocean time-step index 86 88 ! 87 89 INTEGER :: jk ! dummy loop index 88 REAL(wp), DIMENSION(jpi,jpj,jpk) :: zun, zvn, zwn ! 3D workspace89 REAL(wp), DIMENSION(:,:,:), ALLOCATABLE :: ztrdt, ztrds90 90 !!---------------------------------------------------------------------- 91 91 ! … … 138 138 ! 139 139 IF( l_trdtra ) THEN !* Save ta and sa trends 140 ALLOCATE( ztrdt(jpi,jpj,jpk), ztrds(jpi,jpj,jpk) )141 140 ztrdt(:,:,:) = tsa(:,:,:,jp_tem) 142 141 ztrds(:,:,:) = tsa(:,:,:,jp_sal) … … 165 164 CALL trd_tra( kt, 'TRA', jp_tem, jptra_totad, ztrdt ) 166 165 CALL trd_tra( kt, 'TRA', jp_sal, jptra_totad, ztrds ) 167 DEALLOCATE( ztrdt, ztrds )168 166 ENDIF 169 167 ! ! print mean trends (used for debugging)
Note: See TracChangeset
for help on using the changeset viewer.