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

    r13518 r13551  
    2424   USE oce            ! ocean: variables 
    2525   USE dom_oce        ! ocean: domain variables 
    26    ! TEMP: This change not necessary after trd_tra is tiled 
    27    USE domain, ONLY : dom_tile 
    2826   USE c1d            ! 1D vertical configuration 
    2927   USE trd_oce        ! trends: ocean variables 
     
    9896      INTEGER ::   ji, jj, jk, jn   ! dummy loop indices 
    9997      REAL(wp), DIMENSION(ST_2D(nn_hls),jpk,jpts)     ::  zts_dta 
    100       ! TEMP: This change not necessary after trd_tra is tiled 
    101       REAL(wp), DIMENSION(:,:,:,:), ALLOCATABLE, SAVE ::  ztrdts 
     98      REAL(wp), DIMENSION(:,:,:,:), ALLOCATABLE ::  ztrdts 
    10299      !!---------------------------------------------------------------------- 
    103100      ! 
     
    105102      ! 
    106103      IF( l_trdtra )   THEN                    !* Save ta and sa trends 
    107          IF( ntile == 0 .OR. ntile == 1 )  THEN                       ! Do only on the first tile 
    108             ! TEMP: This can be ST_2D(nn_hls) after trd_tra is tiled 
    109             ALLOCATE( ztrdts(jpi,jpj,jpk,jpts) ) 
    110          ENDIF 
    111  
    112          DO_3D( 0, 0, 0, 0, 1, jpk ) 
    113             ztrdts(ji,jj,jk,:) = pts(ji,jj,jk,:,Krhs) 
    114          END_3D 
     104         ALLOCATE( ztrdts(jpi,jpj,jpk,jpts) ) 
     105         ztrdts(:,:,:,:) = pts(:,:,:,:,Krhs) 
    115106      ENDIF 
    116107      !                           !==  input T-S data at kt  ==! 
     
    149140      END SELECT 
    150141      ! 
    151       ! TEMP: These changes not necessary after trd_tra is tiled 
    152142      IF( l_trdtra )   THEN       ! trend diagnostic 
    153          DO_3D( 0, 0, 0, 0, 1, jpk ) 
    154             ztrdts(ji,jj,jk,:) = pts(ji,jj,jk,:,Krhs) - ztrdts(ji,jj,jk,:) 
    155          END_3D 
    156  
    157          IF( ntile == 0 .OR. ntile == nijtile )  THEN                ! Do only for the full domain 
    158             IF( ln_tile ) CALL dom_tile( ntsi, ntsj, ntei, ntej, ktile = 0 )         ! Use full domain 
    159  
    160             ! TODO: TO BE TILED- trd_tra 
    161             CALL trd_tra( kt, Kmm, Krhs, 'TRA', jp_tem, jptra_dmp, ztrdts(:,:,:,jp_tem) ) 
    162             CALL trd_tra( kt, Kmm, Krhs, 'TRA', jp_sal, jptra_dmp, ztrdts(:,:,:,jp_sal) ) 
    163             DEALLOCATE( ztrdts ) 
    164  
    165             IF( ln_tile ) CALL dom_tile( ntsi, ntsj, ntei, ntej, ktile = nijtile )   ! Revert to tile domain 
    166          ENDIF 
     143         ztrdts(:,:,:,:) = pts(:,:,:,:,Krhs) - ztrdts(:,:,:,:) 
     144         CALL trd_tra( kt, Kmm, Krhs, 'TRA', jp_tem, jptra_dmp, ztrdts(:,:,:,jp_tem) ) 
     145         CALL trd_tra( kt, Kmm, Krhs, 'TRA', jp_sal, jptra_dmp, ztrdts(:,:,:,jp_sal) ) 
     146         DEALLOCATE( ztrdts ) 
    167147      ENDIF 
    168148      !                           ! Control print 
Note: See TracChangeset for help on using the changeset viewer.