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 1601 for trunk/NEMO/OPA_SRC/LDF/ldftra.F90 – NEMO

Ignore:
Timestamp:
2009-08-11T12:09:19+02:00 (15 years ago)
Author:
ctlod
Message:

Doctor naming of OPA namelist variables , see ticket: #526

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/LDF/ldftra.F90

    r1152 r1601  
    44   !! Ocean physics:  lateral diffusivity coefficient  
    55   !!===================================================================== 
    6    !! History : 
    7    !!        !  07-97  (G. Madec)  from inimix.F split in 2 routines 
    8    !!        !  08-97  (G. Madec)  multi dimensional coefficients 
    9    !!   8.5  !  02-09  (G. Madec)  F90: Free form and module 
    10    !!   9.0  !  05-11  (G. Madec)   
     6   !! History :        ! 1997-07  (G. Madec)  from inimix.F split in 2 routines 
     7   !!   NEMO      1.0  ! 2002-09  (G. Madec)  F90: Free form and module 
     8   !!             2.0  ! 2005-11  (G. Madec)   
     9   !!---------------------------------------------------------------------- 
     10 
    1111   !!---------------------------------------------------------------------- 
    1212   !!   ldf_tra_init : initialization, namelist read, and parameters control 
     
    1515   !!   ldf_tra_c1d   : 1D eddy viscosity coefficient initialization 
    1616   !!---------------------------------------------------------------------- 
    17    !! * Modules used 
    1817   USE oce             ! ocean dynamics and tracers 
    1918   USE dom_oce         ! ocean space and time domain 
     
    2221   USE ldfslp          ! ??? 
    2322   USE in_out_manager  ! I/O manager 
     23   USE ioipsl 
    2424   USE lib_mpp         ! distribued memory computing library 
    2525   USE lbclnk          ! ocean lateral boundary conditions (or mpp link) 
     
    2828   PRIVATE 
    2929 
    30    !! *  Routine accessibility 
    31    PUBLIC ldf_tra_init   ! called by opa.F90 
     30   PUBLIC   ldf_tra_init   ! called by opa.F90 
    3231 
    3332   !! * Substitutions 
    3433#  include "domzgr_substitute.h90" 
    3534#  include "vectopt_loop_substitute.h90" 
    36    !!--------------------------------------------------------------------------------- 
    37    !!   OPA 9.0 , LOCEAN-IPSL (2005)  
     35   !!---------------------------------------------------------------------- 
     36   !! NEMO/OPA 3.2 , LOCEAN-IPSL (2009)  
    3837   !! $Id$ 
    39    !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt 
    40    !!--------------------------------------------------------------------------------- 
     38   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
     39   !!---------------------------------------------------------------------- 
    4140 
    4241CONTAINS 
     
    6261      !!      coefficients are initialized to a hyperbolic tangent vertical 
    6362      !!      profile. 
    64       !! 
    6563      !!---------------------------------------------------------------------- 
    66       USE ioipsl 
    67  
    68       INTEGER ::   ioptio               ! ??? 
     64      INTEGER ::   ioptio               ! temporary integer 
    6965      LOGICAL ::   ll_print = .FALSE.   ! =T print eddy coef. in numout 
    70        
    71       NAMELIST/nam_traldf/ ln_traldf_lap  , ln_traldf_bilap,                & 
    72          &                 ln_traldf_level, ln_traldf_hor, ln_traldf_iso,   & 
    73          &                 aht0, ahtb0, aeiv0 
     66      !!  
     67      NAMELIST/namtra_ldf/ ln_traldf_lap  , ln_traldf_bilap,                  & 
     68         &                 ln_traldf_level, ln_traldf_hor  , ln_traldf_iso,   & 
     69         &                 rn_aht_0       , rn_ahtb_0      , rn_aeiv_0 
    7470      !!---------------------------------------------------------------------- 
    7571 
     
    7773      ! ============================================= 
    7874     
    79       ! Read Namelist nam_traldf : Lateral physics on tracers 
    80       REWIND( numnam ) 
    81       READ  ( numnam, nam_traldf ) 
     75      REWIND( numnam )                  ! Read Namelist namtra_ldf : Lateral physics on tracers 
     76      READ  ( numnam, namtra_ldf ) 
    8277 
    83       IF(lwp) THEN 
     78      IF(lwp) THEN                      ! control print 
    8479         WRITE(numout,*) 
    8580         WRITE(numout,*) 'ldf_tra_init : lateral tracer physics' 
    8681         WRITE(numout,*) '~~~~~~~~~~~~ ' 
    87          WRITE(numout,*) '          Namelist nam_traldf : lateral mixing coefficients' 
    88          WRITE(numout,*) '             laplacian operator          ln_traldf_lap   = ', ln_traldf_lap 
    89          WRITE(numout,*) '             bilaplacian operator        ln_traldf_bilap = ', ln_traldf_bilap 
    90          WRITE(numout,*) '             lateral eddy diffusivity             aht0   = ', aht0 
    91          WRITE(numout,*) '             background hor. diffusivity          ahtb0  = ', ahtb0 
    92          WRITE(numout,*) '             eddy induced velocity coef.          aeiv0  = ', aeiv0 
     82         WRITE(numout,*) '   Namelist namtra_ldf : lateral mixing coefficients' 
     83         WRITE(numout,*) '      laplacian operator            ln_traldf_lap   = ', ln_traldf_lap 
     84         WRITE(numout,*) '      bilaplacian operator          ln_traldf_bilap = ', ln_traldf_bilap 
     85         WRITE(numout,*) '      lateral eddy diffusivity      rn_aht_0        = ', rn_aht_0 
     86         WRITE(numout,*) '      background hor. diffusivity   rn_ahtb_0       = ', rn_ahtb_0 
     87         WRITE(numout,*) '      eddy induced velocity coef.   rn_aeiv_0       = ', rn_aeiv_0 
    9388         WRITE(numout,*) 
    9489      ENDIF 
    9590 
    96       ! Parameter control 
     91      !                                ! convert DOCTOR namelist names into OLD names 
     92      aht0  = rn_aht_0 
     93      ahtb0 = rn_ahtb_0 
     94      aeiv0 = rn_aeiv_0 
     95 
     96      !                                ! Parameter control 
    9797 
    9898      ! ... Check consistency for type and direction : 
     
    112112      IF(lwp) WRITE(numout,*) '          tracer mixing coef. = F( depth )' 
    113113      ioptio = ioptio + 1 
    114       IF( .NOT. ln_zco ) & 
    115            &   CALL ctl_stop( '          key_traldf_c1d can only be used in z-coordinate - full step' ) 
     114      IF( .NOT. ln_zco )   CALL ctl_stop( 'key_traldf_c1d can only be used in z-coordinate - full step' ) 
    116115#endif 
    117116      IF( ioptio == 0 ) THEN 
     
    124123      IF( ln_traldf_bilap ) THEN 
    125124         IF(lwp) WRITE(numout,*) '          biharmonic tracer diffusion' 
    126          IF( aht0 > 0 .AND. .NOT. lk_esopa )   & 
    127               &   CALL ctl_stop( '          The horizontal diffusivity coef. aht0 must be negative' ) 
     125         IF( aht0 > 0 .AND. .NOT. lk_esopa )   CALL ctl_stop( 'The horizontal diffusivity coef. aht0 must be negative' ) 
    128126      ELSE 
    129127         IF(lwp) WRITE(numout,*) '          harmonic tracer diffusion (default)' 
    130          IF( aht0 < 0 .AND. .NOT. lk_esopa )   & 
    131               &   CALL ctl_stop('          The horizontal diffusivity coef. aht0 must be positive' ) 
     128         IF( aht0 < 0 .AND. .NOT. lk_esopa )   CALL ctl_stop('The horizontal diffusivity coef. aht0 must be positive' ) 
    132129      ENDIF 
    133130 
     
    135132      !  Lateral eddy diffusivity and eddy induced velocity coefficients 
    136133      ! ================================================================ 
    137  
    138134#if defined key_traldf_c3d 
    139135      CALL ldf_tra_c3d( ll_print )      ! aht = 3D coef. = F( longitude, latitude, depth ) 
     
    145141                                        ! Constant coefficients 
    146142      IF(lwp)WRITE(numout,*) 
    147       IF(lwp)WRITE(numout,*) '          constant eddy diffusivity coef.   ahtu = ahtv = ahtw = aht0 = ', aht0 
     143      IF(lwp)WRITE(numout,*) '      constant eddy diffusivity coef.   ahtu = ahtv = ahtw = aht0 = ', aht0 
    148144      IF( lk_traldf_eiv ) THEN 
    149145         IF(lwp)WRITE(numout,*) 
    150          IF(lwp)WRITE(numout,*) '          constant eddy induced velocity coef.   aeiu = aeiv = aeiw = aeiv0 = ', aeiv0 
     146         IF(lwp)WRITE(numout,*) '      constant eddy induced velocity coef.   aeiu = aeiv = aeiw = aeiv0 = ', aeiv0 
    151147      ENDIF 
    152148#endif 
    153  
     149      ! 
    154150   END SUBROUTINE ldf_tra_init 
    155151 
Note: See TracChangeset for help on using the changeset viewer.