-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make MLD_003 computation available to mixedlayer_restrat_Bodner #327
Conversation
"BODNER_USE_MLD_003 is true.", default=.false.) | ||
call get_param(param_file, mdl, "BODNER_USE_MLD_003", CS%Bodner_use_MLD_003, & | ||
"If true, the Bodner parameterization will use the mixed-layer "//& | ||
"depth based on MLD_003.", default=.false.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MLE_DENSITY_DIFF
and MLE_MLD_STRETCH
need to be defined when BODNER_USE_MLD_003=True
.
if (CS%Bodner_use_MLD_003) then
call get_param(param_file, mdl, "MLE_DENSITY_DIFF", CS%MLE_density_diff, &
"Density difference used to detect the mixed-layer "//&
"depth used for the mixed-layer eddy parameterization "//&
"by Fox-Kemper et al. (2010)", units="kg/m3", default=0.03, scale=US%kg_m3_to_R)
call get_param(param_file, mdl, "MLE_MLD_STRETCH", CS%MLE_MLD_stretch, &
"A scaling coefficient for stretching/shrinking the MLD "//&
"used in the MLE scheme. This simply multiplies MLD wherever used.",&
units="nondim", default=1.0)
endif
…and runtime parameter
@gustavo-marques the newly pushed commit should address your comments but let me know otherwise. Note that I renamed the subroutine |
Thank you! The last commit addresses all my comments. I approve this PR. |
This PR introduces the
calculate_mld_003
subroutine, previously a code black inmixedlayer_restrat_OM4
, so as to make it available inmixedlayer_restrat_bodner
as well. The newly added flagBODNER_USE_MLD_003
determines whether mld_003 is indeed used in mixedlayer_restrat_bodner.Fixes: #326