-
Notifications
You must be signed in to change notification settings - Fork 19
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
Remove case-specific overrides from parameter creation #2017
Conversation
d1d50ee
to
4946cfb
Compare
1aa52fc
to
86210f9
Compare
Where/how is |
@Sbozzolo It's used in CloudMicrophysics and is used in periodically removing precipitation in the 0Moment microphysics scheme. It's kind of an exception since it is always set to dt. There is likely a better way of passing it through to CloudMicrophysics but I just want to get rid of the case-specific overrides for now! |
Thanks! How is it passed to CloudMicrophysics? If it is always set to (My interest in this stems from the fact that I am studying how to remove explicit references to |
It would be better to just ask the user to specify both |
@Sbozzolo I'm not sure how it would work as a callback, since it needs to be passed in as a parameter to CloudMicrophysics, but I'm open to changing how it's set. |
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.
Changes overall LGTM
01d5d44
to
000bf30
Compare
000bf30
to
8c9db0b
Compare
bors r+ |
Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
Content
τ_precip
, which is still set todt
in all cases. This is the same behavior as before, and but can now be switched off by setting the new config flagoverride_τ_precip = false
create_parameter_struct
which takes in a parameter struct type, any nested parameter structs, and constructs the parameters. This cleans up a lot of boilerplate fromcreate_parameter_set
ug
,vg
,f
, andCd
. It was hard to grep for usage off
but all of my local tests work.f_plane_coriolis_frequency
via CLIMAParameters instead of a hardcoded value. The default value is unchanged