Skip to content

Automate docs element list for interpolation#4854

Draft
leo-collins wants to merge 2 commits intomainfrom
leo/element_list
Draft

Automate docs element list for interpolation#4854
leo-collins wants to merge 2 commits intomainfrom
leo/element_list

Conversation

@leo-collins
Copy link
Contributor

@leo-collins leo-collins requested a review from pbrubeck February 2, 2026 11:50
ufl_elem = FiniteElement(family, cell=cell, degree=degree_range[0])
finat_element = create_element(ufl_elem)

if short_name in {"BDMCF", "BDMCE"}:
Copy link
Contributor

Choose a reason for hiding this comment

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

What error is thrown here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Traceback (most recent call last):
  File "/Users/lac224/Coding/work/firedrake-dev/firedrake/docs/source/element_list.py", line 51, in <module>
    finat_element.dual_basis
  File "/Users/lac224/Coding/work/firedrake-dev/fiat/finat/fiat_elements.py", line 245, in dual_basis
    Q, pts = self._dual_basis
             ^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/python@3.13/3.13.9/Frameworks/Python.framework/Versions/3.13/lib/python3.13/functools.py", line 1026, in __get__
    val = self.func(instance)
  File "/Users/lac224/Coding/work/firedrake-dev/fiat/finat/fiat_elements.py", line 158, in _dual_basis
    fiat_dual_basis = self._element.dual_basis()
  File "/Users/lac224/Coding/work/firedrake-dev/fiat/FIAT/finite_element.py", line 63, in dual_basis
    return self.dual.get_nodes()
           ^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get_nodes'

Copy link
Contributor

Choose a reason for hiding this comment

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

Okay, easy. We just need to redo this PR for these elements
firedrakeproject/fiat#182

Copy link
Contributor

Choose a reason for hiding this comment

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

Could you confirm that BDMC fails as expected after checking out this FIAT branch, firedrakeproject/fiat#218?


Firedrake supports the use of the following finite elements.
Firedrake supports the use of the following finite elements. The last column
specifies if we support interpolation **into** a function space built from the element.
Copy link
Contributor

Choose a reason for hiding this comment

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

We should say that interpolation from is universally supported

.. csv-table::
:header: "Name", "Short name", "Value shape", "Valid cells"
:widths: 20, 10, 10, 40
:header: "Name", "Short name", "Value shape", "Valid cells", "Supports interpolation?"
Copy link
Contributor

Choose a reason for hiding this comment

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

The column name could be more specific. Maybe "Valid interpolation target"?

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