@@ -1002,16 +1002,16 @@ subroutine horizontal_viscosity(u, v, h, diffu, diffv, MEKE, VarMix, G, GV, US,
10021002 endif
10031003
10041004 ! Newer method of bounding for stability
1005- do j = Jsq,Jeq +1 ; do i = Isq,Ieq +1
1006- if (CS % better_bound_Kh) then
1005+ if (CS % better_bound_Kh) then
1006+ do j = Jsq,Jeq +1 ; do i = Isq,Ieq +1
10071007 if (Kh(i,j) >= hrat_min(i,j) * CS% Kh_Max_xx(i,j)) then
10081008 visc_bound_rem(i,j) = 0.0
10091009 Kh(i,j) = hrat_min(i,j) * CS% Kh_Max_xx(i,j)
10101010 else
10111011 visc_bound_rem(i,j) = 1.0 - Kh(i,j) / (hrat_min(i,j) * CS% Kh_Max_xx(i,j))
10121012 endif
1013- endif
1014- enddo ; enddo
1013+ enddo ; enddo
1014+ endif
10151015
10161016 if (CS% id_Kh_h> 0 .or. CS% debug) then
10171017 do j= Jsq,Jeq+1 ; do i= Isq,Ieq+1
@@ -1914,7 +1914,7 @@ subroutine hor_visc_init(Time, G, GV, US, param_file, diag, CS, MEKE, ADp)
19141914 " MOM_hor_visc.F90, hor_visc_init:" // &
19151915 " LEITH_KH must be True when USE_QG_LEITH_VISC=True." )
19161916
1917- ! ### The following two get_param_calls need to occur after Leith_Ah is read, but for now it replciates prior code.
1917+ ! ### The following two get_param_calls need to occur after Leith_Ah is read, but for now it replicates prior code.
19181918 CS% Leith_Ah = .false.
19191919 call get_param(param_file, mdl, " USE_BETA_IN_LEITH" , CS% use_beta_in_Leith, &
19201920 " If true, include the beta term in the Leith nonlinear eddy viscosity." , &
@@ -2040,7 +2040,7 @@ subroutine hor_visc_init(Time, G, GV, US, param_file, diag, CS, MEKE, ADp)
20402040 fail_if_missing= CS% Leith_Ah, do_not_log= .not. CS% Leith_Ah)
20412041
20422042 call get_param(param_file, mdl, " USE_LAND_MASK_FOR_HVISC" , CS% use_land_mask, &
2043- " If true, use Use the land mask for the computation of thicknesses " // &
2043+ " If true, use the land mask for the computation of thicknesses " // &
20442044 " at velocity locations. This eliminates the dependence on arbitrary " // &
20452045 " values over land or outside of the domain." , default= .true. )
20462046 call get_param(param_file, mdl, " HORVISC_BOUND_COEF" , CS% bound_coef, &
@@ -2802,7 +2802,7 @@ end subroutine hor_visc_end
28022802!! \hat{\bf y} \cdot \left( \nabla \cdot {\bf \sigma} \right)
28032803! ! & = &
28042804! ! \partial_x \left( \frac{1}{2} \sigma_S \right)
2805- ! ! + \partial_y \left( \frac{1}{2} \sigma_T \right)
2805+ ! ! + \partial_y \left( - \frac{1}{2} \sigma_T \right)
28062806! ! \\\\
28072807!! & = &
28082808! ! \partial_x \left( \kappa_h \dot{e}_S \right)
0 commit comments