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 15182 – NEMO

Changeset 15182


Ignore:
Timestamp:
2021-08-12T13:24:11+02:00 (3 years ago)
Author:
hadcv
Message:

Replace [15160] with an lbc_lnk for hmld in TOP

Location:
NEMO/trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/OCE/ZDF/zdfmxl.F90

    r15090 r15182  
    144144      ! w-level of the turbocline and mixing layer (iom_use) 
    145145      imld(:,:) = mbkt(A2D(nn_hls)) + 1                ! Initialization to the number of w ocean point 
    146       DO_3DS( nn_hls, nn_hls, nn_hls, nn_hls, jpkm1, nlb10, -1 )   ! from the bottom to nlb10 
     146      DO_3DS( 1, 1, 1, 1, jpkm1, nlb10, -1 )   ! from the bottom to nlb10 
    147147         IF( avt (ji,jj,jk) < avt_c * wmask(ji,jj,jk) )   imld(ji,jj) = jk      ! Turbocline 
    148148      END_3D 
    149149      ! depth of the mixing layer 
    150       DO_2D_OVR( nn_hls, nn_hls, nn_hls, nn_hls ) 
     150      DO_2D_OVR( 1, 1, 1, 1 ) 
    151151         iik = imld(ji,jj) 
    152152         hmld (ji,jj) = gdepw(ji,jj,iik  ,Kmm) * ssmask(ji,jj)    ! Turbocline depth 
  • NEMO/trunk/src/OCE/ZDF/zdfphy.F90

    r15160 r15182  
    349349 
    350350      !                                         !* Lateral boundary conditions (sign unchanged) 
    351       IF( .NOT. l_istiled .OR. ntile == nijtile ) THEN                       ! Do only on the last tile 
     351      IF(nn_hls==1) THEN 
    352352         IF( l_zdfsh2 ) THEN 
    353353            CALL lbc_lnk( 'zdfphy', avm_k, 'W', 1.0_wp , avt_k, 'W', 1.0_wp,   & 
  • NEMO/trunk/src/TOP/PISCES/P4Z/p4zsms.F90

    r15090 r15182  
    2424   USE trdtrc          ! TOP trends variables 
    2525   USE sedmodel        ! Sediment model 
     26   USE lbclnk          ! ocean lateral boundary conditions (or mpp link) 
    2627   USE prtctl          ! print control for debugging 
    2728 
     
    120121      CALL p4z_che(     Kbb, Kmm       ) ! computation of chemical constants 
    121122      CALL p4z_int( kt, Kbb, Kmm       ) ! computation of various rates for biogeochemistry 
     123      ! 
     124      IF( nn_hls > 1 ) CALL lbc_lnk( 'p4zsms', hmld(:,:), 'T', 1._wp )  ! hmld defined only on first halo in zdfmxl 
    122125      ! 
    123126      DO jnt = 1, nrdttrc          ! Potential time splitting if requested 
Note: See TracChangeset for help on using the changeset viewer.