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

Set multigrid transfer managers using petsc options #170

Merged
merged 3 commits into from
Feb 20, 2024

Conversation

JHopeCollins
Copy link
Member

We used to have to manually construct multigrid transfer managers by creating a ManifoldTransferManager and using the restrict/inject/prolong methods of that object to construct a firedrake.TransferManager. This meant that we couldn't just use the default constructor.

The ManifoldTransferManager has been refactored so we can now just use the default constructor. This means we can set the transfer manager for the blocks just using petsc options, similarly to setting python preconditioners. The explicit handling of transfer managers in the shallow water miniapp and in the circulant preconditioner can be removed.

@JHopeCollins JHopeCollins added the refactor Tidy up existing functionality label Feb 20, 2024
@JHopeCollins JHopeCollins self-assigned this Feb 20, 2024
@colinjcotter colinjcotter merged commit ae951e5 into master Feb 20, 2024
1 check passed
@colinjcotter colinjcotter deleted the transfer_manager_options branch February 20, 2024 14:24
@colinjcotter colinjcotter restored the transfer_manager_options branch February 20, 2024 14:24
@JHopeCollins JHopeCollins linked an issue Feb 22, 2024 that may be closed by this pull request
@JHopeCollins JHopeCollins deleted the transfer_manager_options branch March 27, 2024 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Tidy up existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Transfer managers as PETSc options?
2 participants