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 10009 for NEMO/branches/2018/dev_r9838_ENHANCE04_RK3/src/OCE/DYN/wet_dry.F90 – NEMO

Ignore:
Timestamp:
2018-07-29T11:23:51+02:00 (6 years ago)
Author:
gm
Message:

#1911 (ENHANCE-04): RK3 branch - step II.1 time-level dimension on ssh

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2018/dev_r9838_ENHANCE04_RK3/src/OCE/DYN/wet_dry.F90

    r9939 r10009  
    117117 
    118118 
    119    SUBROUTINE wad_lmt( sshb1, sshemp, p2dt ) 
     119   SUBROUTINE wad_lmt( pssh, sshemp, p2dt ) 
    120120      !!---------------------------------------------------------------------- 
    121121      !!                  ***  ROUTINE wad_lmt  *** 
     
    127127      !! ** Action  : - calculate flux limiter and W/D flag 
    128128      !!---------------------------------------------------------------------- 
    129       REAL(wp), DIMENSION(:,:), INTENT(inout) ::   sshb1        !!gm DOCTOR names: should start with p ! 
     129      REAL(wp), DIMENSION(:,:), INTENT(inout) ::   pssh      ! before sea-surface height 
    130130      REAL(wp), DIMENSION(:,:), INTENT(in   ) ::   sshemp 
    131131      REAL(wp)                , INTENT(in   ) ::   p2dt 
     
    178178               &         + MIN( zflxv(ji,jj) , 0._wp ) - MAX( zflxv(ji,  jj-1) , 0._wp )  
    179179            ! 
    180             zdep2 = ht_0(ji,jj) + sshb1(ji,jj) - rn_wdmin1 
     180            zdep2 = ht_0(ji,jj) + pssh(ji,jj) - rn_wdmin1 
    181181            IF( zdep2 <= 0._wp ) THEN     ! add more safty, but not necessary 
    182                sshb1(ji,jj) = rn_wdmin1 - ht_0(ji,jj) 
     182               pssh(ji,jj) = rn_wdmin1 - ht_0(ji,jj) 
    183183               IF(zflxu(ji,  jj) > 0._wp) zwdlmtu(ji  ,jj) = 0._wp 
    184184               IF(zflxu(ji-1,jj) < 0._wp) zwdlmtu(ji-1,jj) = 0._wp 
     
    191191      ! 
    192192      !           ! HPG limiter from jholt 
    193       wdramp(:,:) = min((ht_0(:,:) + sshb1(:,:) - rn_wdmin1)/(rn_wdmin0 - rn_wdmin1),1.0_wp) 
     193      wdramp(:,:) = min((ht_0(:,:) + pssh(:,:) - rn_wdmin1)/(rn_wdmin0 - rn_wdmin1),1.0_wp) 
    194194      !jth assume don't need a lbc_lnk here 
    195195      DO jj = 1, jpjm1 
     
    221221               ! 
    222222               zdep1 = (zzflxp + zzflxn) * p2dt / ztmp 
    223                zdep2 = ht_0(ji,jj) + sshb1(ji,jj) - rn_wdmin1 - p2dt * sshemp(ji,jj) 
     223               zdep2 = ht_0(ji,jj) + pssh(ji,jj) - rn_wdmin1 - p2dt * sshemp(ji,jj) 
    224224               ! 
    225225               IF( zdep1 > zdep2 ) THEN 
Note: See TracChangeset for help on using the changeset viewer.