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 1662 for trunk/NEMO/OPA_SRC/TRD – NEMO

Ignore:
Timestamp:
2009-10-14T18:51:06+02:00 (15 years ago)
Author:
rblod
Message:

Correction of major bug on bottom friction, see ticket #233

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/TRD/trdmod.F90

    r1601 r1662  
    127127                     ztswu(ji,jj) = utau(ji,jj) / ( fse3u(ji,jj,1)*rau0 ) 
    128128                     ztswv(ji,jj) = vtau(ji,jj) / ( fse3v(ji,jj,1)*rau0 ) 
    129                      ! save bottom friction momentum fluxes 
    130                      ikbu   = MIN( mbathy(ji+1,jj  ), mbathy(ji,jj) ) 
    131                      ikbv   = MIN( mbathy(ji  ,jj+1), mbathy(ji,jj) ) 
    132                      ikbum1 = MAX( ikbu-1, 1 ) 
    133                      ikbvm1 = MAX( ikbv-1, 1 ) 
    134                      zua = ua(ji,jj,ikbum1) * r2dt + ub(ji,jj,ikbum1) 
    135                      zva = va(ji,jj,ikbvm1) * r2dt + vb(ji,jj,ikbvm1) 
    136                      ztbfu(ji,jj) = - avmu(ji,jj,ikbu) * zua / ( fse3u(ji,jj,ikbum1)*fse3uw(ji,jj,ikbu) ) 
    137                      ztbfv(ji,jj) = - avmv(ji,jj,ikbv) * zva / ( fse3v(ji,jj,ikbvm1)*fse3vw(ji,jj,ikbv) ) 
     129                     ! bottom friction contribution now handled explicitly 
    138130                     ! 
    139131                     ptrdx(ji,jj,1     ) = ptrdx(ji,jj,1     ) - ztswu(ji,jj) 
     
    146138               CALL trd_icp( ptrdx, ptrdy, jpicpd_zdf, ctype )    
    147139               CALL trd_icp( ztswu, ztswv, jpicpd_swf, ctype )                               ! wind stress forcing term 
    148                CALL trd_icp( ztbfu, ztbfv, jpicpd_bfr, ctype )                               ! bottom friction term 
     140               ! bottom friction contribution now handled explicitly 
     141            CASE ( jpdyn_trd_bfr )   ;   CALL trd_icp( ptrdx, ptrdy, jpicpd_bfr, ctype )     ! bottom friction term 
    149142            END SELECT 
    150143            ! 
Note: See TracChangeset for help on using the changeset viewer.