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 1695 for trunk/NEMO/OPA_SRC/SBC/sbc_oce.F90 – NEMO

Ignore:
Timestamp:
2009-10-30T17:42:38+01:00 (14 years ago)
Author:
smasson
Message:

wind stress module directly at T-point, see ticket:577

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/SBC/sbc_oce.F90

    r1534 r1695  
    1111   IMPLICIT NONE 
    1212   PRIVATE 
    13     
    14    PUBLIC sbc_tau2wnd   ! compute wind speed based on the wind stress 
    1513    
    1614   !!---------------------------------------------------------------------- 
     
    4139   REAL(wp), PUBLIC, DIMENSION(jpi,jpj) ::   utau      !: sea surface i-stress (ocean referential)     [N/m2] 
    4240   REAL(wp), PUBLIC, DIMENSION(jpi,jpj) ::   vtau      !: sea surface j-stress (ocean referential)     [N/m2] 
    43    REAL(wp), PUBLIC, DIMENSION(jpi,jpj) ::   wndm      !: wind speed module at T-point (=|U10m-Uoce|)  [m/s] 
     41   REAL(wp), PUBLIC, DIMENSION(jpi,jpj) ::   taum      !: module of sea surface stress (at T-point)    [N/m2]  
     42   REAL(wp), PUBLIC, DIMENSION(jpi,jpj) ::   wndm      !: wind speed module at T-point (=|U10m-Uoce|)  [m/s] Used only in PISCES 
    4443   REAL(wp), PUBLIC, DIMENSION(jpi,jpj) ::   qsr       !: sea heat flux:     solar                     [W/m2] 
    4544   REAL(wp), PUBLIC, DIMENSION(jpi,jpj) ::   qns       !: sea heat flux: non solar                     [W/m2] 
     
    7372   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
    7473   !!====================================================================== 
    75 CONTAINS 
    76  
    77    SUBROUTINE sbc_tau2wnd 
    78       !!--------------------------------------------------------------------- 
    79       !!                    ***  ROUTINE sbc_tau2wnd  *** 
    80       !!                    
    81       !! ** Purpose : Estimation of wind speed as a function of wind stress    
    82       !! 
    83       !! ** Method  : |tau|=rhoa*Cd*|U|^2 
    84       !!--------------------------------------------------------------------- 
    85       USE dom_oce         ! ocean space and time domain 
    86       USE lbclnk          ! ocean lateral boundary conditions (or mpp link) 
    87       REAL(wp) ::   zrhoa  = 1.22         ! Air density kg/m3 
    88       REAL(wp) ::   zcdrag = 1.5e-3       ! drag coefficient 
    89       REAL(wp) ::   ztx, zty, ztau, zcoef ! temporary variables 
    90       INTEGER  ::   ji, jj                ! dummy indices 
    91       !! * Substitutions 
    92 #  include "vectopt_loop_substitute.h90" 
    93       !!--------------------------------------------------------------------- 
    94       zcoef = 0.5 / ( zrhoa * zcdrag )  
    95 !CDIR NOVERRCHK 
    96       DO jj = 2, jpjm1 
    97 !CDIR NOVERRCHK 
    98          DO ji = fs_2, fs_jpim1   ! vect. opt. 
    99             ztx = utau(ji-1,jj  ) + utau(ji,jj)  
    100             zty = vtau(ji  ,jj-1) + vtau(ji,jj)  
    101             ztau = SQRT( ztx * ztx + zty * zty ) 
    102             wndm(ji,jj) = SQRT ( ztau * zcoef ) * tmask(ji,jj,1) 
    103          END DO 
    104       END DO 
    105       CALL lbc_lnk( wndm(:,:) , 'T', 1. ) 
    106  
    107    END SUBROUTINE sbc_tau2wnd 
    10874 
    10975END MODULE sbc_oce 
Note: See TracChangeset for help on using the changeset viewer.