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 11248 for branches/UKMO/dev_isf_remapping_UKESM_GO6package_r9314/NEMOGCM/NEMO/OPA_SRC/DOM/dommsk.F90 – NEMO

Ignore:
Timestamp:
2019-07-10T19:01:37+02:00 (5 years ago)
Author:
mathiot
Message:

add condition to fill isolated grid point in the bathymetry in zgr_isf to ensure compatibility with ice shelf draft and properly mask bathy,risfdep,mbathy,misfdep after filling subglacial lakes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_isf_remapping_UKESM_GO6package_r9314/NEMOGCM/NEMO/OPA_SRC/DOM/dommsk.F90

    r9513 r11248  
    201201         END DO   
    202202      END DO   
     203      ! 
     204      ! (ISF) define barotropic mask and mask the ice shelf point 
     205      DO jj = 1, jpj 
     206         DO ji = 1, jpi   ! vector loop 
     207            ssmask(ji,jj)  = MIN(1._wp,SUM(tmask(ji,jj,:))) 
     208         END DO 
     209      END DO 
    203210      ! 
    204211      IF ( ln_isfsubgl ) THEN 
     
    222229            WHERE (tmask(:,:,jk) < 0) tmask(:,:,jk) = 1 ! restore mask value 
    223230         END DO 
     231         ! update ssmask 
     232         DO jj = 1, jpj 
     233            DO ji = 1, jpi   ! vector loop 
     234               ssmask(ji,jj)  = MIN(1._wp,SUM(tmask(ji,jj,:))) 
     235            END DO 
     236         END DO 
     237         ! update mbathy, misfdep, bathy, risfdep 
     238         bathy(:,:)   = bathy(:,:)   * ssmask(:,:) 
     239         risfdep(:,:) = risfdep(:,:) * ssmask(:,:) 
     240         WHERE ( ssmask(:,:) == 0._wp ) 
     241            misfdep(:,:) = 1 
     242            mbathy(:,:)  = 0 
     243         END WHERE 
    224244      END IF 
    225245 
    226       ! (ISF) define barotropic mask and mask the ice shelf point 
    227       DO jj = 1, jpj 
    228          DO ji = 1, jpi   ! vector loop 
    229             ssmask(ji,jj)  = MIN(1._wp,SUM(tmask(ji,jj,:))) 
    230          END DO 
    231       END DO 
    232246!!gm  ???? 
    233247#if defined key_zdfkpp 
Note: See TracChangeset for help on using the changeset viewer.