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 1577 for trunk/NEMO/OPA_SRC/DOM/domzgr.F90 – NEMO

Ignore:
Timestamp:
2009-08-04T16:56:59+02:00 (15 years ago)
Author:
smasson
Message:

update diahth and zdfmxl, see ticket:468

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/DOM/domzgr.F90

    r1566 r1577  
    160160      REAL(wp) ::   zsur, za0, za1, zkth   ! Values set from parameters in 
    161161      REAL(wp) ::   zacr, zdzmin, zhmax    ! par_CONFIG_Rxx.h90 
     162      REAL(wp) ::   zrefdep                ! depth of the reference level (~10m) 
    162163      !!---------------------------------------------------------------------- 
    163164 
     
    230231         gdepw_0(1) = 0.e0                     ! force first w-level to be exactly at zero 
    231232      ENDIF 
     233 
     234      ! deepest/shallowest W level Above/Bellow ~10m 
     235      zrefdep = 10. - ( 0.1*MINVAL(e3w_0) )                          ! ref. depth with tolerance (10% of minimum layer thickness) 
     236      nlb10 = MINLOC( gdepw_0, mask = gdepw_0 > zrefdep, dim = 1 )   ! shallowest W level Bellow ~10m 
     237      nla10 = nlb10 - 1                                              ! deepest    W level Above  ~10m 
    232238 
    233239      IF(lwp) THEN                        ! control print 
Note: See TracChangeset for help on using the changeset viewer.