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

Update to new implicit solver interface #2044

Merged
merged 2 commits into from
Oct 19, 2023
Merged

Update to new implicit solver interface #2044

merged 2 commits into from
Oct 19, 2023

Conversation

dennisYatunin
Copy link
Member

@dennisYatunin dennisYatunin commented Aug 31, 2023

Purpose

Updates ClimaAtmos to use the new implicit solver interface provided in ClimaCore.MatrixFields (CliMA/ClimaCore.jl#1326, CliMA/ClimaCore.jl#1399, and CliMA/ClimaCore.jl#1436).

Content

  • Replace wfact.jl and linsolve.jl with implicit_solver.jl. Most of the code from wfact.jl has been rewritten using the new FieldName and FieldMatrix infrastructure, while most of the code from linsolve.jl has been moved into the definition of FieldMatrixSolver in ClimaCore.
  • Modify the derivatives with respect to the vertical velocity u₃ to use AxisTensors and AdjointAxisTensors. (We were previously replacing these derivatives with similar derivatives with respect to u₃_data, which made the code unnecessarily complicated.)
  • Add a detailed docstring for the ImplicitEquationJacobian object. (This was formerly called SchurComplementW, but it needed to be renamed because we will not always use the "Schur complement solve" algorithm in the future.) Simplify and update the comments in the wfact! function to reflect the new code.
  • Bump the ref counter to account for 12 small MSE table changes.
  • Update the code in test/implicit/debugging_tools.jl. Although this still isn't a unit test, as the code is not currently modular enough to write a proper test, it can be very helpful when debugging the matrix blocks in the ImplicitEquationJacobian.

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

@dennisYatunin
Copy link
Member Author

bors try

bors bot added a commit that referenced this pull request Sep 28, 2023
@bors
Copy link
Contributor

bors bot commented Sep 28, 2023

try

Build failed:

@dennisYatunin dennisYatunin force-pushed the dy/try_new_interface branch 7 times, most recently from a302b55 to 89a45fd Compare October 5, 2023 07:33
@dennisYatunin dennisYatunin force-pushed the dy/try_new_interface branch 9 times, most recently from 722f800 to 0179e9c Compare October 6, 2023 22:27
@dennisYatunin dennisYatunin force-pushed the dy/try_new_interface branch 2 times, most recently from 435c248 to 30ddcec Compare October 17, 2023 20:33
@dennisYatunin dennisYatunin marked this pull request as ready for review October 17, 2023 20:51
@dennisYatunin
Copy link
Member Author

bors r+

@dennisYatunin
Copy link
Member Author

bors cancel

@bors
Copy link
Contributor

bors bot commented Oct 17, 2023

Canceled.

@dennisYatunin dennisYatunin force-pushed the dy/try_new_interface branch 3 times, most recently from 728f90e to 08ea344 Compare October 18, 2023 00:10
@dennisYatunin dennisYatunin changed the title Try out new implicit solver interface Update to new implicit solver interface Oct 18, 2023
@dennisYatunin dennisYatunin force-pushed the dy/try_new_interface branch 3 times, most recently from f42355b to 7f91e2e Compare October 18, 2023 00:43
@dennisYatunin
Copy link
Member Author

bors r+

bors bot added a commit that referenced this pull request Oct 18, 2023
2044: Update to new implicit solver interface r=dennisYatunin a=dennisYatunin



Co-authored-by: Dennis Yatunin <[email protected]>
@bors
Copy link
Contributor

bors bot commented Oct 18, 2023

Build failed:

@szy21
Copy link
Member

szy21 commented Oct 18, 2023

bors r+

bors bot added a commit that referenced this pull request Oct 18, 2023
2044: Update to new implicit solver interface r=szy21 a=dennisYatunin



Co-authored-by: Dennis Yatunin <[email protected]>
@bors
Copy link
Contributor

bors bot commented Oct 18, 2023

Build failed:

@dennisYatunin dennisYatunin force-pushed the dy/try_new_interface branch 2 times, most recently from 177f417 to 95fdd0a Compare October 19, 2023 18:49
@dennisYatunin
Copy link
Member Author

bors r+

@bors
Copy link
Contributor

bors bot commented Oct 19, 2023

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot merged commit 5f9f0e2 into main Oct 19, 2023
10 of 11 checks passed
@bors bors bot deleted the dy/try_new_interface branch October 19, 2023 20:41
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