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_mus.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_mus.F90

    r13516 r13551  
    1919   USE trc_oce        ! share passive tracers/Ocean variables 
    2020   USE dom_oce        ! ocean space and time domain 
    21    ! TEMP: This change not necessary after trd_tra is tiled 
    22    USE domain, ONLY : dom_tile 
    2321   USE trd_oce        ! trends: ocean variables 
    2422   USE trdtra         ! tracers trends manager 
     
    8381      LOGICAL                                  , INTENT(in   ) ::   ld_msc_ups      ! use upstream scheme within muscl 
    8482      REAL(wp)                                 , INTENT(in   ) ::   p2dt            ! tracer time-step 
    85       ! TEMP: This can be ST_2D(nn_hls) after trd_tra is tiled 
     83      ! TEMP: This can be ST_2D(nn_hls) if using XIOS (subdomain support) 
    8684      REAL(wp), DIMENSION(jpi,jpj,jpk         ), INTENT(in   ) ::   pU, pV, pW      ! 3 ocean volume flux components 
    8785      REAL(wp), DIMENSION(jpi,jpj,jpk,kjpt,jpt), INTENT(inout) ::   pt              ! tracers and RHS of tracer equation 
    8886      ! 
    89       ! TEMP: This change not necessary after trd_tra is tiled 
    90       INTEGER  ::   itile 
    9187      INTEGER  ::   ji, jj, jk, jn   ! dummy loop indices 
    9288      INTEGER  ::   ierr             ! local integer 
     
    9591      REAL(wp), DIMENSION(ST_2D(nn_hls),jpk) ::   zwx, zslpx   ! 3D workspace 
    9692      REAL(wp), DIMENSION(ST_2D(nn_hls),jpk) ::   zwy, zslpy   ! -      - 
    97       ! TEMP: This change not necessary after trd_tra is tiled 
    98       REAL(wp), DIMENSION(:,:,:), SAVE, ALLOCATABLE ::   ztrdx, ztrdy, ztrdz 
    9993      !!---------------------------------------------------------------------- 
    100       ! TEMP: This change not necessary after trd_tra is tiled 
    101       itile = ntile 
    10294      ! 
    10395      IF( ntile == 0 .OR. ntile == 1 )  THEN                       ! Do only on the first tile 
     
    134126         IF(   cdtype == 'TRA' .AND. ( iom_use("uadv_heattr") .OR. iom_use("vadv_heattr") .OR. & 
    135127            &                          iom_use("uadv_salttr") .OR. iom_use("vadv_salttr")  ) ) l_hst = .TRUE. 
    136  
    137          ! TEMP: This can be ST_2D(nn_hls) after trd_tra is tiled 
    138          IF( kt == kit000 .AND. l_trd ) THEN 
    139             ALLOCATE( ztrdx(jpi,jpj,jpk), ztrdy(jpi,jpj,jpk), ztrdz(jpi,jpj,jpk) ) 
    140          ENDIF 
    141128      ENDIF 
    142129      ! 
     
    197184         END_3D 
    198185         !                                ! trend diagnostics 
    199          ! TEMP: These changes not necessary after trd_tra is tiled 
    200186         IF( l_trd )  THEN 
    201             DO_3D( 1, 0, 1, 0, 1, jpk ) 
    202                ztrdx(ji,jj,jk) = zwx(ji,jj,jk) 
    203                ztrdy(ji,jj,jk) = zwy(ji,jj,jk) 
    204             END_3D 
    205  
    206             IF( ntile == 0 .OR. ntile == nijtile )  THEN                ! Do only for the full domain 
    207                IF( ln_tile ) CALL dom_tile( ntsi, ntsj, ntei, ntej, ktile = 0 )         ! Use full domain 
    208  
    209                ! TODO: TO BE TILED- trd_tra 
    210                CALL trd_tra( kt, Kmm, Krhs, cdtype, jn, jptra_xad, ztrdx, pU, pt(:,:,:,jn,Kbb) ) 
    211                CALL trd_tra( kt, Kmm, Krhs, cdtype, jn, jptra_yad, ztrdy, pV, pt(:,:,:,jn,Kbb) ) 
    212  
    213                IF( ln_tile ) CALL dom_tile( ntsi, ntsj, ntei, ntej, ktile = itile )   ! Revert to tile domain 
    214             ENDIF 
     187            CALL trd_tra( kt, Kmm, Krhs, cdtype, jn, jptra_xad, zwx, pU, pt(:,:,:,jn,Kbb) ) 
     188            CALL trd_tra( kt, Kmm, Krhs, cdtype, jn, jptra_yad, zwy, pV, pt(:,:,:,jn,Kbb) ) 
    215189         END IF 
    216190         !                                 ! "Poleward" heat and salt transports  
     
    264238         END_3D 
    265239         !                                ! send trends for diagnostic 
    266          ! TEMP: These changes not necessary after trd_tra is tiled 
    267          IF( l_trd ) THEN 
    268             DO_3D( 0, 0, 0, 0, 1, jpk ) 
    269                ztrdz(ji,jj,jk) = zwx(ji,jj,jk) 
    270             END_3D 
    271  
    272             IF( ntile == 0 .OR. ntile == nijtile )  THEN                ! Do only for the full domain 
    273                IF( ln_tile ) CALL dom_tile( ntsi, ntsj, ntei, ntej, ktile = 0 )         ! Use full domain 
    274  
    275                ! TODO: TO BE TILED- trd_tra 
    276                CALL trd_tra( kt, Kmm, Krhs, cdtype, jn, jptra_zad, ztrdz, pW, pt(:,:,:,jn,Kbb) ) 
    277  
    278                IF( ln_tile ) CALL dom_tile( ntsi, ntsj, ntei, ntej, ktile = itile )     ! Revert to tile domain 
    279             ENDIF 
    280          ENDIF 
     240         IF( l_trd )  CALL trd_tra( kt, Kmm, Krhs, cdtype, jn, jptra_zad, zwx, pW, pt(:,:,:,jn,Kbb) ) 
    281241         ! 
    282242      END DO                     ! end of tracer loop 
Note: See TracChangeset for help on using the changeset viewer.