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

add SPP support for G-F deep convection #98

Merged
merged 3 commits into from
Sep 8, 2023

Conversation

JiliDong-NOAA
Copy link

@JiliDong-NOAA JiliDong-NOAA commented Aug 21, 2023

This PR is co-authored with Georg Grell and @haiqinli, including:

  1. add stochastic parameterization perturbations support to Grell-Freitas deep convection parameterization by passing stochastic patterns to mass transport, vertical mass flux profile and closures
  2. fix reproducibility issue in G-F deep convection at high resolutions (ichoice option switched to 0)
    Related PRs for FV3 and ufs-weather-model will be submitted shortly.

Copy link
Collaborator

@dustinswales dustinswales 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. Just a small request.

rand_clos(:,:) = 0.
else
do i=1,im
spp_wts_cu_deep_tmp=min(max(-1.0, spp_wts_cu_deep(i,1)),1.0)
Copy link
Collaborator

Choose a reason for hiding this comment

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

It's best to be explicit with the types you are passing to intrinsics.
Replace min(max(-1.0, spp_wts_cu_deep(i,1)),1.0)
With min(max(-1.kind_phys, spp_wts_cu_deep(i,1)),1._kind_phys)

Copy link
Author

Choose a reason for hiding this comment

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

updated as requested. Thanks for the suggestion @dustinswales

Copy link
Collaborator

@dustinswales dustinswales left a comment

Choose a reason for hiding this comment

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

@JiliDong-NOAA Thanks for making this change.

@zach1221
Copy link

zach1221 commented Sep 8, 2023

@grantfirl testing is complete on ufs-wm PR #1876. Are you able to merge this PR?

@dustinswales dustinswales merged commit 7efb112 into ufs-community:ufs/dev Sep 8, 2023
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.

6 participants