Skip to content

Conversation

@pbrubeck
Copy link
Contributor

@pbrubeck pbrubeck commented Oct 15, 2025

Description

Ensures that the preprocessed Interpolate used for codegeneration has both arguments in the reference space.

Currently there is no analog of ReferenceValue for BaseForm, so we construct dummy symbols on the reference space.

@pbrubeck pbrubeck requested a review from leo-collins October 15, 2025 11:21

# Reconstructed Interpolate with mapped operand
# Reconstructed Interpolate in the reference space
expression = ufl.Interpolate(operand, v)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this now become a Firedrake Interpolate?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In theory yes, but there's no need at this depth of the codegen

@leo-collins leo-collins force-pushed the leo/refactor_interpolate branch 2 times, most recently from cc0276b to 15bdd53 Compare October 16, 2025 14:57
@pbrubeck pbrubeck force-pushed the pbrubeck/fix/interp-reference-value branch from 0c2a7a1 to d54994e Compare October 16, 2025 15:14
@pbrubeck pbrubeck requested a review from leo-collins October 16, 2025 15:15
@pbrubeck
Copy link
Contributor Author

@leo-collins should I merge this to your branch?

@leo-collins
Copy link
Contributor

#4595 is now passing the tests. Can you rebase this to check if it is passing

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.

2 participants