Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add variant to EnrichedElement, TensorProductElement, etc #121

Merged

Conversation

pbrubeck
Copy link
Contributor

This PR lets composite elements return the variant property of their sub-elements. When the sub-elements are of different variants, variant() returns None.

@pbrubeck pbrubeck requested a review from wence- October 7, 2022 08:40
Comment on lines 203 to 206
register_element2("SminusE", 1, HCurl, "covariant Piola", (1, None), cubes[1:3])
register_element2("SminusF", 1, HDiv, "contravariant Piola", (1, None), cubes[1:2])
register_element2("SminusDiv", 1, HDiv, "contravariant Piola", (1, None), cubes[1:3])
register_element2("SminusCurl", 1, HCurl, "covariant Piola", (1, None), cubes[1:3])
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why are these part of this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think these "Sminus" elements aren't in the FEniCS UFL yet? Anyways I have cleaned the commit history.

@pbrubeck pbrubeck force-pushed the pbrubeck/feature/composite-variant branch 2 times, most recently from ac7bc17 to be741d0 Compare October 10, 2022 13:33
@pbrubeck pbrubeck force-pushed the pbrubeck/feature/composite-variant branch from be741d0 to cb329cc Compare October 10, 2022 13:34
Copy link
Collaborator

@wence- wence- left a comment

Choose a reason for hiding this comment

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

Thanks!

@wence- wence- merged commit 530f304 into FEniCS:main Oct 10, 2022
@wence- wence- deleted the pbrubeck/feature/composite-variant branch October 10, 2022 14:12
pbrubeck added a commit to firedrakeproject/ufl that referenced this pull request Nov 1, 2022
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.

None yet

2 participants