Repository navigation
Add defelement_names next to supported_elements - #319
Merged
Merged
Conversation
Map each supported element family to its DefElement page name, so that the Firedrake documentation can link each family to DefElement. A test checks that the map has an entry for every supported family, so that a new element in FInAT gets its entry in the same pull request. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pbrubeck
force-pushed
the
pbrubeck/defelement-names
branch
from
November 25, 2026 11:21
8edab28 to
53e299c
Compare
Author
|
We will need a FIAT point release if we migrate the list to FIAT also on release. |
connorjward
approved these changes
Nov 25, 2026
pbrubeck
added a commit
that referenced
this pull request
Nov 25, 2026
* EnrichedElement: tabulate at a single point (#308) Concatenate the subelement tables instead of preallocating with len(points), so the point and value shapes follow the subelements. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> * Add defelement_names next to supported_elements (#319) Map each supported element family to its DefElement page name, so that the Firedrake documentation can link each family to DefElement. A test checks that the map has an entry for every supported family, so that a new element in FInAT gets its entry in the same pull request. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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
The Firedrake docs link each element family in the supported elements table to its DefElement page. The map from family to page lived in Firedrake, so a new FIAT element broke the Firedrake docs build (firedrakeproject/firedrake#5711). This PR moves the map next to
supported_elements, so a new element gets its entry in the same FIAT PR.finat/element_factory.py supported_elements = {"Argyris": finat.Argyris, ...} + defelement_names = {"Argyris": "argyris", ..., "Walkington": None} test/finat/test_create_finat_element.py + test_defelement_names_has_every_supported_elementA value of
Nonemeans that DefElement has no page for that family.Evidence
KeyError: "defelement_names has no entry for ['Reduced-Hermite', 'Reduced-Walkington', 'Rotated-Bernardi-Raugel']"After:
assert defelement_names.keys() == supported_elements.keys()passes onrelease;make lintis clean. A new entry insupported_elementswithout adefelement_namesentry fails this test in FIAT CI.Merge Danger
Door: two-way
Blast Radius: docs
New public name in
finat.element_factory; no change to element construction. The merge ofreleaseintomainmust addNoneentries forReduced-Hermite,Reduced-WalkingtonandRotated-Bernardi-Raugel(#301), which have no DefElement page; the new test fails until it does. The Firedrake companion PR firedrakeproject/firedrake#5716 imports the map.The AI tool Claude Code (Claude Opus 5.5) prepared this PR.
🤖 Generated with Claude Code