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 255 for trunk/NEMO/OPA_SRC/ZDF/zdfini.F90 – NEMO

Ignore:
Timestamp:
2005-09-02T17:06:49+02:00 (19 years ago)
Author:
opalod
Message:

nemo_v1_update_002 : CT : Integration of the KPP turbulent closure scheme

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/ZDF/zdfini.F90

    r247 r255  
    1010   !! * Modules used 
    1111   USE par_oce         ! mesh and scale factors 
    12    USE ldftra_oce      ! ??? 
    13    USE ldfdyn_oce      ! ??? 
     12   USE ldftra_oce      ! ocean active tracers: lateral physics 
     13   USE ldfdyn_oce      ! ocean dynamics lateral physics 
    1414   USE zdf_oce         ! TKE vertical mixing           
    15    USE zdftke          ! TKE vertical mixing           
     15   USE lib_mpp         ! distribued memory computing 
     16   USE zdftke          ! TKE vertical mixing   
     17   USE zdfkpp          ! KPP vertical mixing           
    1618   USE zdfddm          ! double diffusion mixing       
    1719   USE zdfevd          ! enhanced vertical diffusion   
    1820   USE zdfric          ! Richardson vertical mixing    
    1921   USE tranpc          ! convection: non penetrative adjustment 
    20    USE ldfslp          ! ??? 
     22   USE ldfslp          ! iso-neutral slopes 
    2123 
    2224   USE in_out_manager  ! I/O manager 
     
    4648      !!        !  97-06  (G. Madec)  Original code from inimix 
    4749      !!   8.5  !  02-08  (G. Madec)  F90 : free form 
     50      !!   9.0  !  05-06  (C. Ethe) KPP parameterization 
    4851      !!---------------------------------------------------------------------- 
    4952      !! * Local declarations 
     
    8487      ! ------------------------ 
    8588      ! ... vertical mixing 
    86       ! time stepping scheme (N.B. TKE scheme => force the use of implicit scheme) 
    87       IF( ln_zdfexp .AND. .NOT.lk_zdftke ) THEN   
     89      ! time stepping scheme (N.B. TKE or KPP schemes => force the use of implicit scheme) 
     90      IF( ( ln_zdfexp .AND. .NOT.lk_zdftke ) .OR. ( ln_zdfexp .AND. .NOT.lk_zdfkpp ) ) THEN   
    8891         l_trazdf_exp = .TRUE.           ! use explicit scheme 
    8992         l_trazdf_imp = .FALSE. 
     
    135138         ioptio = ioptio+1 
    136139      ENDIF 
     140      IF( lk_zdfkpp ) THEN 
     141         IF(lwp) WRITE(numout,*) '             KPP dependent eddy coef.' 
     142         ioptio = ioptio+1 
     143      ENDIF 
    137144      IF( ioptio == 0 .OR. ioptio > 1 .AND. .NOT. lk_esopa ) THEN 
    138145          IF(lwp) WRITE(numout,cform_err) 
     
    156163         IF(lwp) WRITE(numout,*) '             use the 1.5 turbulent closure' 
    157164      ENDIF 
     165      IF( lk_zdfkpp ) THEN 
     166         IF(lwp) WRITE(numout,*) '             use the KPP closure scheme' 
     167         IF(lk_mpp) THEN 
     168            IF(lwp) WRITE(numout,cform_err) 
     169            IF(lwp) WRITE(numout,*) '             The KPP scheme is not ready to run in MPI' 
     170         ENDIF 
     171      ENDIF 
    158172      IF ( ioptio > 1 .AND. .NOT. lk_esopa ) THEN 
    159173          IF(lwp) WRITE(numout,cform_err) 
Note: See TracChangeset for help on using the changeset viewer.