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 1643 for trunk/NEMO – NEMO

Changeset 1643 for trunk/NEMO


Ignore:
Timestamp:
2009-10-07T15:44:29+02:00 (15 years ago)
Author:
cetlod
Message:

Correction in estimation of wind module with masked wind stress

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OFF_SRC/dtadyn.F90

    r1501 r1643  
    2020   USE ldftra_oce      ! ocean tracer   lateral physics 
    2121   USE zdfmxl 
    22    USE trabbl          ! tracers: bottom boundary layer 
     22   USE trabbl 
    2323   USE eosbn2 
    2424   USE zdfddm          ! vertical  physics: double diffusion 
     
    673673      INTEGER  ::   ji, jj                ! dummy indices 
    674674      !!--------------------------------------------------------------------- 
    675       zcoef = 0.5 / ( zrhoa * zcdrag ) 
     675      zcoef = 1. / ( zrhoa * zcdrag ) 
    676676!CDIR NOVERRCHK 
    677       DO jj = 2, jpjm1 
     677      DO jj = 1, jpj 
    678678!CDIR NOVERRCHK 
    679          DO ji = fs_2, fs_jpim1   ! vect. opt. 
    680             ztx = ptaux(ji-1,jj  ) + ptaux(ji,jj) 
    681             zty = ptauy(ji  ,jj-1) + ptauy(ji,jj) 
     679         DO ji = 1, jpi   ! vect. opt. 
     680            ztx = ptaux(ji,jj) * umask(ji,jj,1) 
     681            zty = ptauy(ji,jj) * vmask(ji,jj,1) 
    682682            ztau = SQRT( ztx * ztx + zty * zty ) 
    683683            pwspd(ji,jj) = SQRT ( ztau * zcoef ) * tmask(ji,jj,1) 
    684684         END DO 
    685685      END DO 
    686       CALL lbc_lnk( pwspd(:,:) , 'T', 1. ) 
    687686 
    688687   END SUBROUTINE tau2wnd 
Note: See TracChangeset for help on using the changeset viewer.