Skip to content

Commit

Permalink
Fix a bug in the vmGM field when using GEOMETRIC
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavo-marques committed Mar 10, 2020
1 parent 0eb0615 commit c429824
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 c429824

Please sign in to comment.