Skip to content

Warn users about interpolate expression renumbering#4572

Merged
dham merged 3 commits intomainfrom
leo/warng_interpolate_numbering
Sep 24, 2025
Merged

Warn users about interpolate expression renumbering#4572
dham merged 3 commits intomainfrom
leo/warng_interpolate_numbering

Conversation

@leo-collins
Copy link
Contributor

If the dual argument to interpolate is a function space, we currently renumber TestFunctions inside the primal expression into TrialFunctions, which is confusing. We should remove this renumbering but since this is an API change we need to warn users.

I have a FEniCS/ufl#422 PR which adds some checks to ufl.Interpolate. Once this passes we can get rid of the junk inside the Firedrake interpolate factory function and have it just return an Interpolate.

pbrubeck
pbrubeck previously approved these changes Sep 23, 2025
Copy link
Contributor

@pbrubeck pbrubeck left a comment

Choose a reason for hiding this comment

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

LGTM

@dham dham merged commit 7533d4b into main Sep 24, 2025
6 of 7 checks passed
@dham dham deleted the leo/warng_interpolate_numbering branch September 24, 2025 15:35
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