Skip to content

Commit

Permalink
By pass reading BULKMIXEDLAYER via get_param
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
gustavo-marques committed Apr 4, 2018
1 parent 1218973 commit 0ce9980
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/parameterizations/vertical/MOM_bkgnd_mixing.F90
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,10 @@ subroutine bkgnd_mixing_init(Time, G, GV, param_file, diag, CS)
units="m2 s-1", default=0.01*CS%Kd)

! The following is needed to set one of the choices of vertical background mixing
call get_param(param_file, mdl, "BULKMIXEDLAYER", CS%bulkmixedlayer, &
do_not_log=.true.)

! BULKMIXEDLAYER is not always defined (e.g., CM2G63L), so the following by pass
! the need to include BULKMIXEDLAYER in MOM_input
CS%bulkmixedlayer = (GV%nkml > 0)
if (CS%bulkmixedlayer) then
! Check that Kdml is not set when using bulk mixed layer
call get_param(param_file, mdl, "KDML", CS%Kdml, default=-1.)
Expand Down

0 comments on commit 0ce9980

Please sign in to comment.