Skip to content

docs: take the DefElement page names from FInAT - #5716

Merged
pbrubeck merged 2 commits into
releasefrom
pbrubeck/defelement-names-from-finat
Nov 26, 2026
Merged

pbrubeck merged 2 commits into
releasefrom
pbrubeck/defelement-names-from-finat

Conversation

@pbrubeck

@pbrubeck pbrubeck commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The supported elements page links each family to DefElement. It takes the family-to-page map from FInAT now (firedrakeproject/fiat#319), not from a local copy. A FIAT test checks that the map covers every family, so a new FIAT element no longer breaks the Firedrake docs build, as it does in #5711.

 docs/source/element_list.py
-  defelement_names = {...}            # local copy
-  raise KeyError / ValueError if it disagrees with supported_elements
+  from finat.element_factory import defelement_names, supported_elements

The generated table does not change.

Evidence

Merge Danger

Door: two-way

Blast Radius: docs

Needs firedrakeproject/fiat#319 first. release installs firedrake-fiat==2026.10 from PyPI, which has no defelement_names, so the docs build fails on release until a FIAT release with #319 is published and the pin is bumped.

The AI tool Claude Code (Claude Opus 5.5) prepared this PR.

🤖 Generated with Claude Code

@pbrubeck pbrubeck added the LLM used An LLM was used in the production of this PR label Nov 25, 2026
@pbrubeck
pbrubeck changed the base branch from pbrubeck/merge-release-into-main to release November 25, 2026 11:21
FInAT now keeps the map from each element family to its DefElement page
next to supported_elements, and a FIAT test checks that the map covers
every family.  A new element in FIAT therefore no longer breaks the
Firedrake documentation build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pbrubeck
pbrubeck force-pushed the pbrubeck/defelement-names-from-finat branch from 2566ebc to 37755e7 Compare November 25, 2026 11:21
@pbrubeck

Copy link
Copy Markdown
Contributor Author

Docs is green. Merging this now.

@pbrubeck
pbrubeck merged commit 191b432 into release Nov 26, 2026
7 checks passed
@pbrubeck
pbrubeck deleted the pbrubeck/defelement-names-from-finat branch November 26, 2026 15:24
pbrubeck added a commit that referenced this pull request Nov 27, 2026
* Minor notebook fixes (#5626)

Fix typos and formatting issues.

---------

Co-authored-by: Pablo Brubeck <brubeck@protonmail.com>
Co-authored-by: Leo Collins <collins.leo@proton.me>

* Remove confusing instruction when installing PETSc (#5426)

Just running make is sufficient for beginner usage.

* Add instructions for using TAU profiler (#5581)

* Add instructions for setting up the TAU profiling tools

---------

Co-authored-by: Connor Ward <c.ward20@imperial.ac.uk>

* Replay NonlinearVariationalSolver with its Jp and objective (#5558)

The forward problem cloned for replay dropped the preconditioner Jp and
the objective E, so a replay whose solve depends on them did not
reproduce the forward run. The clone now copies their coefficients with
the same replacement map as the residual, the solve block depends on
their coefficients, and their checkpointed values are assigned before
each replay.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* docs: move supported elements to their own manual page, and link to defelement.org (#5622)

* docs: move supported elements to their own manual page

Move the "Supported finite elements" and "Element variants" sections
out of variational-problems.rst into a new page, supported-elements.rst,
and add it to the manual's table of contents after
variational-problems. A short pointer to the new page is left in place.

The new page:
- states that a family can be given by either its full name or its
  abbreviation;
- says that the table is generated from finat/ufl/elementlist.py in
  FIAT;
- points to DefElement for what each element actually is.

element_list.py now sorts the table alphabetically by name, ignoring
case, and leaves the abbreviation empty when a family has none or when
it is the same as the name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs: list element aliases in the supported elements table

Rename the "Abbreviation" column to "Other names" and fill it with the
abbreviation and the aliases from finat.ufl.elementlist that always
select the same family.  The FEEC aliases depend on the cell dimension
and the form degree, so the page describes them in prose instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs: link each supported element to its DefElement page

element_list.py maps each family to its DefElement page name, or to
None where DefElement has no page, and makes the family name in the
table a link to that page.  A family that is missing from the map gets
a warning when the table is generated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Update docs/source/element_list.py

Co-authored-by: Pablo Brubeck <brubeck@protonmail.com>

* simplify and localize helper function; remove doc string for it

* use set comparison code suggested by @connorjward to error-out if defelem_names is out of date

* Update docs/source/element_list.py

Co-authored-by: Pablo Brubeck <brubeck@protonmail.com>

* docs: list short names as other names of supported elements

Add the short name of each family to the "Other names" column, write the
names as a comma-separated list, and tidy element_list.py.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BiE9Ec3iqMwq3KFfKCfi2h

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Pablo Brubeck <brubeck@protonmail.com>

* Use system HDF5 for macOS (#5383)

Building through PETSc is no longer necessary

* Fix the parameter sections of L2TransformedFunctional docstrings (#5572)

* AGENTS.md: reinstall petsc4py without -e after a PETSc rebuild (#5530)

An editable install of petsc4py reads lib/petsc.cfg from the source
tree, where it is the template "PETSC_DIR = %(PETSC_DIR)s". The build
writes the real values only into the build directory, so
petsc4py.get_config() raises InterpolationDepthError and import firedrake
fails.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Rewrite AGENTS.md from repeated review comments (#5691)

* Rewrite AGENTS.md from repeated review comments

Rewrite the rules in AGENTS.md from the comments that reviewers repeat
most often on pull requests that were approved after changes were
requested. State each rule as a short instruction, and keep the existing
section headings.

Add rules for tests: compare against exact or independently computed
values, test behaviour instead of implementation details, do not
hardcode numbers from a previous run, and check one property in each
test. Add a WRONG/RIGHT example of an overloaded parametrized test.

Shorten the toolchain notes and the anti-pattern examples, and refer to
pyop3 instead of PyOP2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Refine AGENTS.md coding and testing guidance

* Clarify MPI assertions and pull request descriptions

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Fix links to the API documentation (#5720)

* Fix links to the API documentation

The API pages moved under apidoc/, so links written as full URLs to
firedrake.html and firedrake.preconditioners.html returned 404 and
failed the documentation linkcheck.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Link to the release API documentation

The site root serves the documentation of the current release, and
/firedrake/ serves the documentation of the main branch. Readers of
the notebooks and of the error message should see the release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Remove the check for the inc keyword of PCG64

The check is from 2021. NumPy rejects the inc keyword with a TypeError.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Describe the current PCG64 constructor in the inc notes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Pin UFL minor version and take latest FIAT minor release (#5718)

* Pin UFL minor version and take latest FIAT minor release

* docs: take the DefElement page names from FInAT (#5716)

FInAT now keeps the map from each element family to its DefElement page
next to supported_elements, and a FIAT test checks that the map covers
every family.  A new element in FIAT therefore no longer breaks the
Firedrake documentation build.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Connor Ward <c.ward20@imperial.ac.uk>
Co-authored-by: Leo Collins <collins.leo@proton.me>
Co-authored-by: Dave Acreman <d.m.acreman@exeter.ac.uk>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Ed Bueler <elbueler@alaska.edu>
Co-authored-by: Lim Jooyoung <74720422+mmporong@users.noreply.github.com>
pbrubeck added a commit that referenced this pull request Nov 27, 2026
FInAT now keeps the map from each element family to its DefElement page
next to supported_elements, and a FIAT test checks that the map covers
every family.  A new element in FIAT therefore no longer breaks the
Firedrake documentation build.

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

LLM used An LLM was used in the production of this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants