Skip to content
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

Bug fix for Noah-MP snow, vegetation and urban #1929

Merged
merged 18 commits into from
Jan 13, 2024

Conversation

cenlinhe
Copy link
Contributor

@cenlinhe cenlinhe commented Oct 22, 2023

Sync with updated nonrefactored Noah-MP branch for a few bug fixes for snow, vegetation, and urban

TYPE: bug fix

KEYWORDS: Noah-MP, snow combine, vegetation fraction scaling, urban ground heat flux

SOURCE: Cenlin He (NCAR/RAL)

DESCRIPTION OF CHANGES:
There are a few bug fixes for Noah-MP related processes:
(1) the snow layer index in snow COMBINE module was wrong, causing model crash when snow layer changes by more than 1 layer within one timestep; This has been fixed by using the correct layer index.
(2) the ground heat flux sign in Noah-MP column model (positive: downward) is inconsistent with that in urban canopy model (positive: upward), leading to wrong diagnostic grid-mean ground heat flux calculation for urban grid. This only affects the diagnostic value for output. See this issue: #1921 and NCAR/hrldas#114
(3) there is a bug in vegetation fraction (FVEG) scaling for stomata resistance calculation (NCAR/noahmp#92) and canopy interception calculation (NCAR/noahmp#91).

LIST OF MODIFIED FILES: list of changed files (use git diff --name-status master to get formatted list):
phys/noahmp/src/module_sf_noahmplsm.F
phys/noahmp/src/module_sf_noahmpdrv.F

TESTS CONDUCTED:

  1. Tested successfully in NCAR Cheyenne HPC for 13-km run over the entire CONUS region
  2. The Jenkins tests are all passing.

RELEASE NOTE: Noah-MP bug fix for snow combination, vegetation fraction scaling, and urban ground heat flux sign.

@cenlinhe cenlinhe requested a review from a team as a code owner October 22, 2023 23:30
@weiwangncar
Copy link
Collaborator

The regression test results:

Test Type | Expected | Received | Failed
= = = = = = = = = = = = = = = = = = = = = = = = = = = =
Number of Tests : 23 24
Number of Builds : 60 57
Number of Simulations : 158 150 0
Number of Comparisons : 95 86 0

Failed Simulations are: 
None
Which comparisons are not bit-for-bit: 
None

@weiwangncar
Copy link
Collaborator

@cenlinhe Do you want this fix to be in develop branch (as it is now) or release-v4.5.2?

@cenlinhe
Copy link
Contributor Author

release-v4.5.2 is better since it is just bug fix

@weiwangncar weiwangncar changed the base branch from develop to release-v4.5.2 November 10, 2023 03:15
@weiwangncar weiwangncar requested a review from a team as a code owner November 10, 2023 03:15
jesusff added a commit to CORDEX-WRF-community/WRF that referenced this pull request Nov 30, 2023
@weiwangncar
Copy link
Collaborator

@cenlinhe Can you please take a look at the last commit by @jesusff on this PR? Also why is configure.default changed in this PR? It should be removed.

@jesusff
Copy link
Contributor

jesusff commented Dec 5, 2023

Hi @weiwangncar, I just mentioned this PR in my commit, but it was applied to a different branch in our WRF fork for CORDEX, where we are already using the patches from @cenlinhe for these bugs. No additional commit from my side in this PR.

@weiwangncar
Copy link
Collaborator

@jesusff Thanks for letting me know.

It does not belong to this PR.
Try not change anything in configure.default file.
weiwangncar
weiwangncar previously approved these changes Dec 7, 2023
@dudhia
Copy link
Collaborator

dudhia commented Dec 7, 2023

@cenlinhe If this affects the ground flux sign in the output, it seems it should go into v4.6 instead of v4.5.2.
Can we separate the bug-fix for 4.5.2?

@jesusff
Copy link
Contributor

jesusff commented Dec 11, 2023

@cenlinhe, more specifically: is this just a change in the convention of the sign for ground flux (breaking the compatibility with previous model output)? or is it a fix in the sign of some components of the ground flux, leading to changes in the absolute value of the ground flux?

@cenlinhe
Copy link
Contributor Author

@cenlinhe, more specifically: is this just a change in the convention of the sign for ground flux (breaking the compatibility with previous model output)? or is it a fix in the sign of some components of the ground flux, leading to changes in the absolute value of the ground flux?

This is only a fix for the sign of ground flux output itself (as a diagnostic) not its components or its absolute value. This does not affect any energy calculations in Noah-MP, just the sign for output.

@dudhia
Copy link
Collaborator

dudhia commented Dec 11, 2023

@cenlinhe could you check my comment above. Wondering if this sign change should be put off until V4.6?

@cenlinhe
Copy link
Contributor Author

@cenlinhe could you check my comment above. Wondering if this sign change should be put off until V4.6?

I am fine with putting off this entire PR until V4.6. I do not know an easy way to separate the commit out without re-doing those changes one by one again.

@dudhia
Copy link
Collaborator

dudhia commented Dec 12, 2023 via email

dudhia
dudhia previously approved these changes Jan 11, 2024
@weiwangncar weiwangncar changed the base branch from release-v4.5.2 to develop January 12, 2024 01:22
@weiwangncar weiwangncar dismissed stale reviews from dudhia and themself January 12, 2024 01:22

The base branch was changed.

@weiwangncar
Copy link
Collaborator

@cenlinhe I have removed the changes in arch/configure_defaults in this PR.

@weiwangncar weiwangncar merged commit ce1069f into wrf-model:develop Jan 13, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants