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 9090 for branches/2017/dev_merge_2017/NEMOGCM/NEMO/OPA_SRC/DOM – NEMO

Ignore:
Timestamp:
2017-12-15T18:12:43+01:00 (6 years ago)
Author:
flavoni
Message:

change lbc_lnk in lbc_lnk_multi

Location:
branches/2017/dev_merge_2017/NEMOGCM/NEMO/OPA_SRC/DOM
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_merge_2017/NEMOGCM/NEMO/OPA_SRC/DOM/dommsk.F90

    r9023 r9090  
    184184         END DO 
    185185      END DO 
    186       CALL lbc_lnk( umask  , 'U', 1._wp )      ! Lateral boundary conditions 
    187       CALL lbc_lnk( vmask  , 'V', 1._wp ) 
    188       CALL lbc_lnk( fmask  , 'F', 1._wp ) 
    189  
     186      CALL lbc_lnk_multi( umask, 'U', 1., vmask, 'V', 1., fmask, 'F', 1. )      ! Lateral boundary conditions 
    190187  
    191188      ! Ocean/land mask at wu-, wv- and w points    (computed from tmask) 
     
    276273            END DO 
    277274#if defined key_agrif  
    278        IF( .NOT. AGRIF_Root() ) THEN  
    279           IF ((nbondi ==  1).OR.(nbondi == 2)) fmask(nlci-1 , :     ,jk) = 0.e0      ! east  
    280           IF ((nbondi == -1).OR.(nbondi == 2)) fmask(1      , :     ,jk) = 0.e0      ! west  
    281           IF ((nbondj ==  1).OR.(nbondj == 2)) fmask(:      ,nlcj-1 ,jk) = 0.e0      ! north  
    282           IF ((nbondj == -1).OR.(nbondj == 2)) fmask(:      ,1      ,jk) = 0.e0      ! south  
    283        ENDIF  
     275            IF( .NOT. AGRIF_Root() ) THEN  
     276               IF ((nbondi ==  1).OR.(nbondi == 2)) fmask(nlci-1 , :     ,jk) = 0.e0      ! east  
     277               IF ((nbondi == -1).OR.(nbondi == 2)) fmask(1      , :     ,jk) = 0.e0      ! west  
     278               IF ((nbondj ==  1).OR.(nbondj == 2)) fmask(:      ,nlcj-1 ,jk) = 0.e0      ! north  
     279               IF ((nbondj == -1).OR.(nbondj == 2)) fmask(:      ,1      ,jk) = 0.e0      ! south  
     280            ENDIF  
    284281#endif  
    285282         END DO 
  • branches/2017/dev_merge_2017/NEMOGCM/NEMO/OPA_SRC/DOM/domvvl.F90

    r9065 r9090  
    389389         !                       ! d - thickness diffusion transport: boundary conditions 
    390390         !                             (stored for tracer advction and continuity equation) 
    391          CALL lbc_lnk( un_td , 'U' , -1._wp) 
    392          CALL lbc_lnk( vn_td , 'V' , -1._wp) 
     391         CALL lbc_lnk_multi( un_td , 'U' , -1._wp, vn_td , 'V' , -1._wp) 
    393392 
    394393         ! 4 - Time stepping of baroclinic scale factors 
  • branches/2017/dev_merge_2017/NEMOGCM/NEMO/OPA_SRC/DOM/iscplrst.F90

    r9019 r9090  
    175175            END DO 
    176176         END DO 
    177          CALL lbc_lnk( sshn   , 'T', 1._wp ) 
    178          CALL lbc_lnk( zsmask1, 'T', 1._wp ) 
     177         CALL lbc_lnk_multi( sshn, 'T', 1., zsmask1, 'T', 1. ) 
    179178         zssh0   = sshn 
    180179         zsmask0 = zsmask1 
     
    345344          END DO 
    346345           
    347           CALL lbc_lnk(tsn(:,:,:,1),'T',1._wp) 
    348           CALL lbc_lnk(tsn(:,:,:,2),'T',1._wp) 
    349           CALL lbc_lnk(ztmask1,     'T',1._wp) 
     346          CALL lbc_lnk_multi( tsn(:,:,:,jp_tem), 'T', 1., tsn(:,:,:,jp_sal), 'T', 1., ztmask1, 'T', 1.) 
    350347 
    351348          ! update 
Note: See TracChangeset for help on using the changeset viewer.