Repository navigation
Conversation
Run test and documentation jobs against the coordinate mapping API from firedrakeproject/fiat#316. Drop this commit after that PR merges into FIAT main. AI assistance used OpenAI Codex.
Compile dual evaluation using the interpolation target even for adjoint and scalar interpolations, whose public element describes the assembled result. AI assistance used OpenAI Codex.
Run the test and documentation installs against the exact revision from FEniCS/ufl#571. Drop this temporary commit before merging Firedrake. The TSFC companion also works with UFL main. AI assistance used OpenAI Codex.
pbrubeck
marked this pull request as ready for review
November 20, 2026 19:44
Pass the argument indices to GEM so spectral factorisation can see their factors. Cover wrapped Bernardi-Raugel and vector Morley interpolation into Piola and tensor spaces. AI assistance used OpenAI Codex.
The intermediate point-evaluation operator can report its primal target space with UFL #571. Assemble the final adjoint action directly so it allocates a cofunction on the source dual, or uses the caller-supplied tensor. Verified by the existing cross-mesh cofunction regression for the RT and N1curl destinations. AI assistance used OpenAI Codex.
Use the one-argument contraction interface and check exact componentwise interpolation costs and the wrapped Bernardi–Raugel flop budget. AI assistance used OpenAI Codex.
Pin test and documentation jobs to the verified FIAT #317 commit. Drop this override once the FIAT change has merged. AI assistance used OpenAI Codex.
test_vector_flops checks that interpolation between VectorElement or TensorElement spaces costs one scalar interpolation per component. test_vector_zany_flops checks that a vector Bernardi-Raugel element stays within a fixed flop budget. The DG tests use "DG" on every cell instead of choosing between "DP" and "DQ". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
TSFC tabulated the target element of a nested Interpolate on the domain of its operand, which is wrong when the operand lives on another mesh, such as the parent of a Submesh. Evaluate the operand on its own domain, and tabulate and key the target basis on the domain of the target space. Expand a MeshSequence with join_domains, as compile_expression_dual_evaluation already does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Install fiat from pbrubeck/fix/listtensor-contraction (firedrakeproject/fiat#317) and UFL from pbrubeck/fix/interpolate-target-domain (FEniCS/ufl#571) in the test and documentation jobs. Drop this commit, with the earlier DROP BEFORE MERGE commits, once both companions have merged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pbrubeck
force-pushed
the
pbrubeck/zany-vector
branch
from
November 26, 2026 15:44
3011c24 to
c096001
Compare
test_vector_zany_flops compared the flop count of a vector Bernardi-Raugel interpolation into itself with a fixed budget. Interpolate the gradient of Reduced-Hermite into Rotated-Bernardi-Raugel instead, on its own and inside L2 and H1 inner products. Check that the vector element costs less than one scalar interpolation for each component. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With both arguments interpolated, the L2 and H1 forms pair two Interpolate nodes, so the test also covers the factorisation of the component coupling between them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A form that pairs each component only with itself has a block diagonal element tensor with the scalar element tensor in each block, so beyond the scalar work the components only accumulate their own blocks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Use the FInAT geometry requirement in both TSFC checks so vector wrappers inherit the requirement from their base element.
Fixes #5687 with the FInAT coordinate-mapping change. FIAT #316
Fixes #5686 with the UFL change that gives interpolation of a mixed-space component the target domain for spatial derivatives. For standalone interpolation, read the target element from the dual slot because the public element describes the assembled result. UFL #571
Evidence
Before the paired fix, both new regression cases failed at
assert coordinate_mapping is not None.Both families now match componentwise interpolation through
Function.interpolateand interpolation inside a form on one and two MPI ranks. The reported Reduced-Hermite discrete gradient also matches componentwise interpolation locally.The mixed interpolation reproducer failed with
RuntimeError: 4 != 2. With the UFL companion, the reported form and its mixed Jacobian assemble on one and two MPI ranks.With the UFL companion, scalar interpolation failed while evaluating the pullback. The dual-slot lookup passes the interpolation suite on one, two, and three MPI ranks. The scalar and adjoint tensor regressions also pass against UFL main.
Main's GEM code raises
FactorisationErrorfor wrapped Bernardi–Raugel self-interpolation in spectral mode. With the stacked FIAT change, that case and the vector Morley cases compile and agree with vanilla mode on a skew triangle. FIAT #317Merge Danger
Two-way. The TSFC change affects interpolation kernel setup and dual evaluation. Merge the FIAT stack first. The Firedrake change can land before the UFL change. Drop all three
DROP BEFORE MERGEcommits and rerun Firedrake CI. FIAT #316, FIAT #317, UFL #571.AI assistance used OpenAI Codex.