Skip to content

Add defelement_names next to supported_elements - #319

Merged
pbrubeck merged 1 commit into
releasefrom
pbrubeck/defelement-names
Nov 25, 2026
Merged

pbrubeck merged 1 commit into
releasefrom
pbrubeck/defelement-names

Conversation

@pbrubeck

@pbrubeck pbrubeck commented Nov 25, 2026 •

Copy link
Copy Markdown

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_element

A value of None means that DefElement has no page for that family.

Evidence

  • Before: Firedrake docs build with FIAT main: KeyError: "defelement_names has no entry for ['Reduced-Hermite', 'Reduced-Walkington', 'Rotated-Bernardi-Raugel']"
    After: assert defelement_names.keys() == supported_elements.keys() passes on release; make lint is clean. A new entry in supported_elements without a defelement_names entry 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 of release into main must add None entries for Reduced-Hermite, Reduced-Walkington and Rotated-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

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
pbrubeck force-pushed the pbrubeck/defelement-names branch from 8edab28 to 53e299c Compare November 25, 2026 11:21
@pbrubeck

Copy link
Copy Markdown
Author

We will need a FIAT point release if we migrate the list to FIAT also on release.

@pbrubeck
pbrubeck requested a review from connorjward November 25, 2026 11:25
@pbrubeck
pbrubeck merged commit f90cdb5 into release Nov 25, 2026
9 checks passed
@pbrubeck
pbrubeck deleted the pbrubeck/defelement-names branch November 25, 2026 12:19
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>
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