Skip to content

add Ferrier-Aligo MP scheme changes on host model side#2

Merged
climbfuji merged 7 commits into
NCAR:dtc/developfrom
mzhangw:HAFS_fer_hires
Nov 22, 2019
Merged

add Ferrier-Aligo MP scheme changes on host model side#2
climbfuji merged 7 commits into
NCAR:dtc/developfrom
mzhangw:HAFS_fer_hires

Conversation

@mzhangw
Copy link
Copy Markdown

@mzhangw mzhangw commented Nov 12, 2019

This PR includes changes of host model side for F-A MP scheme.

<group name="radiation">
<subcycle loop="1">
<scheme>GFS_suite_interstitial_rad_reset</scheme>
<!-- <scheme>HAFS_update_moist</scheme> -->
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 probably best to remove commented out schemes before merging. Also, I don't see that HAFS_update_moist is ever actually called. Based on the name of the suite, is that the intended behavior?

<scheme>samfdeepcnv</scheme>
<scheme>GFS_DCNV_generic_post</scheme>
<scheme>GFS_SCNV_generic_pre</scheme>
<!-- <scheme>samfshalcnv</scheme>
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 would be good to add in the PR description why the shallow convection scheme is left out.

Diag%zmtnblck = zero

#ifdef CCPP
if (Model%imp_physics == Model%imp_physics_fer_hires) then
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.

If variables are conditionally-allocated here, they should probably have assumed-shape within the scheme. We've run into problems with conditionally-allocated variables with explicit shape in the schemes.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@mzhangw did you check/do this?

Comment thread gfsphysics/GFS_layer/GFS_typedefs.F90 Outdated
!--- F-A scheme
elseif (Model%imp_physics == Model%imp_physics_fer_hires) then
if (Model%spec_adv) then
Interstitial%nvdiff = 5 !qv, qc, qr, qi, qrime
Copy link
Copy Markdown
Collaborator

@grantfirl grantfirl Nov 12, 2019

Choose a reason for hiding this comment

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

I'm guessing this is temporary? Why would you have an 'if test' when you're setting nvdiff to the same value anyway?

Comment thread gfsphysics/GFS_layer/GFS_typedefs.meta Outdated
type = real
kind = kind_phys
[train]
standard_name = accumulated_tendency_of_air_temperature_due_to_FA_scheme
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.

Others may want to weigh in, but if you're just accumulating the change in a variable, call it "accumulated_change_of...". If it's really a tendency, its units would need to be K s-1.

name = GFS_interstitial_type
type = ddt
[qv_r]
standard_name = humidity_mixing_ratio
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.

why not "water_vapor_mixing_ratio"?

dustinswales referenced this pull request in dustinswales/fv3atm Nov 21, 2019
Update CAPS physics to master (second round) for final testing
Copy link
Copy Markdown

@climbfuji climbfuji left a comment

Choose a reason for hiding this comment

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

This looks ok to me. I noted checking that all conditionally-allocated arrays must have assumed-size declaration in subroutines (e.g. train(:) instead of train(1:im)). Given that all regression tests pass, it is ok to me to merge this set of PRs (provided that @grantfirl approves it as well) and make the changes later (but an issue should be created to check and if necessary fix the problem).

@@ -0,0 +1,87 @@
<?xml version="1.0" encoding="UTF-8"?>

<suite name="FV3_HAFS_ferhires_update_moist" lib="ccppphys" ver="3">
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I am just wondering if this is a suite name we want to keep in the future. How much information needs to go into the suite name / suite definition filename? Not something to address for this PR, but in general in the near future.

<scheme>GFS_DCNV_generic_pre</scheme>
<scheme>get_phi_fv3</scheme>
<scheme>GFS_suite_interstitial_3</scheme>
<!-- <scheme>samfdeepcnv</scheme> -->
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think @grantfirl was asking to remove those commented-out schemes.

Diag%zmtnblck = zero

#ifdef CCPP
if (Model%imp_physics == Model%imp_physics_fer_hires) then
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@mzhangw did you check/do this?

allocate (Interstitial%cnv_ndrop (IM,Model%levs))
allocate (Interstitial%cnv_nice (IM,Model%levs))
end if
if (Model%imp_physics == Model%imp_physics_fer_hires) then
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Same here, all these variables should be passed in as assumed-size (:,:)

@climbfuji climbfuji merged commit 72c51fc into NCAR:dtc/develop Nov 22, 2019
SamuelTrahanNOAA referenced this pull request in SamuelTrahanNOAA/fv3atm Jan 3, 2020
Add README.md containing disclaimer
climbfuji pushed a commit that referenced this pull request Apr 3, 2020
SamuelTrahanNOAA referenced this pull request in SamuelTrahanNOAA/fv3atm Jan 7, 2022
The HAFS related developments for the write_grid_component (NCAR#10)
grantfirl referenced this pull request in grantfirl/ufsatm Feb 16, 2022
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