Skip to content

Prevsq and prevst in post schemes - #1247

Open
matusmartini wants to merge 4 commits into
NCAR:mainfrom
matusmartini:prevsq-and-prevst-in-post-schemes
Open

matusmartini wants to merge 4 commits into
NCAR:mainfrom
matusmartini:prevsq-and-prevst-in-post-schemes

Conversation

@matusmartini

@matusmartini matusmartini commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

Description of Changes:

This is a follow-up cleanup to

removing prevsq and prevst from the post schemes. Resetting the fields is redundant because it is already performed in GFS_physics_post at the end of the physics.

Tests Conducted:

Tested to verify no impact. As long as GFS_physics_post is included in the SDF, this change has no impact on the fields.

Dependencies:

For completeness, the same is proposed in

Documentation:

None.

if(progsigma)then
do k = 1, levs
do i=1, im
prevsq(i,k) = gq0(i,k,1)

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.

Quoting @climbfuji
"This block is only executed if progsigma is true (and it implicitly requires allocating prevsq). The new code in GFS_physics_post is executed when prevsq is allocated."

  • This is ok and I do not see this is as a problem.

@matusmartini

Copy link
Copy Markdown
Collaborator Author

@lisa-bengtsson

Copy link
Copy Markdown
Collaborator

I can follow up with the same update in https://github.com/ufs-community/c3/blob/24fd7fc0483930abbeb5fff0cceea26511250e25/CCPP/cu_c3_driver_post.F90#L55-L56

That would be much appreciated, thank you.

@matusmartini

Copy link
Copy Markdown
Collaborator Author

I can follow up with the same update in https://github.com/ufs-community/c3/blob/24fd7fc0483930abbeb5fff0cceea26511250e25/CCPP/cu_c3_driver_post.F90#L55-L56

That would be much appreciated, thank you.

@dustinswales dustinswales left a comment

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.

Thank you for these changes.

@scrasmussen

scrasmussen commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

Just noting that because this is cleanup to #1242, which is in ufs-community#395, this PR probably shouldn't be merged until 395 has been merged here. Merging 395 is being tracked in an issue and people are working on it.

The SCM PR#741 has been created for this PR but is currently breaking because of the missing 395

This branch has not been deployed

No deployments
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.

7 participants