-
-
Notifications
You must be signed in to change notification settings - Fork 188
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
Use block preconditioner for mixed Poisson problem #3580
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jorgensd
reviewed
Jan 8, 2025
jorgensd
reviewed
Jan 8, 2025
jorgensd
reviewed
Jan 8, 2025
jorgensd
reviewed
Jan 8, 2025
jorgensd
reviewed
Jan 8, 2025
jorgensd
reviewed
Jan 8, 2025
python/demo/demo_mixed-poisson.py
Outdated
|
||
# + | ||
a_p00 = inner(sigma, tau) * dx + inner(div(sigma), div(tau)) * dx | ||
a_p11 = inner(u, v) * dx |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as above wrt. extract_blocks.
If we want to highlight both methods in 1 demo, we could keep this one as is as it is the simplest one.
jorgensd
reviewed
Jan 8, 2025
jorgensd
reviewed
Jan 8, 2025
jorgensd
reviewed
Jan 8, 2025
jorgensd
reviewed
Jan 8, 2025
@garth-wells In general a really nice addition to DOLFINx. I added some thoughts regarding the demo above. |
Co-authored-by: Jørgen Schartum Dokken <[email protected]>
Co-authored-by: Jørgen Schartum Dokken <[email protected]>
Co-authored-by: Jørgen Schartum Dokken <[email protected]>
Co-authored-by: Jørgen Schartum Dokken <[email protected]>
Co-authored-by: Jørgen Schartum Dokken <[email protected]>
… into garth/mixed-poisson-block
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Switch to a diagonal block preconditioner, with Hypre Auxiliary Space (AMS) for the$H({\rm div})$ block. AMS works in this case because the demo is 2D, in which case RT elements are just a rotation of Nedelec elements. If Hypre is not available (not configured with PETSc or running with complex floats, which are not supported by Hypre) use LU for the $H({\rm div})$ block.
For a 3D mixed Poisson demo, we would need to use the Hypre Auxiliary-space Divergence Solver (ADS) in place of AMS. This requires the 'discrete curl' operator (see #3587).
This change fixes issues with some LU solvers and saddle point problems.
ZeroBaseForm
from UFL for theempty
block on the formL
(see https://github.com/FEniCS/ufl/blob/eabdb001d648ae02fb2e04890899501ca471d528/ufl/form.py#L836).