- 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/traqsr.F90
r13518 r13551 115 115 REAL(wp) :: zCb, zCmax, zpsi, zpsimax, zrdpsi, zCze 116 116 REAL(wp) :: zlogc, zlogze, zlogCtot, zlogCze 117 ! TEMP: These changes not necessary after trd_tra is tiled118 REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: ztrdt119 117 REAL(wp), ALLOCATABLE, DIMENSION(:,:) :: ze0, ze1, ze2, ze3 120 118 REAL(wp), ALLOCATABLE, DIMENSION(:,:,:) :: ztrdt, zetot, ztmp3d … … 132 130 ! 133 131 IF( l_trdtra ) THEN ! trends diagnostic: save the input temperature trend 134 IF( ntile == 0 .OR. ntile == 1 ) THEN ! Do only on the first tile 135 ! TEMP: This can be ST_2D(nn_hls) after trd_tra is tiled 136 ALLOCATE( ztrdt(jpi,jpj,jpk) ) 137 ENDIF 138 139 DO_3D( 0, 0, 0, 0, 1, jpk ) 140 ztrdt(ji,jj,jk) = pts(ji,jj,jk,jp_tem,Krhs) 141 END_3D 132 ALLOCATE( ztrdt(jpi,jpj,jpk) ) 133 ztrdt(:,:,:) = pts(:,:,:,jp_tem,Krhs) 142 134 ENDIF 143 135 ! … … 236 228 ! Convert chlorophyll value to attenuation coefficient look-up table index 237 229 zlui = 41 + 20.*LOG10(zchl) + 1.e-15 238 DO _3D( 1, 1, 1, 1, 1, nksr + 1 )239 ztmp3d( ji,jj,jk) = zlui240 END _3D230 DO jk = 1, nksr + 1 231 ztmp3d(:,:,jk) = zlui 232 END DO 241 233 ENDIF 242 234 ! … … 325 317 ENDIF 326 318 ! 327 ! TEMP: These changes not necessary after trd_tra is tiled328 319 IF( l_trdtra ) THEN ! qsr tracers trends saved for diagnostics 329 DO_3D( 0, 0, 0, 0, 1, jpk ) 330 ztrdt(ji,jj,jk) = pts(ji,jj,jk,jp_tem,Krhs) - ztrdt(ji,jj,jk) 331 END_3D 332 333 IF( ntile == 0 .OR. ntile == nijtile ) THEN ! Do only for the full domain 334 IF( ln_tile ) CALL dom_tile( ntsi, ntsj, ntei, ntej, ktile = 0 ) ! Use full domain 335 336 ! TODO: TO BE TILED- trd_tra 337 CALL trd_tra( kt, Kmm, Krhs, 'TRA', jp_tem, jptra_qsr, ztrdt ) 338 DEALLOCATE( ztrdt ) 339 340 IF( ln_tile ) CALL dom_tile( ntsi, ntsj, ntei, ntej, ktile = nijtile ) ! Revert to tile domain 341 ENDIF 320 ztrdt(:,:,:) = pts(:,:,:,jp_tem,Krhs) - ztrdt(:,:,:) 321 CALL trd_tra( kt, Kmm, Krhs, 'TRA', jp_tem, jptra_qsr, ztrdt ) 322 DEALLOCATE( ztrdt ) 342 323 ENDIF 343 324 ! ! print mean trends (used for debugging)
Note: See TracChangeset
for help on using the changeset viewer.