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 11908 for NEMO/branches/2019/ENHANCE-02_ISF_nemo/src/OCE/ISF/isfcpl.F90 – NEMO

Ignore:
Timestamp:
2019-11-14T20:20:07+01:00 (4 years ago)
Author:
mathiot
Message:

ENHANCE-02_ISF_nemo: fix issue initialisation after ice sheet coupling step

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/ENHANCE-02_ISF_nemo/src/OCE/ISF/isfcpl.F90

    r11902 r11908  
    6161      ! check presence of variable needed for coupling 
    6262      ! iom_varid return 0 if not found 
    63       id = 0 
     63      id = 1 
    6464      id = id * iom_varid(numror, 'ssmask', ldstop = .false.) 
    6565      id = id * iom_varid(numror, 'tmask' , ldstop = .false.) 
     
    145145      !!---------------------------------------------------------------------- 
    146146      !! 
    147       INTEGER :: ji, jj, jd          !! loop index 
     147      INTEGER :: ji, jj, jd, jk      !! loop index 
    148148      INTEGER :: jip1, jim1, jjp1, jjm1 
    149149      !! 
     
    195195      ! 
    196196      ! recompute the vertical scale factor, depth and water thickness 
     197      IF(lwp) write(numout,*) 'isfcpl_ssh : recompute scale factor from sshn (new wet cell)' 
     198      IF(lwp) write(numout,*) '~~~~~~~~~~~' 
     199      DO jk = 1, jpk 
     200         e3t_n(:,:,jk) =  e3t_0(:,:,jk) * ( ht_0(:,:) + sshn(:,:) ) & 
     201             &                          / ( ht_0(:,:) + 1._wp - ssmask(:,:) ) * tmask(:,:,jk)   & 
     202             &          + e3t_0(:,:,jk)                               * (1._wp -tmask(:,:,jk)) 
     203      END DO 
     204      e3t_b(:,:,:) = e3t_n(:,:,:) 
    197205      CALL dom_vvl_zgr() 
    198206      ! 
Note: See TracChangeset for help on using the changeset viewer.