Repository navigation
Clarify and standardize quadrature-order semantics across element types #73
Replies: 1 comment
|
Thanks for writing this up, @rohnerfa. Your table matches the code, and the inconsistency already leaks into our own tests ( We agree with the direction, and we would like to take your first approach: Concretely:
One related point for later: the assemblers default to Since this builds directly on #72, we will prepare the PR on our side on top of it. Your review there would be very welcome. |
Uh oh!
There was an error while loading. Please reload this page.
Motivation
The meaning of
quadrature_order—andorderin the element quadrature factories—currently depends on the reference element:For example,
Line.get_quadrature(4)returns a four-point rule exact through degree seven, whereasTriangle.get_quadrature(4)requests degree-four exactness.This makes a single quadrature-order setting difficult to interpret across element types, particularly when selecting quadrature from the polynomial degree of an integrand. Prism rules mix both conventions within one request.
Proposed direction
Provide a consistent way to request a minimum polynomial exactness degree, with the implementation choosing an appropriate rule and point count.
The convention should:
These guarantees would concern polynomial integrands on the reference element; curved geometry and non-polynomial integrands would still require quadrature-convergence checks.
Backward compatibility
Changing the meaning of existing arguments could change point counts, integration accuracy and the layout of per-quadrature-point data. This should therefore be an explicit API change with migration guidance, not a silent reinterpretation.
Two possible approaches are:
quadrature_degree, preserving the existing semantics for legacy callers.All reactions