Description
MOM6/src/parameterizations/vertical/MOM_set_diffusivity.F90
Lines 311 to 315 in 9786710
Kd_lay
and Kv_slow
are set to KD
and KV
; effectively these are background values and the defaults are KD=2e-5, KV=1e-4
Later calculate_bkgnd_mixing
calculates background values Kv_bkgnd
and Kd_bkgnd
(I have HORIZ_VARYING_BACKGROUND=TRUE
) and assigns Kd_lay_2d
and Kd_int_2d
MOM6/src/parameterizations/vertical/MOM_set_diffusivity.F90
Lines 409 to 410 in 9786710
Kd_bkgnd
is assigned to Kd_lay
in there, overwriting the KD
values set earlier.
Now back in MOM_set_diffusivity
: Kv_bkgnd
is added to Kv_slow
(≡ KD
):
MOM6/src/parameterizations/vertical/MOM_set_diffusivity.F90
Lines 411 to 414 in 9786710
This is NOT what's being done with diffusivity where Kd_lay
is set by calculate_bkgnd_mixing
.
It is wrong because we've added two different "background" viscosity formulations. We should be overwriting Kv_slow
with Kv_bkgnd
.
Setting KD=0, KV=0
makes things work like I expected.
EDIT: For the record, here's the image that shows the issue (mean profiles at 0N, 140W; averaged over years 46-68), the prandtl number (visc/diff) is ~200 below the EUC. We want it to be in the 1-10 range.