-
Notifications
You must be signed in to change notification settings - Fork 35
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
Changes to Logging and Initialization of the CLM Lake Model #92
Changes to Logging and Initialization of the CLM Lake Model #92
Conversation
1. Use ice thickness hice(i) to find the level in the lake where ice is zero. 2. Do not allow lake temperature to be below freezing point if there is no ice. 3. If there is no snow or ice, do not allow surface lake temperature to be below freezing point. These changes fixed the problem with large errors in the energy budget at the beginning of the cold-start run with lakes. 4. Added flag to turn on debug print statements in the CLM lake model.
This wasn't the final version of Tanya's changes. I'm retesting her final version now, on top of the latest ufs-weather-model. |
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.
@SamuelTrahanNOAA Thank you, Sam, for making a PR with these modification to the CLM lake initialization.
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 don't see any issues from a CCPP point of view. There is a lot more debugging output, of course, but it looks to be controlled by debug flags, so it shouldn't be an issue.
The amount of output from clm_lake_debug=.true. was so large that it was useless. Tanya split it up and added a separate flag to enable the super-verbose prints. |
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.
Looks good.
write(0,*) 'Warning: wght2 is not 0..1: ',wght2 | ||
endif | ||
wght2 = max(0.0_kind_lake,min(1.0_kind_lake,wght2)) | ||
endif | ||
wght1 = 1.0_kind_lake - wght2 | ||
|
||
if(LAKEDEBUG .and. me==0) then | ||
if(debug_print ) then |
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.
Do we want to do this on all processors?
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.
That lets us confirm the value is the same, and correct, on all ranks.
…te "v3" file), correct misspelled pages "shemes" --> "schemes"
@SamuelTrahanNOAA regression testing is finished on UFS-WM PR #1844. We can begin the merging process and start with this sub-component ccpp-physics PR. |
A fine idea. Unfortunately, I lack access to press the "merge" button. We shall have to wait for a code manager to resurface. |
Hello. @dustinswales @grantfirl would you please merge this PR? |
@zach1221 Done. Sorry for the delay. |
@dustinswales Alright, understood. Thank you for helping! |
@dustinswales Thanks for stepping in, sorry I missed the merge request here. |
This is the work of @tanyasmirnova to fix some initialization issues in the CLM Lake Model. Initialization appears to work correctly without fractional ice. There are some lingering issues with fractional ice initialization that we're working on.
Changes: