Skip to content

add SPP support for G-F deep convection#98

Merged
dustinswales merged 3 commits into
ufs-community:ufs/devfrom
JiliDong-NOAA:feature/gf-spp
Sep 8, 2023
Merged

add SPP support for G-F deep convection#98
dustinswales merged 3 commits into
ufs-community:ufs/devfrom
JiliDong-NOAA:feature/gf-spp

Conversation

@JiliDong-NOAA
Copy link
Copy Markdown

@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
Copy Markdown
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.

Comment thread physics/cu_gf_driver.F90 Outdated
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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