Skip to content

Commit fd4d3ba

Browse files
committed
Rescale strat_floor
Rescaled the internal representation of the FGNV_STRAT_FLOOR variable and thickness_diffuse%N2_floor to include appropriate factors of US%Z_to_L to reflect the scaling of aspect ratios. This leads to the elimination of one rescaling factor in thickness_diffuse_full() and its replacement by another in a scale factor for a get_param call. All answers are bitwise identical.
1 parent c9892e7 commit fd4d3ba

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/parameterizations/lateral/MOM_thickness_diffuse.F90

+5-4
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ module MOM_thickness_diffuse
5656
real :: FGNV_c_min !< A minimum wave speed used in the Ferrari et al., 2010,
5757
!! streamfunction formulation [L T-1 ~> m s-1].
5858
real :: N2_floor !< A floor for squared buoyancy frequency in the Ferrari et al., 2010,
59-
!! streamfunction formulation [T-2 ~> s-2].
59+
!! streamfunction formulation divided by aspect ratio rescaling factors
60+
!! [L2 Z-2 T-2 ~> s-2].
6061
logical :: detangle_interfaces !< If true, add 3-d structured interface height
6162
!! diffusivities to horizontally smooth jagged layers.
6263
real :: detangle_time !< If detangle_interfaces is true, this is the
@@ -784,7 +785,7 @@ subroutine thickness_diffuse_full(h, e, Kh_u, Kh_v, tv, uhD, vhD, cg1, dt, G, GV
784785
h_neglect = GV%H_subroundoff ; h_neglect2 = h_neglect**2 ; hn_2 = 0.5*h_neglect
785786
dz_neglect = GV%dZ_subroundoff ; dz_neglect2 = dz_neglect**2
786787
if (GV%Boussinesq) G_rho0 = GV%g_Earth / GV%Rho0
787-
N2_floor = CS%N2_floor * US%Z_to_L**2
788+
N2_floor = CS%N2_floor
788789

789790
use_EOS = associated(tv%eqn_of_state)
790791
present_slope_x = PRESENT(slope_x)
@@ -2124,7 +2125,7 @@ subroutine thickness_diffuse_init(Time, G, GV, US, param_file, diag, CDp, CS)
21242125
real :: omega ! The Earth's rotation rate [T-1 ~> s-1]
21252126
real :: strat_floor ! A floor for buoyancy frequency in the Ferrari et al. 2010,
21262127
! streamfunction formulation, expressed as a fraction of planetary
2127-
! rotation [nondim].
2128+
! rotation divided by an aspect ratio rescaling factor [L Z-1 ~> nondim]
21282129
real :: Stanley_coeff ! Coefficient relating the temperature gradient and sub-gridscale
21292130
! temperature variance [nondim]
21302131
integer :: default_answer_date ! The default setting for the various ANSWER_DATE flags.
@@ -2243,7 +2244,7 @@ subroutine thickness_diffuse_init(Time, G, GV, US, param_file, diag, CDp, CS)
22432244
"A floor for Brunt-Vasaila frequency in the Ferrari et al., 2010, "//&
22442245
"streamfunction formulation, expressed as a fraction of planetary "//&
22452246
"rotation, OMEGA. This should be tiny but non-zero to avoid degeneracy.", &
2246-
default=1.e-15, units="nondim", do_not_log=.not.CS%use_FGNV_streamfn)
2247+
default=1.e-15, units="nondim", scale=US%Z_to_L, do_not_log=.not.CS%use_FGNV_streamfn)
22472248
call get_param(param_file, mdl, "USE_STANLEY_GM", CS%use_stanley_gm, &
22482249
"If true, turn on Stanley SGS T variance parameterization "// &
22492250
"in GM code.", default=.false.)

0 commit comments

Comments
 (0)