Skip to content

Commit 8a73a35

Browse files
Merge branch 'dev/gfdl' into no_more_pointers
2 parents d00c90b + 7b96ac1 commit 8a73a35

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/parameterizations/lateral/MOM_hor_visc.F90

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -991,16 +991,16 @@ subroutine horizontal_viscosity(u, v, h, diffu, diffv, MEKE, VarMix, G, GV, US,
991991
endif
992992

993993
! Newer method of bounding for stability
994-
do j=Jsq,Jeq+1 ; do i=Isq,Ieq+1
995-
if (CS%better_bound_Kh) then
994+
if (CS%better_bound_Kh) then
995+
do j=Jsq,Jeq+1 ; do i=Isq,Ieq+1
996996
if (Kh(i,j) >= hrat_min(i,j) * CS%Kh_Max_xx(i,j)) then
997997
visc_bound_rem(i,j) = 0.0
998998
Kh(i,j) = hrat_min(i,j) * CS%Kh_Max_xx(i,j)
999999
else
10001000
visc_bound_rem(i,j) = 1.0 - Kh(i,j) / (hrat_min(i,j) * CS%Kh_Max_xx(i,j))
10011001
endif
1002-
endif
1003-
enddo ; enddo
1002+
enddo ; enddo
1003+
endif
10041004

10051005
if (CS%id_Kh_h>0 .or. CS%debug) then
10061006
do j=Jsq,Jeq+1 ; do i=Isq,Ieq+1
@@ -1893,7 +1893,7 @@ subroutine hor_visc_init(Time, G, GV, US, param_file, diag, CS, ADp)
18931893
"MOM_hor_visc.F90, hor_visc_init:"//&
18941894
"LEITH_KH must be True when USE_QG_LEITH_VISC=True.")
18951895

1896-
!### The following two get_param_calls need to occur after Leith_Ah is read, but for now it replciates prior code.
1896+
!### The following two get_param_calls need to occur after Leith_Ah is read, but for now it replicates prior code.
18971897
CS%Leith_Ah = .false.
18981898
call get_param(param_file, mdl, "USE_BETA_IN_LEITH", CS%use_beta_in_Leith, &
18991899
"If true, include the beta term in the Leith nonlinear eddy viscosity.", &
@@ -2019,7 +2019,7 @@ subroutine hor_visc_init(Time, G, GV, US, param_file, diag, CS, ADp)
20192019
fail_if_missing=CS%Leith_Ah, do_not_log=.not.CS%Leith_Ah)
20202020

20212021
call get_param(param_file, mdl, "USE_LAND_MASK_FOR_HVISC", CS%use_land_mask, &
2022-
"If true, use Use the land mask for the computation of thicknesses "//&
2022+
"If true, use the land mask for the computation of thicknesses "//&
20232023
"at velocity locations. This eliminates the dependence on arbitrary "//&
20242024
"values over land or outside of the domain.", default=.true.)
20252025
call get_param(param_file, mdl, "HORVISC_BOUND_COEF", CS%bound_coef, &
@@ -2777,7 +2777,7 @@ end subroutine hor_visc_end
27772777
!! \hat{\bf y} \cdot \left( \nabla \cdot {\bf \sigma} \right)
27782778
!! & = &
27792779
!! \partial_x \left( \frac{1}{2} \sigma_S \right)
2780-
!! + \partial_y \left( \frac{1}{2} \sigma_T \right)
2780+
!! + \partial_y \left( - \frac{1}{2} \sigma_T \right)
27812781
!! \\\\
27822782
!! & = &
27832783
!! \partial_x \left( \kappa_h \dot{e}_S \right)

0 commit comments

Comments
 (0)