Skip to content

HAFS physics changes for CCPP#287

Closed
climbfuji wants to merge 2 commits into
NCAR:masterfrom
climbfuji:hafs_physics_ccpp
Closed

HAFS physics changes for CCPP#287
climbfuji wants to merge 2 commits into
NCAR:masterfrom
climbfuji:hafs_physics_ccpp

Conversation

@climbfuji
Copy link
Copy Markdown
Collaborator

Changes for the hurricane physics were recently made in the IPD version of GFS physics. This PR makes the corresponding changes in sfc_diff.f and adds a guard to prevent using the original moninedmf.f with the hurricane physics.

It is understood that the new moninedmf required to run the hurricane physics (moninedmf_hafs.f in IPD) should be combined with the existing moninedmf in CCPP to avoid the duplication of code. This will be addressed in a follow-up pull request when other schemes required for hurricane applications (e.g. Ferrier-Aligo microphysics) will be added.

This PR requires changes in the Vlab FV3 repository and must be merged at the same time (or afterwards), see issue https://vlab.ncep.noaa.gov/redmine/issues/66372.

Comment thread physics/moninedmf.f
errflg = 1
write(errmsg,'(*(a))') 'Logic error: moninq_fac == 0',
& ' is incompatible with hedmf'
end if
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.

Presumably, moninq_fac is set to 0 in the physics namelist when using HAFS? This isn't obvious from this PR.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes, and if moninq_fac is zero the code in this version of hedmf doesn't make sense.

Copy link
Copy Markdown
Collaborator

@grantfirl grantfirl left a comment

Choose a reason for hiding this comment

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

These changes (except for the whitespace changes in moninedmf.f) seem fine to me with the caveat that they should be used in conjunction with a yet-to-be done new version of moninedmf.

@climbfuji
Copy link
Copy Markdown
Collaborator Author

The "whitespace" changes are a conversion from windows line endings back to unix line endings. Somehow someone introduced those in the past. Never open code in windows.

@climbfuji
Copy link
Copy Markdown
Collaborator Author

This PR is replaced by #317

@climbfuji climbfuji closed this Sep 13, 2019
@climbfuji climbfuji deleted the hafs_physics_ccpp branch June 27, 2022 03:16
hannahcbarnes pushed a commit to hannahcbarnes/ccpp-physics that referenced this pull request Aug 3, 2022
* gitmodule to climbfuji/flake_from_yihua and ccpp/physics pointer update
* new pointer update
* Pointer update
* updated pointer to NCAR/ccpp-physics and reverted .gitmodules
XiaqiongZhou-NOAA pushed a commit to XiaqiongZhou-NOAA/ccpp-physics that referenced this pull request Jun 25, 2025
Slight modification in orographic gravity wave drag (OGWD) scheme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants