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

Ignore:
Timestamp:
2009-07-29T16:03:14+02:00 (15 years ago)
Author:
ctlod
Message:

only cosmetic changes

File:
1 edited

Legend:

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

    r1537 r1559  
    11MODULE zdfini 
    22   !!====================================================================== 
    3    !!              ***  MODULE  zdfini  *** 
    4    !! Ocean physics : define vertical mixing variables 
    5    !!===================================================================== 
     3   !!                      ***  MODULE  zdfini  *** 
     4   !! Ocean physics :   read vertical mixing namelist and check consistancy 
     5   !!====================================================================== 
     6   !! History :  8.0  ! 1997-06  (G. Madec)  Original code from inimix 
     7   !!            1.0  ! 2002-08  (G. Madec)  F90 : free form 
     8   !!             -   ! 2005-06  (C. Ethe) KPP parameterization 
     9   !!             -   ! 2009-07  (G. Madec) add avmb, avtb in restart for cen2 advection 
     10   !!---------------------------------------------------------------------- 
    611 
    712   !!---------------------------------------------------------------------- 
    813   !!   zdf_init    : initialization, namelist read, and parameters control 
    914   !!---------------------------------------------------------------------- 
    10    !! * Modules used 
    1115   USE par_oce         ! mesh and scale factors 
    1216   USE ldftra_oce      ! ocean active tracers: lateral physics 
     
    3034   PRIVATE 
    3135 
    32    !! *  Routine accessibility 
    33    PUBLIC zdf_init          ! routine called by opa.F90 
     36   PUBLIC   zdf_init   ! routine called by opa.F90 
     37    
    3438   !!---------------------------------------------------------------------- 
    35    !!   OPA 9.0 , LOCEAN-IPSL (2005)  
     39   !! NEMO/OPA 3.2 , LOCEAN-IPSL (2009)  
    3640   !! $Id$ 
    3741   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
     
    4751      !! 
    4852      !! ** Method  :   Read namelist namzdf, control logicals  
    49       !! 
    50       !! History : 
    51       !!        !  97-06  (G. Madec)  Original code from inimix 
    52       !!   8.5  !  02-08  (G. Madec)  F90 : free form 
    53       !!   9.0  !  05-06  (C. Ethe) KPP parameterization 
    5453      !!---------------------------------------------------------------------- 
    5554      INTEGER ::   ioptio       ! temporary scalar 
     
    5958      !!---------------------------------------------------------------------- 
    6059 
    61       REWIND( numnam )               ! Read nam_zdf namelist : vertical mixing parameters 
     60      REWIND( numnam )           !* Read nam_zdf namelist : vertical mixing parameters 
    6261      READ  ( numnam, nam_zdf ) 
    6362 
    64       IF(lwp) THEN                   ! Parameter print 
     63      IF(lwp) THEN               !* Parameter print 
    6564         WRITE(numout,*) 
    6665         WRITE(numout,*) 'zdf_init: vertical physics' 
     
    8180      ENDIF 
    8281 
    83       ! Parameter & logicals controls 
    84       ! ----------------------------- 
    85       ! ... check of vertical mixing scheme on tracers 
    86       !           ==> will be done in trazdf module 
    87  
    88       ! ... check of mixing coefficient 
     82      !                          !* Parameter & logical controls 
     83      !                          !  ---------------------------- 
     84      ! 
     85      !                               ! ... check of vertical mixing scheme on tracers 
     86      !                                              ==> will be done in trazdf module 
     87      ! 
     88      !                               ! ... check of mixing coefficient 
    8989      IF(lwp) WRITE(numout,*) 
    90       IF(lwp) WRITE(numout,*) '          vertical mixing option :' 
     90      IF(lwp) WRITE(numout,*) '   vertical mixing option :' 
    9191      ioptio = 0 
    9292      IF( lk_zdfcst ) THEN 
    93          IF(lwp) WRITE(numout,*) '             constant eddy diffusion coefficients' 
     93         IF(lwp) WRITE(numout,*) '      constant eddy diffusion coefficients' 
    9494         ioptio = ioptio+1 
    9595      ENDIF 
    9696      IF( lk_zdfric ) THEN 
    97          IF(lwp) WRITE(numout,*) '             Richardson dependent eddy coefficients' 
     97         IF(lwp) WRITE(numout,*) '      Richardson dependent eddy coefficients' 
    9898         ioptio = ioptio+1 
    9999      ENDIF 
    100100      IF( lk_zdftke_old ) THEN 
    101          IF(lwp) WRITE(numout,*) '             TKE dependent eddy coefficients' 
     101         IF(lwp) WRITE(numout,*) '      TKE dependent eddy coefficients' 
    102102         ioptio = ioptio+1 
    103103      ENDIF 
    104104      IF( lk_zdftke ) THEN 
    105          IF(lwp) WRITE(numout,*) '             TKE dependent eddy coefficients' 
     105         IF(lwp) WRITE(numout,*) '      TKE dependent eddy coefficients' 
    106106         ioptio = ioptio+1 
    107107      ENDIF 
    108108      IF( lk_zdfkpp ) THEN 
    109          IF(lwp) WRITE(numout,*) '             KPP dependent eddy coefficients' 
     109         IF(lwp) WRITE(numout,*) '      KPP dependent eddy coefficients' 
    110110         ioptio = ioptio+1 
    111111      ENDIF 
    112112      IF( ioptio == 0 .OR. ioptio > 1 .AND. .NOT. lk_esopa ) & 
    113          CALL ctl_stop( ' one and only one vertical diffusion option has to be defined ' ) 
    114  
    115       ! ... Convection 
     113         &   CALL ctl_stop( ' one and only one vertical diffusion option has to be defined ' ) 
     114      ! 
     115      !                               ! ... Convection 
    116116      IF(lwp) WRITE(numout,*) 
    117       IF(lwp) WRITE(numout,*) '          convection :' 
     117      IF(lwp) WRITE(numout,*) '   convection :' 
    118118      ioptio = 0 
    119119      IF( ln_zdfnpc ) THEN 
    120          IF(lwp) WRITE(numout,*) '             use non penetrative convective scheme' 
     120         IF(lwp) WRITE(numout,*) '      use non penetrative convective scheme' 
    121121         ioptio = ioptio+1 
    122122      ENDIF 
    123123      IF( ln_zdfevd ) THEN 
    124          IF(lwp) WRITE(numout,*) '             use enhanced vertical dif. scheme' 
     124         IF(lwp) WRITE(numout,*) '      use enhanced vertical dif. scheme' 
    125125         ioptio = ioptio+1 
    126126      ENDIF 
    127127      IF( lk_zdftke_old .OR. lk_zdftke ) THEN 
    128          IF(lwp) WRITE(numout,*) '             use the 1.5 turbulent closure' 
     128         IF(lwp) WRITE(numout,*) '      use the 1.5 turbulent closure' 
    129129      ENDIF 
    130130      IF( lk_zdfkpp ) THEN 
    131          IF(lwp) WRITE(numout,*) '             use the KPP closure scheme' 
     131         IF(lwp) WRITE(numout,*) '      use the KPP closure scheme' 
    132132         IF(lk_mpp) THEN 
    133133            IF(lwp) WRITE(numout,cform_err) 
    134             IF(lwp) WRITE(numout,*) '             The KPP scheme is not ready to run in MPI' 
     134            IF(lwp) WRITE(numout,*) 'The KPP scheme is not ready to run in MPI' 
    135135         ENDIF 
    136136      ENDIF 
    137       IF ( ioptio > 1 .AND. .NOT. lk_esopa ) & 
    138            CALL ctl_stop( ' chose between ln_zdfnpc', '           and ln_zdfevd' ) 
     137      IF ( ioptio > 1 .AND. .NOT. lk_esopa )   CALL ctl_stop( ' chose between ln_zdfnpc and ln_zdfevd' ) 
    139138      IF( ioptio == 0 .AND. .NOT.( lk_zdftke_old .OR. lk_zdftke .OR. lk_zdfkpp ) ) & 
    140139         CALL ctl_stop( ' except for TKE sor KPP physics, a convection scheme is', & 
Note: See TracChangeset for help on using the changeset viewer.