Skip to content

Commit 0ce9980

Browse files
By pass reading BULKMIXEDLAYER via get_param
BULKMIXEDLAYER is not always defined in MOM_input (e.g., in CM2G63L), so adding new code where get_param is used to determine if BULKMIXEDLAYER is used won't always work. To by pass that the following is now used: CS%bulkmixedlayer = (GV%nkml > 0)
1 parent 1218973 commit 0ce9980

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/parameterizations/vertical/MOM_bkgnd_mixing.F90

+4-2
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,10 @@ subroutine bkgnd_mixing_init(Time, G, GV, param_file, diag, CS)
133133
units="m2 s-1", default=0.01*CS%Kd)
134134

135135
! The following is needed to set one of the choices of vertical background mixing
136-
call get_param(param_file, mdl, "BULKMIXEDLAYER", CS%bulkmixedlayer, &
137-
do_not_log=.true.)
136+
137+
! BULKMIXEDLAYER is not always defined (e.g., CM2G63L), so the following by pass
138+
! the need to include BULKMIXEDLAYER in MOM_input
139+
CS%bulkmixedlayer = (GV%nkml > 0)
138140
if (CS%bulkmixedlayer) then
139141
! Check that Kdml is not set when using bulk mixed layer
140142
call get_param(param_file, mdl, "KDML", CS%Kdml, default=-1.)

0 commit comments

Comments
 (0)