Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a lower limit for pressure in radiation #3350

Merged
merged 1 commit into from
Oct 2, 2024
Merged

Conversation

szy21
Copy link
Member

@szy21 szy21 commented Oct 1, 2024

Purpose

When add_isothermal_boundary_layer is true, we add a layer in rrtmgp and set the pressure to half of the sum of top level pressure and rrtmgp minimum pressure here. This PR limits the pressure to p_min multiplied by a small number to prevent pressure from decreasing or being constant with height at the top level.

This unfortunately not always works (e.g. it seems to be affected by sponge parameters). But I think overall it's still an improvement and we should add it.

To-do

Content


  • I have read and checked the items on the review checklist.

@szy21 szy21 requested a review from Sbozzolo October 1, 2024 16:50
Copy link
Member

@Sbozzolo Sbozzolo left a comment

Choose a reason for hiding this comment

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

Please, add more information on what this is accomplishing before merging.

@szy21 szy21 force-pushed the zs/limit_pressure branch from b6c1d8b to 19e6c29 Compare October 1, 2024 22:20
@szy21
Copy link
Member Author

szy21 commented Oct 1, 2024

I updated the code comment and the PR message.

@szy21 szy21 enabled auto-merge October 1, 2024 22:51
@szy21 szy21 added this pull request to the merge queue Oct 2, 2024
Merged via the queue into main with commit c759b2e Oct 2, 2024
14 of 16 checks passed
@szy21 szy21 deleted the zs/limit_pressure branch October 2, 2024 05:29
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.

2 participants