-
Notifications
You must be signed in to change notification settings - Fork 27
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
Pass tdepth as needed for hillslope model #46
Conversation
merge hillslope hydrology mosart branch to escomp mosart master
… use a verison of CMEPS with it
@billsacks I'd like you to look at this and let's talk about it this afternoon. The specific change I'm not convinced is right is that I have buildnml change MOSART_MODE under certain conditions. This does work. But, philosophically I think it likely should be done in buildlib rather than buildnml. So I wanted to hear what you thought about that. |
config['clm_accel'] = case.get_value("CLM_ACCELERATED_SPINUP") | ||
if ( config['clm_accel'] != "off" ): | ||
config['mosart_mode'] = "NULL" | ||
case.set_value( "MOSART_MODE", config['mosart_mode'] ) |
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.
I probably should do this in buildlib rather than here.
You might not like my answer: I don't like having buildnml or buildlib change xml values. I feel like this is confusing from both a user and developer perspective. I think it's better to maintain a consistent flow: The compset can set the default value of xml variables, and xml variables can set the default value of namelist variables; other than that, it should be up to the user to set things explicitly. I don't feel like this needs to be followed 100%, but there should be a very good reason for not following it. In this case, I think I understand the reason for setting MOSART_MODE automatically, so there is one less thing for a user to set when running accelerated spinup. However, in my view, that benefit does not justify violating what I feel should be a general principle in the user interface of CESM's Case Control System. I can see a few alternatives for how to handle this: (1) Introduce either compsets or a user mods directory for turning on CLM spinup. A compset would be straightforward here (use (2) If (1) isn't possible, or you want to support manually changing And a tangential point, alluded to above: (3) Based on where |
OK, I'll make a new issue regarding this. I didn't like my solution either, which is why I wanted you to look at it. In the short term we'll bring this in like it is, so that I can do the next CTSM tag. But, we'll decide on a longer term solution and implement that when we are able to. |
Pass tdepth/tdepth_max as needed for the hilllslope model. Add a trigger for it from CMEPS.
Also don't set direction file if MOSART is turned off. Remove do_rtm namelist trigger and use MOSART_MODE
instead.
Fixes #47
Fixes #36
Fixes #45
Fixes #44
Fixes #20