Skip to content

Raise a warning for unused petsc options in OptionsManager.#21

Merged
connorjward merged 13 commits intomainfrom
JHopeCollins/warn_unused_options
Nov 3, 2025
Merged

Raise a warning for unused petsc options in OptionsManager.#21
connorjward merged 13 commits intomainfrom
JHopeCollins/warn_unused_options

Conversation

@JHopeCollins
Copy link
Member

@JHopeCollins JHopeCollins commented Oct 29, 2025

Lifted from firedrakeproject/firedrake#3999.

If -options_left is passed on the command line or in the parameters passed to the OptionsManager then warnings will be raised at the end of the OptionsManager's lifetime for any unused options.

Closes #20

Copy link
Collaborator

@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.

Same change for the other docstring.

How does this interact with -options_left? I reckon the docstring could include more information.

Copy link
Collaborator

@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.

Very tiny nitpicks. I think this is pretty great now.

JHopeCollins and others added 4 commits November 3, 2025 12:10
Co-authored-by: Connor Ward <c.ward20@imperial.ac.uk>
…keproject/petsctools into JHopeCollins/warn_unused_options
Co-authored-by: Connor Ward <c.ward20@imperial.ac.uk>
@connorjward connorjward merged commit 76e49a7 into main Nov 3, 2025
2 checks passed
@JHopeCollins JHopeCollins deleted the JHopeCollins/warn_unused_options branch November 10, 2025 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable OptionsManager warning for unused options.

3 participants