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 2493 – NEMO

Changeset 2493


Ignore:
Timestamp:
2010-12-20T14:47:12+01:00 (13 years ago)
Author:
gm
Message:

v3.3beta: #777 backward compatibility with the setting of the minimum ocean depth: set mbathy to 0 over lands

File:
1 edited

Legend:

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

    r2482 r2493  
    805805      INTEGER  ::   ji, jj, jk       ! dummy loop indices 
    806806      INTEGER  ::   ik, it           ! temporary integers 
    807       INTEGER  ::   nlbelow          ! temporary integer 
    808807      LOGICAL  ::   ll_print         ! Allow  control print for debugging 
    809808      REAL(wp) ::   ze3tp , ze3wp    ! Last ocean level thickness at T- and W-points 
     
    833832      ! =================== 
    834833      zmax = gdepw_0(jpk) + e3t_0(jpk)          ! maximum depth (i.e. the last ocean level thickness <= 2*e3t_0(jpkm1) ) 
    835       mbathy(:,:) = jpkm1                       ! initialize mbathy to the maximum ocean level available 
    836834      bathy(:,:) = MIN( zmax ,  bathy(:,:) )    ! bounded value of bathy (min already set at the end of zgr_bat) 
     835      WHERE( bathy(:,:) == 0._wp )   ;   mbathy(:,:) = 0       ! land  : set mbathy to 0 
     836      ELSE WHERE                     ;   mbathy(:,:) = jpkm1   ! ocean : initialize mbathy to the max ocean level 
     837      END WHERE 
    837838 
    838839      ! Compute mbathy for ocean points (i.e. the number of ocean levels) 
Note: See TracChangeset for help on using the changeset viewer.