Skip to content

Real x extruded fixes#4970

Open
connorjward wants to merge 5 commits intomainfrom
connorjward/real-elem-fixes
Open

Real x extruded fixes#4970
connorjward wants to merge 5 commits intomainfrom
connorjward/real-elem-fixes

Conversation

@connorjward
Copy link
Contributor

(currently incomplete) fixes needed for firedrakeproject/fiat#237

return family.reconstruct(cell=cell)

if family in {"R", "Real"} and degree is None:
degree = 0
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@pbrubeck under what circumstances do we allow degree to be None? I shoved this hack in but it is gross and likely should live in FIAT/FInAT/finat.ufl

Copy link
Contributor

Choose a reason for hiding this comment

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

Degree being None means the lowest order for which this element still makes sense

Copy link
Contributor

Choose a reason for hiding this comment

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

A common mistake is to not pass the degree when creating the R space. I think we should enable degree=None for DG in FIAT to mean degree=0, and similarly for other spaces.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK. I'll open a precursor PR then that does that.

Copy link
Contributor

Choose a reason for hiding this comment

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

This should live in fiat/discontinuous_lagrange.py. Just make degree a kwarg in the constructor.

@connorjward connorjward requested a review from pbrubeck March 23, 2026 12:03
@connorjward connorjward marked this pull request as ready for review March 23, 2026 12:03
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