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

    r13516 r13551  
    1212   !!---------------------------------------------------------------------- 
    1313   USE dom_oce        ! ocean space and time domain 
    14    ! TEMP: This change not necessary after trd_tra is tiled 
    15    USE domain, ONLY : dom_tile 
    1614   USE eosbn2         ! equation of state 
    1715   USE traadv_fct     ! acces to routine interp_4th_cpt  
     
    7371      INTEGER                                  , INTENT(in   ) ::   kn_cen_h        ! =2/4 (2nd or 4th order scheme) 
    7472      INTEGER                                  , INTENT(in   ) ::   kn_cen_v        ! =2/4 (2nd or 4th order scheme) 
    75       ! TEMP: This can be ST_2D(nn_hls) after trd_tra is tiled 
     73      ! TEMP: This can be ST_2D(nn_hls) if using XIOS (subdomain support) 
    7674      REAL(wp), DIMENSION(jpi,jpj,jpk         ), INTENT(in   ) ::   pU, pV, pW      ! 3 ocean volume flux components 
    7775      REAL(wp), DIMENSION(jpi,jpj,jpk,kjpt,jpt), INTENT(inout) ::   pt              ! tracers and RHS of tracer equation 
     
    7977      INTEGER  ::   ji, jj, jk, jn   ! dummy loop indices 
    8078      INTEGER  ::   ierr             ! local integer 
    81       ! TEMP: This change not necessary after trd_tra is tiled 
    82       INTEGER  ::   itile 
    8379      REAL(wp) ::   zC2t_u, zC2t_v   ! local scalars 
    8480      REAL(wp), DIMENSION(ST_2D(nn_hls),jpk) ::   zwx, zwy, zwz, ztu, ztv, ztw, zltu, zltv 
    85       ! TEMP: This change not necessary after trd_tra is tiled 
    86       REAL(wp), DIMENSION(:,:,:,:), SAVE, ALLOCATABLE ::   ztrdx, ztrdy, ztrdz 
    8781      !!---------------------------------------------------------------------- 
    88       ! TEMP: This change not necessary after trd_tra is tiled 
    89       itile = ntile 
    9082      ! 
    9183      IF( ntile == 0 .OR. ntile == 1 )  THEN                       ! Do only on the first tile 
     
    10395         IF(   cdtype == 'TRA' .AND. ( iom_use("uadv_heattr") .OR. iom_use("vadv_heattr") .OR. & 
    10496            &                          iom_use("uadv_salttr") .OR. iom_use("vadv_salttr")  ) )  l_hst = .TRUE. 
    105  
    106          ! TEMP: This can be ST_2D(nn_hls) after trd_tra is tiled 
    107          IF( kt == kit000 .AND. l_trd ) THEN 
    108             ALLOCATE( ztrdx(jpi,jpj,jpk,jpts), ztrdy(jpi,jpj,jpk,jpts), ztrdz(jpi,jpj,jpk,jpts) ) 
    109          ENDIF 
    11097      ENDIF 
    11198      ! 
     
    187174         END_3D 
    188175         !                             ! trend diagnostics 
    189          ! TEMP: These changes not necessary after trd_tra is tiled 
    190176         IF( l_trd ) THEN 
    191             DO_3D( 1, 0, 1, 0, 1, jpk ) 
    192                ztrdx(ji,jj,jk,jn) = zwx(ji,jj,jk) 
    193                ztrdy(ji,jj,jk,jn) = zwy(ji,jj,jk) 
    194                ztrdz(ji,jj,jk,jn) = zwz(ji,jj,jk) 
    195             END_3D 
    196  
    197             IF( ntile == 0 .OR. ntile == nijtile )  THEN                ! Do only for the full domain 
    198                IF( ln_tile ) CALL dom_tile( ntsi, ntsj, ntei, ntej, ktile = 0 )         ! Use full domain 
    199  
    200                ! TODO: TO BE TILED- trd_tra 
    201                CALL trd_tra( kt, Kmm, Krhs, cdtype, jn, jptra_xad, ztrdx(:,:,:,jn), pU, pt(:,:,:,jn,Kmm) ) 
    202                CALL trd_tra( kt, Kmm, Krhs, cdtype, jn, jptra_yad, ztrdy(:,:,:,jn), pV, pt(:,:,:,jn,Kmm) ) 
    203                CALL trd_tra( kt, Kmm, Krhs, cdtype, jn, jptra_zad, ztrdz(:,:,:,jn), pW, pt(:,:,:,jn,Kmm) ) 
    204  
    205                IF( ln_tile ) CALL dom_tile( ntsi, ntsj, ntei, ntej, ktile = itile )     ! Revert to tile domain 
    206             ENDIF 
     177            CALL trd_tra( kt, Kmm, Krhs, cdtype, jn, jptra_xad, zwx, pU, pt(:,:,:,jn,Kmm) ) 
     178            CALL trd_tra( kt, Kmm, Krhs, cdtype, jn, jptra_yad, zwy, pV, pt(:,:,:,jn,Kmm) ) 
     179            CALL trd_tra( kt, Kmm, Krhs, cdtype, jn, jptra_zad, zwz, pW, pt(:,:,:,jn,Kmm) ) 
    207180         ENDIF 
    208181         !                                 ! "Poleward" heat and salt transports 
Note: See TracChangeset for help on using the changeset viewer.