Skip to content

Commit

Permalink
Merge pull request #143 from gustavo-marques/fix_vhGM_GEOMETRIC
Browse files Browse the repository at this point in the history
Fix a bug in GM when using MEKE_GEOMETRIC
  • Loading branch information
alperaltuntas authored Mar 12, 2020
2 parents 0eb0615 + c429824 commit c012019
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parameterizations/lateral/MOM_thickness_diffuse.F90
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ subroutine thickness_diffuse(h, uhtr, vhtr, tv, dt, G, GV, US, MEKE, VarMix, CDp
if (associated(MEKE)) then ; if (associated(MEKE%Kh)) then
if (CS%MEKE_GEOMETRIC) then
!$OMP do
do J=js-1,je ; do I=is,ie
Khth_loc(I,j) = Khth_loc(I,j) + G%mask2dCv(i,J) * CS%MEKE_GEOMETRIC_alpha * &
do J=js-1,je ; do i=is,ie
Khth_loc_v(i,J) = Khth_loc_v(i,J) + G%mask2dCv(i,J) * CS%MEKE_GEOMETRIC_alpha * &
0.5*(MEKE%MEKE(i,j)+MEKE%MEKE(i,j+1)) / &
(VarMix%SN_v(i,J) + CS%MEKE_GEOMETRIC_epsilon)
enddo ; enddo
Expand Down

0 comments on commit c012019

Please sign in to comment.