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

Move T_imp approximation before DSS #352

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

dennisYatunin
Copy link
Member

Purpose

This PR undoes a small change that was accidentally introduced in #348. We were previously approximating the implicit tendency as (U_after_implicit_solve - U_before_implicit_solve) / (Δt * γ), but in that PR I ended up changing it to (DSS(U_after_implicit_solve) - U_before_implicit_solve) / (Δt * γ). In the absence of roundoff error, these would be exactly identical. Unfortunately, we do not satisfy DSS(DSS(U)) == DSS(U) at a discrete level, so they are not quite identical. Reverting to the original approximation of T_imp might marginally improve stability.


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

@charleskawczynski
Copy link
Member

I'm not opposed to these changes, but having moved these pieces around myself, I remember just how complex some of the edge cases are, and I'm a bit uneasy about the current test situation in the code. I'd really like to fix #106 so that it's simple and clear what is being changed here.

I don't want to slow down progress, so please feel free to merge if we get a green light on CI and atmos tests look fine. I'll bump the priority of fixing #106.

@dennisYatunin dennisYatunin force-pushed the dy/T_imp_approximation branch from 8a59247 to 6559429 Compare January 22, 2025 19:28
@dennisYatunin dennisYatunin force-pushed the dy/T_imp_approximation branch from 4ec8293 to b44b486 Compare January 23, 2025 00:00
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