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 6862 for branches/2016/dev_r6522_SIMPLIF_3/NEMOGCM/NEMO/TOP_SRC/trcsub.F90 – NEMO

Ignore:
Timestamp:
2016-08-12T15:16:24+02:00 (8 years ago)
Author:
lovato
Message:

#1729 - trunk: removed key_bdy from the code and set usage of ln_bdy. Tested with SETTE.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2016/dev_r6522_SIMPLIF_3/NEMOGCM/NEMO/TOP_SRC/trcsub.F90

    r6140 r6862  
    2020#endif 
    2121#if defined key_zdfgls 
    22    USE zdfgls, ONLY: en 
     22   USE zdfgls    , ONLY: en 
    2323#endif 
    2424   USE trabbl 
     
    2626   USE domvvl 
    2727   USE divhor          ! horizontal divergence            (div_hor routine) 
    28    USE sbcrnf, ONLY: h_rnf, nk_rnf   ! River runoff  
    29    USE bdy_oce 
     28   USE sbcrnf    , ONLY: h_rnf, nk_rnf    ! River runoff 
     29   USE bdy_oce   , ONLY: ln_bdy, bdytmask ! BDY 
    3030#if defined key_agrif 
    3131   USE agrif_opa_update 
     
    505505      CALL agrif_ssh( kt ) 
    506506#endif 
    507 #if defined key_bdy 
    508       ssha(:,:) = ssha(:,:) * bdytmask(:,:) 
    509       CALL lbc_lnk( ssha, 'T', 1. )  
    510 #endif 
     507      IF( ln_bdy ) THEN 
     508         ssha(:,:) = ssha(:,:) * bdytmask(:,:) 
     509         CALL lbc_lnk( ssha, 'T', 1. )  
     510      ENDIF 
    511511#endif 
    512512      ! 
     
    520520            &                      - ( e3t_a(:,:,jk) - e3t_b(:,:,jk) )    & 
    521521            &                         * tmask(:,:,jk) * z1_2dt 
    522 #if defined key_bdy 
    523          wn(:,:,jk) = wn(:,:,jk) * bdytmask(:,:) 
    524 #endif 
     522         IF( ln_bdy ) wn(:,:,jk) = wn(:,:,jk) * bdytmask(:,:) 
    525523      END DO 
    526524      ! 
Note: See TracChangeset for help on using the changeset viewer.