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 2329 for branches/nemo_v3_3_beta/NEMOGCM/NEMO/OPA_SRC/ZDF/zdfgls.F90 – NEMO

Ignore:
Timestamp:
2010-10-28T12:21:58+02:00 (14 years ago)
Author:
gm
Message:

v3.3beta: Suppress old keys (key_diaspr, key_flx..., key_vectopt_memory) & phasing of zdfgls interface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/nemo_v3_3_beta/NEMOGCM/NEMO/OPA_SRC/ZDF/zdfgls.F90

    r2299 r2329  
    55   !!                 turbulent closure parameterization 
    66   !!====================================================================== 
    7    !! History :   3.0  !  2009-09  (G. Reffray) : Original code 
     7   !! History :   3.0  ! 2009-09 (G. Reffray)  Original code 
     8   !!             3.3  ! 2010-10 (C. Bricaud)  add in the reference 
    89   !!---------------------------------------------------------------------- 
    910#if defined key_zdfgls   ||   defined key_esopa 
    1011   !!---------------------------------------------------------------------- 
    1112   !!   'key_zdfgls'                 Generic Length Scale vertical physics 
    12    !!---------------------------------------------------------------------- 
    1313   !!---------------------------------------------------------------------- 
    1414   !!   zdf_gls      : update momentum and tracer Kz from a gls scheme 
     
    3333   PRIVATE 
    3434 
    35    PUBLIC   zdf_gls    ! routine called in step module 
    36    PUBLIC   gls_rst    ! routine called in step module 
     35   PUBLIC   zdf_gls        ! routine called in step module 
     36   PUBLIC   zdf_gls_init   ! routine called in step module 
     37   PUBLIC   gls_rst        ! routine called in step module 
    3738 
    3839   LOGICAL , PUBLIC, PARAMETER              ::   lk_zdfgls = .TRUE.  !: TKE vertical mixing flag 
    3940   REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpk) ::   en                  !: now turbulent kinetic energy 
    4041   REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpk) ::   mxln                !: now mixing length 
    41    REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpk) ::   zwall              !: wall function 
    42    REAL(wp), PUBLIC, DIMENSION(jpi,jpj)     ::   ustars2            !: Squared surface velocity scale at T-points 
    43    REAL(wp), PUBLIC, DIMENSION(jpi,jpj)     ::   ustarb2            !: Squared bottom  velocity scale at T-points 
     42   REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpk) ::   zwall               !: wall function 
     43   REAL(wp), PUBLIC, DIMENSION(jpi,jpj)     ::   ustars2             !: Squared surface velocity scale at T-points 
     44   REAL(wp), PUBLIC, DIMENSION(jpi,jpj)     ::   ustarb2             !: Squared bottom  velocity scale at T-points 
    4445 
    4546   !                                         !!! ** Namelist  namzdf_gls  ** 
    4647   LOGICAL  ::   ln_crban      = .FALSE.      ! =T use Craig and Banner scheme 
    47    LOGICAL  ::   ln_length_lim = .FALSE.      ! use limit on the dissipation rate understable stratification (Galperin et al., 1988) 
     48   LOGICAL  ::   ln_length_lim = .FALSE.      ! use limit on the dissipation rate under stable stratif. (Galperin et al., 1988) 
    4849   LOGICAL  ::   ln_sigpsi     = .FALSE.      ! Activate Burchard (2003) modification for k-eps closure AND wave breaking mixing 
    4950   REAL(wp) ::   rn_epsmin     = 1.e-12_wp    ! minimum value of dissipation (m2/s3) 
     
    113114   !!---------------------------------------------------------------------- 
    114115   !! NEMO/OPA 3.3 , NEMO Consortium (2010) 
    115    !! $Id$ 
    116    !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) 
     116   !! $Id $ 
     117   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt) 
    117118   !!---------------------------------------------------------------------- 
    118  
    119119CONTAINS 
    120120 
     
    150150      !!-------------------------------------------------------------------- 
    151151 
    152       IF( kt == nit000  ) CALL zdf_gls_init        ! Initialization (first time-step only) 
    153  
    154       !!-------------------------------------------------------------------- 
    155152      ! Preliminary computing 
    156153 
     
    905902   END SUBROUTINE zdf_gls 
    906903 
     904 
    907905   SUBROUTINE zdf_gls_init 
    908906      !!---------------------------------------------------------------------- 
     
    920918      !! 
    921919      !!---------------------------------------------------------------------- 
    922       USE dynzdf_exp 
    923       USE trazdf_exp 
    924       ! 
    925 # if defined key_vectopt_memory 
    926       INTEGER ::   ji, jj, jk   ! dummy loop indices 
    927 # else 
    928       INTEGER ::           jk   ! dummy loop indices 
    929 # endif 
    930       REAL(wp)::   zcr 
     920      INTEGER ::   jk    ! dummy loop indices 
     921      REAL(wp)::   zcr   ! local scalar 
    931922      !! 
    932923      NAMELIST/namzdf_gls/rn_emin, rn_epsmin, ln_length_lim, & 
     
    12321223   END SUBROUTINE zdf_gls_init 
    12331224 
     1225 
    12341226   SUBROUTINE gls_rst( kt, cdrw ) 
    12351227     !!--------------------------------------------------------------------- 
     
    12441236     INTEGER         , INTENT(in) ::   kt         ! ocean time-step 
    12451237     CHARACTER(len=*), INTENT(in) ::   cdrw       ! "READ"/"WRITE" flag 
    1246      ! 
     1238     !! 
    12471239     INTEGER ::   jit, jk   ! dummy loop indices 
    12481240     INTEGER ::   id1, id2, id3, id4, id5, id6, id7, id8 
Note: See TracChangeset for help on using the changeset viewer.