Skip to content

Conversation

mahf708
Copy link
Contributor

@mahf708 mahf708 commented Jun 3, 2025

[NBFB]

fixes #7407

Comment on lines +492 to +493
Sa_ptem(i) = PF::calculate_theta_from_T(s_T_mid_i(num_levs-1), s_p_mid_i(num_levs-1),
&s_p_int_i(num_levs));
Copy link
Contributor

Choose a reason for hiding this comment

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

This is the only part I'm confused about. Based on @bogensch 's explanation in the issue I would think the last argument needs to be s_p_mid_i rather than s_p_int_i .

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can change that too (either works for me); @bogensch who misread your instructions (me or walter)? 😜

Copy link
Contributor

Choose a reason for hiding this comment

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

In this case the winner is Naser. We want to override P0 and make it so that P0 is the actual surface pressure, which is represented by the bottom index of s_p_int_i. It looks to my eyes that this was implemented correctly.

@mahf708
Copy link
Contributor Author

mahf708 commented Jun 10, 2025

Closing this pr as it is wrong. Thanks to @oksanaguba for clarification.

@mahf708 mahf708 closed this Jun 10, 2025
@mahf708 mahf708 deleted the mahf708/eamxx/exner-pressure-optional branch June 10, 2025 16:42
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.

EAMxx: Passing surface coupler inconsistent potential temperature
3 participants