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

Changeset 8473


Ignore:
Timestamp:
2017-08-30T11:38:39+02:00 (7 years ago)
Author:
timgraham
Message:

Corrected fix for #1935 (not using variables that don't exist in nemo_v3_6_stable)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/nemo_v3_6_STABLE/NEMOGCM/NEMO/OPA_SRC/DIA/diawri.F90

    r8464 r8473  
    300300            DO jj = 2, jpjm1 
    301301               DO ji = fs_2, fs_jpim1   ! vector opt. 
    302                   zztmp   =  r1_e1e2t(ji,jj) / fse3t(ji,jj,jk)  
    303                   zztmpx  = 0.5 * (  un(ji-1,jj,jk) * un(ji-1,jj,jk) * e1e2u(ji-1,jj) * fse3u(ji-1,jj,jk)    & 
    304                      &             + un(ji  ,jj,jk) * un(ji  ,jj,jk) * e1e2u(ji  ,jj) * fse3u(ji  ,jj,jk) )  & 
     302                  zztmp   =  1 / (e1e2t(ji,jj) * fse3t(ji,jj,jk)) 
     303                  zztmpx  = 0.5 * (  un(ji-1,jj,jk) * un(ji-1,jj,jk) * e1u(ji-1,jj) * e2u(ji-1,jj) * fse3u(ji-1,jj,jk)    & 
     304                     &             + un(ji  ,jj,jk) * un(ji  ,jj,jk) * e1u(ji,  jj) * e2u(ji  ,jj) * fse3u(ji  ,jj,jk) )  & 
    305305                     &          *  zztmp  
    306306                  ! 
    307                   zztmpy  = 0.5 * (  vn(ji,jj-1,jk) * vn(ji,jj-1,jk) * e1e2v(ji,jj-1) * fse3v(ji,jj-1,jk)    & 
    308                      &             + vn(ji,jj  ,jk) * vn(ji,jj  ,jk) * e1e2v(ji,jj  ) * fse3v(ji,jj  ,jk) )  & 
     307                  zztmpy  = 0.5 * (  vn(ji,jj-1,jk) * vn(ji,jj-1,jk) * e1v(ji,jj-1) * e2v(ji,jj-1) * fse3v(ji,jj-1,jk)    & 
     308                     &             + vn(ji,jj  ,jk) * vn(ji,jj  ,jk) * e1v(ji,jj  ) * e2v(ji,jj  ) * fse3v(ji,jj  ,jk) )  & 
    309309                     &          *  zztmp  
    310310                  ! 
Note: See TracChangeset for help on using the changeset viewer.