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 6012 for branches/2015/dev_MetOffice_merge_2015/NEMOGCM/NEMO/OPA_SRC/DOM/domzgr.F90 – NEMO

Ignore:
Timestamp:
2015-12-07T16:11:45+01:00 (8 years ago)
Author:
mathiot
Message:

merge MetO branch with dev_r5151_UKMO_ISF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_MetOffice_merge_2015/NEMOGCM/NEMO/OPA_SRC/DOM/domzgr.F90

    r6006 r6012  
    12581258      END WHERE 
    12591259 
     1260      ! remove very shallow ice shelf (less than ~ 10m if 75L) 
     1261      WHERE (risfdep(:,:) <= 10._wp .AND. misfdep(:,:) > 1) 
     1262         misfdep = 0; risfdep = 0.0_wp; 
     1263         mbathy  = 0; bathy   = 0.0_wp; 
     1264      END WHERE 
     1265      WHERE (bathy(:,:) <= 30.0_wp .AND. gphit < -60._wp) 
     1266         misfdep = 0; risfdep = 0.0_wp; 
     1267         mbathy  = 0; bathy   = 0.0_wp; 
     1268      END WHERE 
     1269  
    12601270! basic check for the compatibility of bathy and risfdep. I think it should be offline because it is not perfect and cannot solved all the situation 
    12611271      icompt = 0  
     
    13231333                     zrisfdepdiff=ABS(risfdep(ji,jj) - (gdepw_1d(misfdep(ji,jj)  ) & 
    13241334                         &            - MIN( e3zps_min, e3t_1d(misfdep(ji,jj)-1)*e3zps_rat ))) 
    1325   
    13261335                     IF (bathy(ji,jj) > risfdep(ji,jj) .AND. mbathy(ji,jj) <  misfdep(ji,jj)) THEN 
    13271336                        IF (zbathydiff <= zrisfdepdiff) THEN 
     
    13691378         END DO 
    13701379  
    1371  ! point V mbathy(ji,jj) EQ misfdep(ji,jj+1)  
     1380 ! point V mbathy(ji,jj) == misfdep(ji,jj+1)  
    13721381         DO jj = 1, jpjm1 
    13731382            DO ji = 1, jpim1 
     
    14051414            mbathy(:,:)  = INT( zbathy(:,:) ) 
    14061415         ENDIF 
    1407  ! point V misdep(ji,jj) EQ mbathy(ji,jj+1)  
     1416 ! point V misdep(ji,jj) == mbathy(ji,jj+1)  
    14081417         DO jj = 1, jpjm1 
    14091418            DO ji = 1, jpim1 
     
    14431452         ENDIF  
    14441453  
    1445  ! point U mbathy(ji,jj) EQ misfdep(ji,jj+1)  
     1454 ! point U mbathy(ji,jj) == misfdep(ji,jj+1)  
    14461455         DO jj = 1, jpjm1 
    14471456            DO ji = 1, jpim1 
     
    14801489         ENDIF  
    14811490  
    1482  ! point U misfdep(ji,jj) EQ bathy(ji,jj+1)  
     1491 ! point U misfdep(ji,jj) == bathy(ji,jj+1)  
    14831492         DO jj = 1, jpjm1 
    14841493            DO ji = 1, jpim1 
     
    17491758! end check compatibility ice shelf/bathy 
    17501759      ! remove very shallow ice shelf (less than ~ 10m if 75L) 
     1760      WHERE (risfdep(:,:) <= 10._wp) 
     1761         misfdep = 1; risfdep = 0.0_wp; 
     1762      END WHERE 
     1763 
    17511764      IF( icompt == 0 ) THEN  
    17521765         IF(lwp) WRITE(numout,*)'     no points with ice shelf too close to bathymetry'  
     
    18321845               ENDIF  
    18331846            !       ... on ik / ik-1  
    1834                e3w_0  (ji,jj,ik  ) = e3t_0  (ji,jj,ik)  
     1847               e3w_0  (ji,jj,ik  ) = e3t_0  (ji,jj,ik) !2._wp * (gdept_0(ji,jj,ik) - gdepw_0(ji,jj,ik))  
    18351848               e3t_0  (ji,jj,ik-1) = gdepw_0(ji,jj,ik) - gdepw_1d(ik-1) 
    18361849! The next line isn't required and doesn't affect results - included for consistency with bathymetry code  
Note: See TracChangeset for help on using the changeset viewer.