Skip to content

Conversation

@pbrubeck
Copy link
Contributor

@pbrubeck pbrubeck commented Mar 28, 2025

Description

This PR adds support for pc_type fieldsplit, mg, and python with RestrictedFunctionSpace.

Apparently setting name of the RFS also changes the name of the split in the PETSc solver option.
With the default name, the options prefix becomes fieldsplit_Restricted_on_boundary, instead of fieldsplit_x.
This PR ensures that the restricted spaces that are created within solvers preserve the name of the unrestricted parent space so that the same set of fieldsplit options works for both restrict=False and restrict=True.

@pbrubeck pbrubeck requested a review from ksagiyam March 28, 2025 15:05
@pbrubeck pbrubeck force-pushed the pbrubeck/fix/restricted-dmhooks branch from 4193431 to 1b20212 Compare March 28, 2025 18:22
@pbrubeck pbrubeck changed the title dmhooks: support RestrictedFunctionSpace RestrictedFunctionSpace: support Fieldsplit, multigrid, and python PC Mar 31, 2025
@pbrubeck pbrubeck force-pushed the pbrubeck/fix/restricted-dmhooks branch from 9df7a04 to 7a07dff Compare March 31, 2025 16:35
@pbrubeck pbrubeck force-pushed the pbrubeck/fix/restricted-dmhooks branch from 9a449c5 to f165b4b Compare March 31, 2025 22:12
@connorjward connorjward requested a review from ksagiyam August 6, 2025 15:41
Copy link
Contributor

@rckirby rckirby left a comment

Choose a reason for hiding this comment

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

Question: There are similar (I think) issues if we try to use Firedrake preconditioners inside of the reduced space snes VI solvers. Is there any way to connect some of this work to that case? (Of course, the information about restriction is coming from inside a SNES instead of outside in Firedrake in that case).

Copy link
Contributor

@connorjward connorjward left a comment

Choose a reason for hiding this comment

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

Please split some of this out into another PR. And @ksagiyam can review

@pbrubeck pbrubeck requested a review from ksagiyam August 29, 2025 14:25
@pbrubeck pbrubeck force-pushed the pbrubeck/fix/restricted-dmhooks branch from 4a1d57d to ddc189a Compare August 29, 2025 15:00
@ksagiyam ksagiyam dismissed stale reviews from connorjward and themself August 29, 2025 15:08

Done.

@ksagiyam ksagiyam enabled auto-merge (squash) August 29, 2025 15:10
@pbrubeck pbrubeck disabled auto-merge September 2, 2025 08:36
@pbrubeck pbrubeck merged commit e21254e into main Sep 2, 2025
12 of 14 checks passed
@pbrubeck pbrubeck deleted the pbrubeck/fix/restricted-dmhooks branch September 2, 2025 08:37
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.

5 participants