Skip to content

Deprecate passing 'appctx' to solvers. - #5265

Closed
connorjward wants to merge 6 commits into
mainfrom
connorjward/proper-appctx
Closed

Deprecate passing 'appctx' to solvers.#5265
connorjward wants to merge 6 commits into
mainfrom
connorjward/proper-appctx

Conversation

@connorjward

Copy link
Copy Markdown
Contributor

Everything can now go in via the options dictionary.

For a seamless deprecation process preconditioners will display a warning if the old appctx is used, and custom preconditioners doing the wrong thing will display a warning too.

Needs firedrakeproject/petsctools#43

Everything can now go in via the options dictionary.

For a seamless deprecation process preconditioners will display a
warning if the old appctx is used, and custom preconditioners doing the
wrong thing will display a warning too.
dham
dham previously approved these changes Jul 21, 2026
Comment thread firedrake/preconditioners/assembled.py Outdated
Comment thread firedrake/preconditioners/patch.py Outdated
@JHopeCollins

Copy link
Copy Markdown
Member

Thanks for starting this up again.

See https://github.com/firedrakeproject/firedrake/pull/4526/changes for a bunch more places I found needed changes.

Comment thread pyproject.toml Outdated
Comment thread requirements-build.txt Outdated
Co-authored-by: Josh Hope-Collins <jhc.jss@gmail.com>
Co-authored-by: Connor Ward <c.ward20@imperial.ac.uk>
In theory everything should work as is, just raise warnings.
Comment thread docs/notebooks/08-composable-solvers.py
Comment thread firedrake/preconditioners/massinv.py
Comment thread firedrake/preconditioners/massinv.py
@connorjward

Copy link
Copy Markdown
Contributor Author

Closing in favour of #5427 and #5428 - should be easier to review

@connorjward connorjward closed this Sep 3, 2026
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.

3 participants