Skip to content

AtmosForcingMod, OptRainSnowPartition == 5 update for warm instances#112

Merged
cenlinhe merged 8 commits intoNCAR:developfrom
RAbolafiaRosenzweig:develop
Feb 2, 2024
Merged

AtmosForcingMod, OptRainSnowPartition == 5 update for warm instances#112
cenlinhe merged 8 commits intoNCAR:developfrom
RAbolafiaRosenzweig:develop

Conversation

@RAbolafiaRosenzweig
Copy link
Collaborator

Update to set FrozenPrecipFrac = 0.0 for instances of TemperatureAirRefHeight>=10C to avoid numerical errors in rain/snowfall partitioning calculation for warm instances when OptRainSnowPartition == 5.

cenlinhe and others added 8 commits September 19, 2023 17:02
Sync with develop branch for bug fixes
use consistent common undefined value for initialization
Sync with develop branch for bug fix
Updated to avoid numerical errors associated with low FrozenPrecipFrac for OptRainSnowPartition = 5
AtmosForcingMod.F90 updated to avoid numerical errors associated with warm wet bulb temperature for OptRainSnowPartition = 5
Update to OptRainSnowPartition == 5 to avoid numerical errors in instances of warm temperatures by forcing FrozenPrecipFrac = 0
if ( TemperatureWetBulb >= 5) then FrozenPrecipFrac = 0 to avoid crashing in instances of high temperatures for OptRainSnowPartition == 5
FrozenPrecipFrac = 0.0 constraint imposed for instances of TemperatureAirRefHeight > 10C to avoid numerical errors in warm instances for OptRainSnowPartition == 5.
@cenlinhe cenlinhe requested review from cenlinhe and tslin2 February 2, 2024 15:52
Copy link
Collaborator

@cenlinhe cenlinhe left a comment

Choose a reason for hiding this comment

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

This PR fixes the numerical error for snowfall fraction calculation during wel-bulb temperature scheme when temperature is high. The fix looks good to me.

@cenlinhe
Copy link
Collaborator

cenlinhe commented Feb 2, 2024

@RAbolafiaRosenzweig next time, you may want to use a more informative commit message/title when you update the code files. Currently, all your commit messages are showing "Add files via upload". Also, next time, you may want to try directly modify the github code on your local machine and then commit the change and submit the change to your forked github online and then create the PR. In this way, you do not need to upload files separately.

@RAbolafiaRosenzweig
Copy link
Collaborator Author

RAbolafiaRosenzweig commented Feb 2, 2024 via email

Copy link
Collaborator

@tslin2 tslin2 left a comment

Choose a reason for hiding this comment

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

looks good to me! Thanks!

@cenlinhe cenlinhe merged commit c7a04d8 into NCAR:develop Feb 2, 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.

3 participants