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

Snow compaction #148

Closed

Conversation

RAbolafiaRosenzweig
Copy link
Collaborator

Enables new snow compaction physics option using the enhanced scheme developed by Abolafia-Rosenzweig et al. (2024). This new physics option can be used by defining SNOW_COMPACTION_OPTION=2 in the namelist file.

Abolafia-Rosenzweig, R., He, C., Chen, F., Barlage, M., 2024. Evaluating and Enhancing Snow Compaction Process in the Noah-MP Land Surface Model. J Adv Model Earth Syst 16, e2023MS003869. https://doi.org.10.1029/2023MS003869

@cenlinhe
Copy link
Collaborator

Hi Ronnie, a few minor suggestions:

  1. please remove "!RAR" from the code.
  2. Include your paper as reference in your new compaction module here: https://github.com/NCAR/noahmp/pull/148/files#diff-0b59d5fc1c3d226094efe4310ffa808aad49ab623ecacd8c6014fe5a5a3f1ff6R16-R20
  3. line up the code for formatting. Some code lines are not lined up with the existing code.
  4. You currently have three "snow_compaction" commits. Could you please just use 1 commit to include all of your code updates here? For example, two of your current commits just include formatting changes, which are not worth separate commits.

Thanks!

@cenlinhe cenlinhe requested review from tslin2 and cenlinhe October 16, 2024 16:12
@RAbolafiaRosenzweig RAbolafiaRosenzweig force-pushed the snow_compaction branch 3 times, most recently from 47128ba to aaee8fe Compare October 16, 2024 16:22
@RAbolafiaRosenzweig
Copy link
Collaborator Author

These 4 suggestions have been accepted & incorporated.

@cenlinhe cenlinhe requested a review from dmocko October 16, 2024 17:15
src/ConfigVarType.F90 Outdated Show resolved Hide resolved
src/Makefile Outdated Show resolved Hide resolved
src/SnowWaterMainMod.F90 Outdated Show resolved Hide resolved
@tslin2
Copy link
Collaborator

tslin2 commented Nov 14, 2024

Should this enhancement of SnowCompactBurdenFac to be considered an option in the Noah-MP parameter table or a new physics option in the namelist? One physics, but two options for the SnowCompactBurdenFac parameter (original and enhanced) in the Noah-MP parameter table? Thanks.

snow_compaction

snow_compaction

snow_compaction

snow_compaction

snow_compaction

snow_compaction

snow_compaction

snow_compaction

snow_compaction

snow_compaction
@cenlinhe
Copy link
Collaborator

@tslin2 @cenlinhe review this PR.

Comment on lines +124 to +125
SNLIQMAXFRAC, SWEMAXGLA, &
SNLIQMAXFRAC, SWEMAXGLA, &
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two lines are duplicate

@@ -339,7 +341,7 @@ PsychrometricVariableGlacierMod.o: ../utility/Machine.o NoahmpVarType.o Co
ResistanceGroundEvaporationGlacierMod.o: ../utility/Machine.o NoahmpVarType.o ConstantDefineMod.o
SnowCoverGlacierMod.o: ../utility/Machine.o NoahmpVarType.o ConstantDefineMod.o
SnowWaterMainGlacierMod.o: ../utility/Machine.o NoahmpVarType.o ConstantDefineMod.o SnowfallBelowCanopyMod.o \
SnowpackCompactionMod.o SnowLayerCombineMod.o SnowLayerDivideMod.o \
SnowpackCompactionMod.o SnowpackCompactionARMod.o SnowLayerCombineMod.o SnowLayerDivideMod.o \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Has SnowWaterMainGlacierMod.F90 been revised? I can not see the code changes for this file

@cenlinhe
Copy link
Collaborator

I have created an update PR for this snow compaction update with some additional formatting, naming, and bug fixes according to the review comments. The new PR is here: #174
So I am going to close this PR here.

@cenlinhe cenlinhe closed this Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants