Skip to content

variational solver will raise a warning for unused options#4690

Closed
JHopeCollins wants to merge 2 commits intomainfrom
JHopeCollins/warn_unused_options
Closed

variational solver will raise a warning for unused options#4690
JHopeCollins wants to merge 2 commits intomainfrom
JHopeCollins/warn_unused_options

Conversation

@JHopeCollins
Copy link
Member

@JHopeCollins JHopeCollins commented Oct 29, 2025

The petsctools implementation now just relies on the user passing -options_left or not, so there's no need to change anything in Firedrake.

I bumped the implementation in #3999 up to petsctools in firedrakeproject/petsctools#21. This PR just adds a call to the new OptionsManager.warn_unused_options method at the end of the solve call.

# TODO RELEASE
# "petsc4py==3.24.0",
"petsctools",
"petsctools @ git+https://github.com/firedrakeproject/petsctools.git@JHopeCollins/warn_unused_options",
Copy link
Member Author

Choose a reason for hiding this comment

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

Revert before merge:

Suggested change
"petsctools @ git+https://github.com/firedrakeproject/petsctools.git@JHopeCollins/warn_unused_options",
"petsctools",

@JHopeCollins JHopeCollins deleted the JHopeCollins/warn_unused_options branch November 3, 2025 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant