- 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/tradmp.F90
r13518 r13551 24 24 USE oce ! ocean: variables 25 25 USE dom_oce ! ocean: domain variables 26 ! TEMP: This change not necessary after trd_tra is tiled27 USE domain, ONLY : dom_tile28 26 USE c1d ! 1D vertical configuration 29 27 USE trd_oce ! trends: ocean variables … … 98 96 INTEGER :: ji, jj, jk, jn ! dummy loop indices 99 97 REAL(wp), DIMENSION(ST_2D(nn_hls),jpk,jpts) :: zts_dta 100 ! TEMP: This change not necessary after trd_tra is tiled 101 REAL(wp), DIMENSION(:,:,:,:), ALLOCATABLE, SAVE :: ztrdts 98 REAL(wp), DIMENSION(:,:,:,:), ALLOCATABLE :: ztrdts 102 99 !!---------------------------------------------------------------------- 103 100 ! … … 105 102 ! 106 103 IF( l_trdtra ) THEN !* Save ta and sa trends 107 IF( ntile == 0 .OR. ntile == 1 ) THEN ! Do only on the first tile 108 ! TEMP: This can be ST_2D(nn_hls) after trd_tra is tiled 109 ALLOCATE( ztrdts(jpi,jpj,jpk,jpts) ) 110 ENDIF 111 112 DO_3D( 0, 0, 0, 0, 1, jpk ) 113 ztrdts(ji,jj,jk,:) = pts(ji,jj,jk,:,Krhs) 114 END_3D 104 ALLOCATE( ztrdts(jpi,jpj,jpk,jpts) ) 105 ztrdts(:,:,:,:) = pts(:,:,:,:,Krhs) 115 106 ENDIF 116 107 ! !== input T-S data at kt ==! … … 149 140 END SELECT 150 141 ! 151 ! TEMP: These changes not necessary after trd_tra is tiled152 142 IF( l_trdtra ) THEN ! trend diagnostic 153 DO_3D( 0, 0, 0, 0, 1, jpk ) 154 ztrdts(ji,jj,jk,:) = pts(ji,jj,jk,:,Krhs) - ztrdts(ji,jj,jk,:) 155 END_3D 156 157 IF( ntile == 0 .OR. ntile == nijtile ) THEN ! Do only for the full domain 158 IF( ln_tile ) CALL dom_tile( ntsi, ntsj, ntei, ntej, ktile = 0 ) ! Use full domain 159 160 ! TODO: TO BE TILED- trd_tra 161 CALL trd_tra( kt, Kmm, Krhs, 'TRA', jp_tem, jptra_dmp, ztrdts(:,:,:,jp_tem) ) 162 CALL trd_tra( kt, Kmm, Krhs, 'TRA', jp_sal, jptra_dmp, ztrdts(:,:,:,jp_sal) ) 163 DEALLOCATE( ztrdts ) 164 165 IF( ln_tile ) CALL dom_tile( ntsi, ntsj, ntei, ntej, ktile = nijtile ) ! Revert to tile domain 166 ENDIF 143 ztrdts(:,:,:,:) = pts(:,:,:,:,Krhs) - ztrdts(:,:,:,:) 144 CALL trd_tra( kt, Kmm, Krhs, 'TRA', jp_tem, jptra_dmp, ztrdts(:,:,:,jp_tem) ) 145 CALL trd_tra( kt, Kmm, Krhs, 'TRA', jp_sal, jptra_dmp, ztrdts(:,:,:,jp_sal) ) 146 DEALLOCATE( ztrdts ) 167 147 ENDIF 168 148 ! ! Control print
Note: See TracChangeset
for help on using the changeset viewer.