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/trabbl.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/trabbl.F90

    r13518 r13551  
    2626   USE oce            ! ocean dynamics and active tracers 
    2727   USE dom_oce        ! ocean space and time domain 
    28    ! TEMP: This change not necessary after trd_tra is tiled 
    29    USE domain, ONLY : dom_tile 
    3028   USE phycst         ! physical constant 
    3129   USE eosbn2         ! equation of state 
     
    109107      ! 
    110108      INTEGER  ::   ji, jj, jk   ! Dummy loop indices 
    111       ! TEMP: This change not necessary after trd_tra is tiled 
    112       REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) ::   ztrdt, ztrds 
     109      REAL(wp), ALLOCATABLE, DIMENSION(:,:,:) ::   ztrdt, ztrds 
    113110      !!---------------------------------------------------------------------- 
    114111      ! 
     
    116113      ! 
    117114      IF( l_trdtra )   THEN                         !* Save the T-S input trends 
    118          IF( ntile == 0 .OR. ntile == 1 )  THEN                       ! Do only on the first tile 
    119             ! TEMP: This can be ST_2D(nn_hls) after trd_tra is tiled 
    120             ALLOCATE( ztrdt(jpi,jpj,jpk), ztrds(jpi,jpj,jpk) ) 
    121          ENDIF 
    122  
    123          DO_3D( 0, 0, 0, 0, 1, jpk ) 
    124             ztrdt(ji,jj,jk) = pts(ji,jj,jk,jp_tem,Krhs) 
    125             ztrds(ji,jj,jk) = pts(ji,jj,jk,jp_sal,Krhs) 
    126          END_3D 
     115         ALLOCATE( ztrdt(jpi,jpj,jpk), ztrds(jpi,jpj,jpk) ) 
     116         ztrdt(:,:,:) = pts(:,:,:,jp_tem,Krhs) 
     117         ztrds(:,:,:) = pts(:,:,:,jp_sal,Krhs) 
    127118      ENDIF 
    128119 
     
    159150      ENDIF 
    160151 
    161       ! TEMP: These changes not necessary after trd_tra is tiled 
    162152      IF( l_trdtra )   THEN                      ! send the trends for further diagnostics 
    163          DO_3D( 0, 0, 0, 0, 1, jpk ) 
    164             ztrdt(ji,jj,jk) = pts(ji,jj,jk,jp_tem,Krhs) - ztrdt(ji,jj,jk) 
    165             ztrds(ji,jj,jk) = pts(ji,jj,jk,jp_sal,Krhs) - ztrds(ji,jj,jk) 
    166          END_3D 
    167  
    168          IF( ntile == 0 .OR. ntile == nijtile )  THEN                ! Do only for the full domain 
    169             IF( ln_tile ) CALL dom_tile( ntsi, ntsj, ntei, ntej, ktile = 0 )         ! Use full domain 
    170  
    171             ! TODO: TO BE TILED- trd_tra 
    172             CALL trd_tra( kt, Kmm, Krhs, 'TRA', jp_tem, jptra_bbl, ztrdt ) 
    173             CALL trd_tra( kt, Kmm, Krhs, 'TRA', jp_sal, jptra_bbl, ztrds ) 
    174             DEALLOCATE( ztrdt, ztrds ) 
    175  
    176             IF( ln_tile ) CALL dom_tile( ntsi, ntsj, ntei, ntej, ktile = nijtile )   ! Revert to tile domain 
    177          ENDIF 
     153         ztrdt(:,:,:) = pts(:,:,:,jp_tem,Krhs) - ztrdt(:,:,:) 
     154         ztrds(:,:,:) = pts(:,:,:,jp_sal,Krhs) - ztrds(:,:,:) 
     155         CALL trd_tra( kt, Kmm, Krhs, 'TRA', jp_tem, jptra_bbl, ztrdt ) 
     156         CALL trd_tra( kt, Kmm, Krhs, 'TRA', jp_sal, jptra_bbl, ztrds ) 
     157         DEALLOCATE( ztrdt, ztrds ) 
    178158      ENDIF 
    179159      ! 
Note: See TracChangeset for help on using the changeset viewer.