Skip to content

Commit 00d99ea

Browse files
committed
(*)Multiply fmax by US%s_to_T in MOM_hor_visc.F90
Added a dimensional scaling factor for fmax in MOM_hor_visc.F90 that was dropped at some point in the merging of the dev/ncar code into dev/gfdl. All answers are bitwise identical and now pass the dimensional scaling test.
1 parent 7a9cf32 commit 00d99ea

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/parameterizations/lateral/MOM_hor_visc.F90

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,8 @@ subroutine horizontal_viscosity(u, v, h, diffu, diffv, MEKE, VarMix, G, GV, US,
270270
grad_vort_mag_q_2d, & ! Magnitude of 2d vorticity gradient at q-points [m-1 s-1]
271271
grad_div_mag_q, & ! Magnitude of divergence gradient at q-points [m-1 s-1]
272272
grad_vel_mag_q, & ! Magnitude of the velocity gradient tensor squared at q-points [s-2]
273-
hq, & ! harmonic mean of the harmonic means of the u- & v point thicknesses, in H; This form guarantees that hq/hu < 4.
273+
hq, & ! harmonic mean of the harmonic means of the u- & v point thicknesses [H ~> m or kg m-2]
274+
! This form guarantees that hq/hu < 4.
274275
grad_vel_mag_bt_q ! Magnitude of the barotropic velocity gradient tensor squared at q-points [s-2]
275276

276277
real, dimension(SZIB_(G),SZJB_(G),SZK_(G)) :: &
@@ -1900,8 +1901,8 @@ subroutine hor_visc_init(Time, G, US, param_file, diag, CS)
19001901
if (CS%Smagorinsky_Ah) then
19011902
CS%Biharm_const_xx(i,j) = Smag_bi_const * (grid_sp_h2 * grid_sp_h2)
19021903
if (CS%bound_Coriolis) then
1903-
fmax = MAX(abs(G%CoriolisBu(I-1,J-1)), abs(G%CoriolisBu(I,J-1)), &
1904-
abs(G%CoriolisBu(I-1,J)), abs(G%CoriolisBu(I,J)))
1904+
fmax = US%s_to_T*MAX(abs(G%CoriolisBu(I-1,J-1)), abs(G%CoriolisBu(I,J-1)), &
1905+
abs(G%CoriolisBu(I-1,J)), abs(G%CoriolisBu(I,J)))
19051906
CS%Biharm_const2_xx(i,j) = (grid_sp_h2 * grid_sp_h2 * grid_sp_h2) * &
19061907
(fmax * BoundCorConst)
19071908
endif

0 commit comments

Comments
 (0)