WRF icon indicating copy to clipboard operation
WRF copied to clipboard

NoahMP bug fix

Open cenlinhe opened this issue 3 years ago • 3 comments

A few bug fixes for NoahMP

TYPE: bug fix

KEYWORDS: two stream inout variable, soil ice in snow combine, water variable unit

SOURCE: Cenlin He (NCAR) with report from CWB/Taiwan

DESCRIPTION OF CHANGES: A few bug fixes for NoahMP:

  1. Change a few "out" only variables in TWOSTREAM noahmp subroutine to "inout";
  2. Change the unit for 3 accumulated noahmp water flux variables in comments and registry;
  3. Change the soil ice treatment in snow combine subroutine to conserve water;

LIST OF MODIFIED FILES: list of changed files M Registry/registry.noahmp M phys/noahmp

TESTS CONDUCTED:

  1. The bug fixes have been tested for NoahMP run over the U.S. for an entire year.
  2. Reg tests have passed.

cenlinhe avatar Sep 12 '22 02:09 cenlinhe

The Jenkins tests have passed:

Test Type | Expected | Received | Failed = = = = = = = = = = = = = = = = = = = = = = = = = = = = Number of Tests : 23 24 Number of Builds : 60 58 Number of Simulations : 158 156 0 Number of Comparisons : 95 92 0

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

weiwangncar avatar Sep 12 '22 15:09 weiwangncar

@cenlinhe Would you like to make this change available sooner? That would mean 4.4.2.

weiwangncar avatar Sep 12 '22 15:09 weiwangncar

@weiwangncar Yes, it works for me. Thanks!

cenlinhe avatar Sep 12 '22 16:09 cenlinhe

When will this PR be merged to develop or release-v4.4.2 branch? Recently, two other NoahMP bugs have been identified and I would like to create another PR for those bug fixes based on the updated develop or release-v4.4.2 branch with the current PR bug fix included. Thanks!

cenlinhe avatar Oct 02 '22 22:10 cenlinhe

@dudhia Can you check this PR and approve if it is OK so that Cenlin can move to his next change?

weiwangncar avatar Oct 04 '22 17:10 weiwangncar

I also saw some dimension changes for nsoil. Were those described?

dudhia avatar Oct 04 '22 17:10 dudhia

Those are just changing the hard-coded "4" soil layers to "nsoil". By default, NoahMP uses 4 soil layers, so this change is no-answer change. However, this gives more flexibility for users to change nsoil in the future. Otherwise, users need to manually change the hard-coded "4" soil layer in those code files.

cenlinhe avatar Oct 04 '22 17:10 cenlinhe

OK, it should be added to the description. Thanks.

dudhia avatar Oct 04 '22 17:10 dudhia

Just added to the description above.

cenlinhe avatar Oct 04 '22 17:10 cenlinhe

@cenlinhe Can you clarify what 'snow combine subroutine' is? This is in your description of change #3.

weiwangncar avatar Oct 04 '22 17:10 weiwangncar

It is this subroutine "COMBINE" in module_sf_noahmplsm.F. I have included this in the above description.

cenlinhe avatar Oct 04 '22 17:10 cenlinhe

@cenlinhe I added RELEASE NOTE in your PR. Please see if it is ok.

weiwangncar avatar Oct 04 '22 18:10 weiwangncar

The release note looks good to me. Thanks!

cenlinhe avatar Oct 04 '22 18:10 cenlinhe