New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 13551 for NEMO/branches/2020/dev_r13383_HPC-02_Daley_Tiling/src/OCE/TRA/traqsr.F90 – NEMO

Ignore:
Timestamp:
2020-10-01T12:04:12+02:00 (4 years ago)
Author:
hadcv
Message:

#2365: Replace trd_tra workarounds with ctl_warn if using tiling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2020/dev_r13383_HPC-02_Daley_Tiling/src/OCE/TRA/traqsr.F90

    r13518 r13551  
    115115      REAL(wp) ::   zCb, zCmax, zpsi, zpsimax, zrdpsi, zCze 
    116116      REAL(wp) ::   zlogc, zlogze, zlogCtot, zlogCze 
    117       ! TEMP: These changes not necessary after trd_tra is tiled 
    118       REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) ::   ztrdt 
    119117      REAL(wp), ALLOCATABLE, DIMENSION(:,:)   :: ze0, ze1, ze2, ze3 
    120118      REAL(wp), ALLOCATABLE, DIMENSION(:,:,:) :: ztrdt, zetot, ztmp3d 
     
    132130      ! 
    133131      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) 
    142134      ENDIF 
    143135      ! 
     
    236228            ! Convert chlorophyll value to attenuation coefficient look-up table index 
    237229            zlui = 41 + 20.*LOG10(zchl) + 1.e-15 
    238             DO_3D( 1, 1, 1, 1, 1, nksr + 1 ) 
    239                ztmp3d(ji,jj,jk) = zlui 
    240             END_3D 
     230            DO jk = 1, nksr + 1 
     231               ztmp3d(:,:,jk) = zlui 
     232            END DO 
    241233         ENDIF 
    242234         ! 
     
    325317      ENDIF 
    326318      ! 
    327       ! TEMP: These changes not necessary after trd_tra is tiled 
    328319      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 ) 
    342323      ENDIF 
    343324      !                       ! print mean trends (used for debugging) 
Note: See TracChangeset for help on using the changeset viewer.