Skip to content

Conversation

@pbrubeck
Copy link
Contributor

@pbrubeck pbrubeck commented Jan 26, 2026

Description

Previously, multigrid on non-Lagrange elements relied on L2 projection onto an embedding DG space.

This PR implements a Quadrature space to remove the need for the L2 projection.

Here we reuse the codegen for interpolation into a VertexOnlyMesh, namely compile_expression_dual_evaluation, which supports interpolation across non-Lagrange elements (as long as the target element does not have derivative degrees of freedom). As a consequence, prolong, restrict and inject are now natively able to transfer accross FunctionSpaces on a MeshHierarchy, even for the case where the target and souce spaces are defined with different finite elements.

@pbrubeck pbrubeck force-pushed the pbrubeck/mg-quadrature branch 2 times, most recently from 5334c61 to 9cbefc7 Compare January 27, 2026 10:05
@pbrubeck pbrubeck force-pushed the pbrubeck/mg-quadrature branch from 9cbefc7 to 0232cd8 Compare January 27, 2026 10:07
@pbrubeck pbrubeck force-pushed the pbrubeck/mg-quadrature branch from 9c7ea3e to 806df32 Compare January 27, 2026 11:40
@pbrubeck pbrubeck force-pushed the pbrubeck/mg-quadrature branch from f20d778 to 6b0c385 Compare January 27, 2026 12:24
@pbrubeck pbrubeck force-pushed the pbrubeck/mg-quadrature branch from 82b4277 to 8c52b0d Compare January 28, 2026 21:00
@pbrubeck pbrubeck force-pushed the pbrubeck/mg-quadrature branch 2 times, most recently from 35703d0 to 63272ae Compare January 29, 2026 07:56
@pbrubeck pbrubeck requested a review from connorjward January 29, 2026 08:04
@pbrubeck pbrubeck force-pushed the pbrubeck/mg-quadrature branch from 63272ae to 6cb4efe Compare January 29, 2026 08:12
@pbrubeck pbrubeck force-pushed the pbrubeck/mg-quadrature branch from 6cb4efe to 4b5cfa9 Compare January 29, 2026 09:35
@pbrubeck pbrubeck changed the title TransferManager: use Quadrature element Multigrid: native transfers for non-Lagrange elements Jan 29, 2026
Copy link
Contributor

@connorjward connorjward left a comment

Choose a reason for hiding this comment

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

This is going to need a review from someone with more understanding of the FEM aspects of this.

@pbrubeck pbrubeck force-pushed the pbrubeck/mg-quadrature branch from 42d95d0 to 91839b9 Compare January 29, 2026 15:47
@pbrubeck pbrubeck enabled auto-merge (squash) January 29, 2026 17:40
@pbrubeck pbrubeck requested a review from connorjward January 29, 2026 17:40
@pbrubeck pbrubeck merged commit fcb6b87 into main Jan 29, 2026
13 of 14 checks passed
@pbrubeck pbrubeck deleted the pbrubeck/mg-quadrature branch January 29, 2026 17:50
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