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 14072 for NEMO/trunk/src/OCE/TRA/traldf_lap_blp.F90 – NEMO

Ignore:
Timestamp:
2020-12-04T08:48:38+01:00 (4 years ago)
Author:
laurent
Message:

Merging branch "2020/dev_r13648_ASINTER-04_laurent_bulk_ice", ticket #2369

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/OCE/TRA/traldf_lap_blp.F90

    r13982 r14072  
    44   !! Ocean tracers:  lateral diffusivity trend  (laplacian and bilaplacian) 
    55   !!============================================================================== 
    6    !! History :  3.7  ! 2014-01  (G. Madec, S. Masson)  Original code, re-entrant laplacian  
     6   !! History :  3.7  ! 2014-01  (G. Madec, S. Masson)  Original code, re-entrant laplacian 
    77   !!---------------------------------------------------------------------- 
    88 
     
    7474      !!---------------------------------------------------------------------- 
    7575      !!                  ***  ROUTINE tra_ldf_lap  *** 
    76       !!                    
    77       !! ** Purpose :   Compute the before horizontal tracer (t & s) diffusive  
     76      !! 
     77      !! ** Purpose :   Compute the before horizontal tracer (t & s) diffusive 
    7878      !!      trend and add it to the general trend of tracer equation. 
    7979      !! 
    8080      !! ** Method  :   Second order diffusive operator evaluated using before 
    81       !!      fields (forward time scheme). The horizontal diffusive trends of  
     81      !!      fields (forward time scheme). The horizontal diffusive trends of 
    8282      !!      the tracer is given by: 
    8383      !!          difft = 1/(e1e2t*e3t) {  di-1[ pahu e2u*e3u/e1u di(tb) ] 
     
    8686      !!          pt_rhs = pt_rhs + difft 
    8787      !! 
    88       !! ** Action  : - Update pt_rhs arrays with the before iso-level  
     88      !! ** Action  : - Update pt_rhs arrays with the before iso-level 
    8989      !!                harmonic mixing trend. 
    9090      !!---------------------------------------------------------------------- 
     
    139139      !                             ! =========== ! 
    140140      DO jn = 1, kjpt               ! tracer loop ! 
    141          !                          ! =========== !     
    142          !                                
     141         !                          ! =========== ! 
     142         ! 
    143143         DO_3D( nn_hls, nn_hls-1, nn_hls, nn_hls-1, 1, jpkm1 )            !== First derivative (gradient)  ==! 
    144144            ztu(ji,jj,jk) = zaheeu(ji,jj,jk) * ( pt(ji+1,jj  ,jk,jn) - pt(ji,jj,jk,jn) ) 
     
    152152            IF( ln_isfcav ) THEN                             ! top in ocean cavities only 
    153153               DO_2D( nn_hls, nn_hls-1, nn_hls, nn_hls-1 ) 
    154                   IF( miku(ji,jj) > 1 )   ztu(ji,jj,miku(ji,jj)) = zaheeu(ji,jj,miku(ji,jj)) * pgui(ji,jj,jn)  
    155                   IF( mikv(ji,jj) > 1 )   ztv(ji,jj,mikv(ji,jj)) = zaheev(ji,jj,mikv(ji,jj)) * pgvi(ji,jj,jn)  
     154                  IF( miku(ji,jj) > 1 )   ztu(ji,jj,miku(ji,jj)) = zaheeu(ji,jj,miku(ji,jj)) * pgui(ji,jj,jn) 
     155                  IF( mikv(ji,jj) > 1 )   ztv(ji,jj,mikv(ji,jj)) = zaheev(ji,jj,mikv(ji,jj)) * pgvi(ji,jj,jn) 
    156156               END_2D 
    157157            ENDIF 
     
    177177      ! 
    178178   END SUBROUTINE tra_ldf_lap_t 
    179     
     179 
    180180 
    181181   SUBROUTINE tra_ldf_blp( kt, Kmm, kit000, cdtype, pahu, pahv  ,             & 
     
    184184      !!---------------------------------------------------------------------- 
    185185      !!                 ***  ROUTINE tra_ldf_blp  *** 
    186       !!                     
    187       !! ** Purpose :   Compute the before lateral tracer diffusive  
     186      !! 
     187      !! ** Purpose :   Compute the before lateral tracer diffusive 
    188188      !!      trend and add it to the general trend of tracer equation. 
    189189      !! 
     
    238238      ! NOTE: [tiling-comms-merge] Needed for both nn_hls as tra_ldf_iso and tra_ldf_triad have not yet been adjusted to work with nn_hls = 2. In the zps case the lbc_lnk in zps_hde handles this, but in the zco case zlap always needs this lbc_lnk. I did try adjusting the bounds in tra_ldf_iso and tra_ldf_triad so this lbc_lnk was only needed for nn_hls = 1, but this was not correct and I did not have time to figure out why 
    239239      CALL lbc_lnk( 'traldf_lap_blp', zlap(:,:,:,:) , 'T', 1.0_wp )     ! Lateral boundary conditions (unchanged sign) 
    240       !                                               ! Partial top/bottom cell: GRADh( zlap )   
     240      !                                               ! Partial top/bottom cell: GRADh( zlap ) 
    241241      IF( ln_isfcav .AND. ln_zps ) THEN   ;   CALL zps_hde_isf( kt, Kmm, kjpt, zlap, zglu, zglv, zgui, zgvi )  ! both top & bottom 
    242       ELSEIF(             ln_zps ) THEN   ;   CALL zps_hde    ( kt, Kmm, kjpt, zlap, zglu, zglv )              ! only bottom  
     242      ELSEIF(             ln_zps ) THEN   ;   CALL zps_hde    ( kt, Kmm, kjpt, zlap, zglu, zglv )              ! only bottom 
    243243      ENDIF 
    244244      ! 
Note: See TracChangeset for help on using the changeset viewer.