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

Patch SNOWT_AVG and ACSNOM #94

Merged

Conversation

GreyREvenson
Copy link
Contributor

@GreyREvenson GreyREvenson commented Nov 29, 2023

Purpose

To fix handling of SNOWT_AVG and ACSNOM variables that were added to the gridded branch in PR #86.

Changes

Testing

  • Re-executed unit test and got this output.

@GreyREvenson GreyREvenson marked this pull request as draft November 29, 2023 15:43
@GreyREvenson GreyREvenson marked this pull request as ready for review November 29, 2023 18:01
Copy link
Contributor

@nmizukami nmizukami left a comment

Choose a reason for hiding this comment

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

Hi Grey,

This is small PR and this should be good to go. I put one comment (something to think about for future).

@@ -30,9 +30,11 @@ SUBROUTINE SnowWater (domain, levels, parameters, energy, water, forcing)
! ------------------------ local variables ---------------------------
INTEGER :: IZ,i
REAL :: BDSNOW !bulk density of snow (kg/m3)
REAL :: realMissing
Copy link
Contributor

@nmizukami nmizukami Dec 7, 2023

Choose a reason for hiding this comment

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

maybe like this? realMissing looks like parameter (no value change)

REAL, parameter :: realMissing=-999999.0

and then remove L37 (realMissing = -999999.0). this is more like parameter so not in the data initialization category.

Copy link
Contributor

Choose a reason for hiding this comment

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

Also, this would be personal choice, but parameter variable could be stored in a separate module so they can be shared from there. if realMissing is used for somewhere and you have many similar global parameters, this would be way to go.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point. I went ahead and set the value of realMissing when it is declared, as you suggested.

I also agree that we should implement a constants module at some point. I know it's an issue (i.e., Issue #5) -- I just need to get with Keith regarding prioritization of tasks.

@GreyREvenson
Copy link
Contributor Author

Thank you for having a look, @nmizukami. Appreciate it!

Apologies for taking so long to get back to you. I was distracted by AGU.

@GreyREvenson GreyREvenson merged commit 50069ad into NOAA-OWP:noah_om_grid Dec 18, 2023
@GreyREvenson GreyREvenson deleted the noah_om_grid_snowt_avg_fix branch December 18, 2023 14:36
GreyREvenson pushed a commit to GreyREvenson/noah-owp-modular that referenced this pull request Jan 17, 2024
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.

2 participants