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 4616 for branches/2014/dev_CNRS0_NOC1_LDF/NEMOGCM/NEMO/OPA_SRC/TRA/traldf_lap.F90 – NEMO

Ignore:
Timestamp:
2014-04-06T17:28:25+02:00 (10 years ago)
Author:
gm
Message:

#1260 : see the associated wiki page for explanation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2014/dev_CNRS0_NOC1_LDF/NEMOGCM/NEMO/OPA_SRC/TRA/traldf_lap.F90

    r4596 r4616  
    3838   PUBLIC   tra_ldf_blp   ! routine called by step.F90 
    3939 
    40    REAL(wp), SAVE, ALLOCATABLE, DIMENSION(:,:) ::   e1ur, e2vr   ! scale factor coefficients 
    41  
    4240   !! * Substitutions 
    4341#  include "domzgr_substitute.h90" 
     
    6159      !!      fields (forward time scheme). The horizontal diffusive trends of  
    6260      !!      the tracer is given by: 
    63       !!          difft = 1/(e1t*e2t*e3t) {  di-1[ pahu e2u*e3u/e1u di(tb) ] 
    64       !!                                   + dj-1[ pahv e1v*e3v/e2v dj(tb) ] } 
     61      !!          difft = 1/(e1e2t*e3t) {  di-1[ pahu e2u*e3u/e1u di(tb) ] 
     62      !!                                 + dj-1[ pahv e1v*e3v/e2v dj(tb) ] } 
    6563      !!      Add this trend to the general tracer trend pta : 
    6664      !!          pta = pta + difft 
     
    9896         DO jj = 1, jpjm1 
    9997            DO ji = 1, fs_jpim1   ! vector opt. 
    100                zaheeu(ji,jj,jk) = pahu(ji,jj,jk) * e2u(ji,jj) * fse3u(ji,jj,jk) / e1u(ji,jj)   !!gm   * umask(ji,jj,jk) 
    101                zaheev(ji,jj,jk) = pahv(ji,jj,jk) * e1v(ji,jj) * fse3v(ji,jj,jk) / e2v(ji,jj)   !!gm   * vmask(ji,jj,jk) 
     98               zaheeu(ji,jj,jk) = pahu(ji,jj,jk) * e2_e1u(ji,jj) * fse3u(ji,jj,jk)   !!gm   * umask(ji,jj,jk) 
     99               zaheev(ji,jj,jk) = pahv(ji,jj,jk) * e1_e2v(ji,jj) * fse3v(ji,jj,jk)   !!gm   * vmask(ji,jj,jk) 
    102100            END DO 
    103101         END DO 
Note: See TracChangeset for help on using the changeset viewer.