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 2309 – NEMO

Changeset 2309


Ignore:
Timestamp:
2010-10-25T16:42:27+02:00 (13 years ago)
Author:
cbricaud
Message:

save bottom stress for next time step for zdfgls with explicit vertical diffusion scheme

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/nemo_v3_3_beta/NEMOGCM/NEMO/OPA_SRC/ZDF/zdfbfr.F90

    r2287 r2309  
    4646 
    4747   !! * Substitutions 
     48#  include "vectopt_loop_substitute.h90" 
    4849#  include "domzgr_substitute.h90" 
    4950   !!---------------------------------------------------------------------- 
     
    119120      ENDIF 
    120121      ! 
     122 
     123      !zdfgls case with explicit vertical diffusion scheme: save bottom stress for next time step 
     124 
     125#if defined key_zdfgls && defined key_dynspg_exp 
     126      DO jj = 2, jpjm1 
     127         DO ji = fs_2, fs_jpim1   ! vector opt. 
     128            !  
     129            ikbu   = MIN( mbathy(ji+1,jj  ), mbathy(ji,jj) ) 
     130            ikbum1 = MAX( ikbu-1, 1 ) 
     131            wbotu(ji,jj) = bfrua(ji,jj) * un(ji,jj,ikbum1) * umask(ji,jj,ikbum1) 
     132            ! 
     133            ikbv   = MIN( mbathy(ji,jj+1), mbathy(ji,jj) ) 
     134            ikbvm1 = MAX( ikbv-1, 1 ) 
     135            wbotv(ji,jj) = bfrva(ji,jj) * vn(ji,jj,ikbvm1) * vmask(ji,jj,ikbvm1) 
     136            ! 
     137         END DO 
     138      END DO 
     139      CALL lbc_lnk( wbotu(:,:), 'U', -1. ) 
     140      CALL lbc_lnk( wbotv(:,:), 'V', -1. ) 
     141#endif 
     142 
    121143   END SUBROUTINE zdf_bfr 
    122144 
Note: See TracChangeset for help on using the changeset viewer.