Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 203a19f

Browse files
Hallberg-NOAAadcroft
authored andcommitted
Fix a rescaling bug with MEKE_EQUILIBRIUM_ALT
Corrected a bug in a dimensional rescaling factor that will cause test cases using MEKE with MEKE_EQUILIBRIUM_ALT = True to fail dimensional consistency testing. However, answers are unchanged when no rescaling is used. This minor bug has been in the code since the MEKE_EQUILIBRIUM_ALT was first introduced in 2019. All answers in the existing MOM6-examples test suite are bitwise identical.
1 parent 27bb8b8 commit 203a19f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/parameterizations/lateral/MOM_MEKE.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ subroutine MEKE_equilibrium(CS, MEKE, G, GV, US, SN_u, SN_v, drag_rate_visc, I_m
721721
SN = min(SN_u(I,j), SN_u(I-1,j), SN_v(i,J), SN_v(i,J-1))
722722

723723
if (CS%MEKE_equilibrium_alt) then
724-
MEKE%MEKE(i,j) = (CS%MEKE_GEOMETRIC_alpha * SN * US%Z_to_m*depth_tot(i,j))**2 / cd2
724+
MEKE%MEKE(i,j) = (CS%MEKE_GEOMETRIC_alpha * SN * US%Z_to_L*depth_tot(i,j))**2 / cd2
725725
else
726726
FatH = 0.25*((G%CoriolisBu(I,J) + G%CoriolisBu(I-1,J-1)) + &
727727
(G%CoriolisBu(I-1,J) + G%CoriolisBu(I,J-1))) ! Coriolis parameter at h points

0 commit comments

Comments
 (0)