forked from NCAR/ccpp-physics
-
Notifications
You must be signed in to change notification settings - Fork 50
Bugfixes to SLC checks, post-LIAU #339
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
Open
ClaraDraper-NOAA
wants to merge
4
commits into
ufs-community:ufs/dev
Choose a base branch
from
ClaraDraper-NOAA:fix/stc_check
base: ufs/dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Is there a reason why noahmp needs to redefine this constant? The host provides this value as a physical constant and it should be used to maintain consistency with the rest of physics.
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.
It looks like
con_t0c(temperature_at_zero_celsius) is set to 273.15 andcon_ttp(triple_point_temperature_of_water) is set to 273.16.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.
These are really questions for the land modeling folks. @barlage do you know why Noah-MP uses the slightly higher tfreeze? I'm not keen on using con_ttp here unless Noah-MP is using 273.16 specifically because it is the triple point (as in, this would be the right answer for the wrong reason, which could create problems later on). Also, do you know whyN Noah-MP is not taking the tfreeze constant from the ufs model? If it's just a matter of it hasn't been done yet, we could look into what would be involved to update that now.
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.
It's a little strange that this PR is going from using con_t0c that is already consistent with the rest of physics and redefining it locally. I guess it's OK to define
tfreez_noahmp, but it should be set from the host, either from con_t0c or con_ttp, IMO.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.
The problem is that the freezing temp that is used by the NoahMP model (in the noahmp_sflx routine) is set to 273.16 in the model code locally here. con_t0c is set in the driver, but is not passed through to the NoahMP model call. The change in this PR brings the same value into the DA since the model and DA values must be the same.
An alternative to my fix is to pass the con_t0c value through to the NoahMP routine (and remove both local tfreez definitions), but this is a science change to the model. @barlage what do you think?