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 888 for trunk/NEMO/OPA_SRC/ZDF – NEMO

Changeset 888 for trunk/NEMO/OPA_SRC/ZDF


Ignore:
Timestamp:
2008-04-11T19:05:03+02:00 (16 years ago)
Author:
ctlod
Message:

merge dev_001_SBC branche with the trunk to include the New Surface Module package, see ticket: #113

Location:
trunk/NEMO/OPA_SRC/ZDF
Files:
2 edited

Legend:

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

    r719 r888  
    2121   USE dom_oce         ! ocean space and time domain 
    2222   USE zdf_oce         ! ocean vertical physics 
     23   USE sbc_oce         ! surface boundary condition: ocean 
    2324   USE phycst          ! physical constants 
    24    USE taumod          ! surface stress 
    2525   USE eosbn2          ! equation of state 
    26    USE ocesbc          ! thermohaline fluxes 
    2726   USE zdfddm          ! double diffusion mixing 
    2827   USE in_out_manager  ! I/O manager 
     
    148147   !!---------------------------------------------------------------------- 
    149148   !!   OPA 9.0 , LOCEAN-IPSL   (2005) 
    150    !! $Header$  
     149   !! $Id$ 
    151150   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
    152151   !!---------------------------------------------------------------------- 
     
    460459            zBosol(ji,jj) = grav * zthermal * qsr(ji,jj) 
    461460            ! Non radiative surface buoyancy force 
    462             zBo   (ji,jj) = grav * zthermal * ( qt(ji,jj) - qsr(ji,jj) ) -  grav * zhalin * emp(ji,jj) 
     461            zBo   (ji,jj) = grav * zthermal * qns(ji,jj) -  grav * zhalin * emp(ji,jj) 
    463462            ! Surface Temperature flux for non-local term 
    464             wt0(ji,jj) = - qt(ji,jj) * ro0cpr * tmask(ji,jj,1) 
     463            wt0(ji,jj) = - ( qsr(ji,jj) + qns(ji,jj) )* ro0cpr * tmask(ji,jj,1) 
    465464            ! Surface salinity flux for non-local term 
    466465            ws0(ji,jj) = - ( emp(ji,jj) * sn(ji,jj,1) * rcs ) * tmask(ji,jj,1) 
     
    476475            zrhos         = rhop(ji,jj,1) + zflageos * rau0 * ( 1. - tmask(ji,jj,1) )   
    477476            ! Friction velocity (zustar), at T-point : LMD94 eq. 2 
    478             ztx           = 0.5 * ( taux(ji,jj) + taux(ji - 1, jj    ) ) 
    479             zty           = 0.5 * ( tauy(ji,jj) + tauy(ji    , jj - 1) ) 
     477            ztx           = 0.5 * ( utau(ji,jj) + utau(ji - 1, jj    ) ) 
     478            zty           = 0.5 * ( vtau(ji,jj) + vtau(ji    , jj - 1) ) 
    480479            ztau          = SQRT( ztx * ztx + zty * zty ) 
    481480            zustar(ji,jj) = SQRT( ztau / ( zrhos +  epsln ) ) 
  • trunk/NEMO/OPA_SRC/ZDF/zdftke.F90

    r789 r888  
    3131   USE dom_oce         ! ocean space and time domain 
    3232   USE zdf_oce         ! ocean vertical physics 
     33   USE sbc_oce         ! surface boundary condition: ocean 
    3334   USE phycst          ! physical constants 
    34    USE taumod          ! surface stress 
    3535   USE lbclnk          ! ocean lateral boundary conditions (or mpp link) 
    3636   USE prtctl          ! Print control 
     
    7979   !!---------------------------------------------------------------------- 
    8080   !!   OPA 9.0 , LOCEAN-IPSL (2006)  
    81    !! $Header: /home/opalod/NEMOCVSROOT/NEMO/OPA_SRC/ZDF/zdftke.F90,v 1.16 2007/06/05 10:39:27 opalod Exp $  
     81   !! $Id$ 
    8282   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
    8383   !!---------------------------------------------------------------------- 
     
    9999      !!                  - ediss / emxl en**(2/3)        ! dissipation 
    100100      !!      with the boundary conditions: 
    101       !!         surface: en = max( emin0,ebb sqrt(taux^2 + tauy^2) ) 
     101      !!         surface: en = max( emin0,ebb sqrt(utau^2 + vtau^2) ) 
    102102      !!         bottom : en = emin 
    103103      !!      -1- The dissipation and mixing turbulent lengh scales are computed 
     
    299299      ! 2. Surface boundary condition on tke and its eddy viscosity (zmxlm) 
    300300      ! ------------------------------------------------- 
    301       ! en(1)   = ebb sqrt(taux^2+tauy^2) / rau0  (min value emin0) 
     301      ! en(1)   = ebb sqrt(utau^2+vtau^2) / rau0  (min value emin0) 
    302302      ! zmxlm(1) = avmb(1) and zmxlm(jpk) = 0. 
    303303!CDIR NOVERRCHK 
     
    305305!CDIR NOVERRCHK 
    306306         DO ji = fs_2, fs_jpim1   ! vector opt. 
    307             ztx2 = taux(ji-1,jj  ) + taux(ji,jj) 
    308             zty2 = tauy(ji  ,jj-1) + tauy(ji,jj) 
     307            ztx2 = utau(ji-1,jj  ) + utau(ji,jj) 
     308            zty2 = vtau(ji  ,jj-1) + vtau(ji,jj) 
    309309            zesurf = zbbrau * SQRT( ztx2 * ztx2 + zty2 * zty2 ) 
    310310            en (ji,jj,1) = MAX( zesurf, emin0 ) * tmask(ji,jj,1) 
Note: See TracChangeset for help on using the changeset viewer.