Skip to content

Conversation

@leo-collins
Copy link
Contributor

@leo-collins leo-collins commented Sep 23, 2025

This PR removes the argument renumbering 0 -> 1 in the primal expression if V is a FunctionSpace. Thus if you want to interpolate an expression containing arguments (for example if you want to assemble the interpolation operator) then you need to use a TrialFunction instead of a TestFunction. Recent UFL changes check the argument numbering and raise an error early to avoid confusion.

This is an API change and should be merged after the next release. PR #4572 warns users about this.

@leo-collins leo-collins force-pushed the leo/simplify-interpolate branch 2 times, most recently from 92645d1 to aa30bf8 Compare October 1, 2025 14:04
@leo-collins leo-collins force-pushed the leo/simplify-interpolate branch 3 times, most recently from f8c2318 to 31f1cec Compare October 13, 2025 10:29
@leo-collins leo-collins marked this pull request as ready for review October 13, 2025 11:10
@leo-collins leo-collins force-pushed the leo/simplify-interpolate branch from 31f1cec to cfd3b44 Compare October 27, 2025 16:05
@leo-collins leo-collins force-pushed the leo/simplify-interpolate branch from cfd3b44 to c87fd8e Compare October 30, 2025 15:38
Copy link
Member

@dham dham left a comment

Choose a reason for hiding this comment

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

Please give this a super clear title and description for the release notes.

@leo-collins leo-collins changed the title Simplify interpolate Stop renumbering arguments in the expression to interpolate Nov 5, 2025
@leo-collins
Copy link
Contributor Author

@connorjward Updated the title and added a description aimed towards users. Is this okay to be merged now?

@connorjward connorjward merged commit 9a703c3 into main Nov 5, 2025
14 of 28 checks passed
@connorjward connorjward deleted the leo/simplify-interpolate branch November 5, 2025 12:48
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