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 3876 for branches/2013/dev_r3858_CNRS3_Ediag/NEMOGCM/NEMO/OPA_SRC/ZDF – NEMO

Ignore:
Timestamp:
2013-04-19T08:48:21+02:00 (11 years ago)
Author:
gm
Message:

dev_r3858_CNRS3_Ediag: #927 phasing with 2011/dev_r3309_LOCEAN12_Ediag branche + mxl diag update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2013/dev_r3858_CNRS3_Ediag/NEMOGCM/NEMO/OPA_SRC/ZDF/zdfmxl.F90

    r3294 r3876  
    66   !! History :  1.0  ! 2003-08  (G. Madec)  original code 
    77   !!            3.2  ! 2009-07  (S. Masson, G. Madec)  IOM + merge of DO-loop 
     8   !!            3.5  ! 2012-03  (G. Madec)  make public the density criteria for trdmxl  
    89   !!---------------------------------------------------------------------- 
    910   !!   zdf_mxl      : Compute the turbocline and mixed layer depths. 
     
    2930   REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) ::   hmlp    !: mixed layer depth  (rho=rho0+zdcrit) [m] 
    3031   REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) ::   hmlpt   !: mixed layer depth at t-points        [m] 
     32 
     33   REAL(wp), PUBLIC ::   rho_c = 0.01_wp    !: density criterion for mixed layer depth 
     34   REAL(wp)         ::   avt_c = 5.e-4_wp   ! Kz criterion for the turbocline depth 
    3135 
    3236   !! * Substitutions 
     
    6367      !! ** Method  :   The mixed layer depth is the shallowest W depth with  
    6468      !!      the density of the corresponding T point (just bellow) bellow a 
    65       !!      given value defined locally as rho(10m) + zrho_c 
     69      !!      given value defined locally as rho(10m) + rho_c 
    6670      !!               The turbocline depth is the depth at which the vertical 
    6771      !!      eddy diffusivity coefficient (resulting from the vertical physics 
    6872      !!      alone, not the isopycnal part, see trazdf.F) fall below a given 
    69       !!      value defined locally (avt_c here taken equal to 5 cm/s2) 
     73      !!      value defined locally (avt_c here taken equal to 5 cm/s2 by default) 
    7074      !! 
    7175      !! ** Action  :   nmln, hmld, hmlp, hmlpt 
     
    7680      INTEGER  ::   iikn, iiki          ! temporary integer within a do loop 
    7781      INTEGER, POINTER, DIMENSION(:,:) ::   imld                ! temporary workspace 
    78       REAL(wp) ::   zrho_c = 0.01_wp    ! density criterion for mixed layer depth 
    79       REAL(wp) ::   zavt_c = 5.e-4_wp   ! Kz criterion for the turbocline depth 
    8082      !!---------------------------------------------------------------------- 
    8183      ! 
     
    98100         DO jj = 1, jpj 
    99101            DO ji = 1, jpi 
    100                IF( rhop(ji,jj,jk) > rhop(ji,jj,nla10) + zrho_c )   nmln(ji,jj) = jk      ! Mixed layer 
    101                IF( avt (ji,jj,jk) < zavt_c                     )   imld(ji,jj) = jk      ! Turbocline  
     102               IF( rhop(ji,jj,jk) > rhop(ji,jj,nla10) + rho_c )   nmln(ji,jj) = jk      ! Mixed layer 
     103               IF( avt (ji,jj,jk) < avt_c                     )   imld(ji,jj) = jk      ! Turbocline  
    102104            END DO 
    103105         END DO 
Note: See TracChangeset for help on using the changeset viewer.