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 2528 for trunk/NEMOGCM/NEMO/OPA_SRC/ZDF/zdftmx.F90 – NEMO

Ignore:
Timestamp:
2010-12-27T18:33:53+01:00 (13 years ago)
Author:
rblod
Message:

Update NEMOGCM from branch nemo_v3_3_beta

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/NEMO/OPA_SRC/ZDF/zdftmx.F90

    • Property svn:keywords set to Id
    r1601 r2528  
    66   !! History :  1.0  !  2004-04  (L. Bessieres, G. Madec)  Original code 
    77   !!             -   !  2006-08  (A. Koch-Larrouy) Indonesian strait 
     8   !!            3.3  !  2010-10  (C. Ethe, G. Madec) reorganisation of initialisation phase 
    89   !!---------------------------------------------------------------------- 
    910#if defined key_zdftmx 
     
    2728   PRIVATE 
    2829 
    29    PUBLIC   zdf_tmx    ! called in step module  
     30   PUBLIC   zdf_tmx         ! called in step module  
     31   PUBLIC   zdf_tmx_init    ! called in opa module  
    3032 
    3133   LOGICAL, PUBLIC, PARAMETER ::   lk_zdftmx = .TRUE.    !: tidal mixing flag 
     
    4749#  include "vectopt_loop_substitute.h90" 
    4850   !!---------------------------------------------------------------------- 
    49    !! NEMO/OPA 3.2 , LOCEAN-IPSL (2009)  
    50    !! $Id$  
    51    !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
     51   !! NEMO/OPA 3.3 , NEMO Consortium (2010) 
     52   !! $Id$ 
     53   !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) 
    5254   !!---------------------------------------------------------------------- 
    5355 
     
    9698      REAL(wp), DIMENSION(jpi,jpj) ::   zkz   ! temporary 2D workspace 
    9799      !!---------------------------------------------------------------------- 
    98  
    99       !                         
    100       IF( kt == nit000  )   CALL zdf_tmx_init      ! Initialization (first time-step only) 
    101100 
    102101      !                          ! ----------------------- ! 
     
    372371      DO jj = 1, jpj                ! part independent of the level 
    373372         DO ji = 1, jpi 
    374             zhdep(ji,jj) = fsdepw(ji,jj,mbathy(ji,jj))       ! depth of the ocean 
     373            zhdep(ji,jj) = fsdepw(ji,jj,mbkt(ji,jj)+1)       ! depth of the ocean 
    375374            zfact(ji,jj) = rau0 * rn_htmx * ( 1. - EXP( -zhdep(ji,jj) / rn_htmx ) ) 
    376375            IF( zfact(ji,jj) /= 0 )   zfact(ji,jj) = en_tmx(ji,jj) / zfact(ji,jj) 
     
    488487         ! 
    489488      ENDIF 
    490  
     489      ! 
    491490   END SUBROUTINE zdf_tmx_init 
    492491 
     
    497496   LOGICAL, PUBLIC, PARAMETER ::   lk_zdftmx = .FALSE.   !: tidal mixing flag 
    498497CONTAINS 
    499    SUBROUTINE zdf_tmx( kt )          ! Empty routine 
     498   SUBROUTINE zdf_tmx_init           ! Dummy routine 
     499      WRITE(*,*) 'zdf_tmx: You should not have seen this print! error?' 
     500   END SUBROUTINE zdf_tmx_init 
     501   SUBROUTINE zdf_tmx( kt )          ! Dummy routine 
    500502      WRITE(*,*) 'zdf_tmx: You should not have seen this print! error?', kt 
    501503   END SUBROUTINE zdf_tmx 
Note: See TracChangeset for help on using the changeset viewer.