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

Allow VectorElement to take a variant argument. #17

Conversation

pefarrell
Copy link
Contributor

No description provided.

@wence-
Copy link
Collaborator

wence- commented Apr 7, 2020

Can you do this for TensorElement too, then I'll merge.

@@ -263,6 +263,8 @@ def __init__(self, family, cell=None, degree=None, dim=None,
viewed as k-form), ignored if family is a FiniteElement
quad_scheme
The quadrature scheme (optional), ignored if family is a FiniteElement
variant
Copy link
Member

Choose a reason for hiding this comment

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

I think this needs a bit more explanation. I don't understand the docstring.

Copy link
Contributor

Choose a reason for hiding this comment

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

This variant thing was first introduced to distinguish between GL, GLL, and equispaced Langrange elements without a profusion of names: Q, dQ, RTCE, RTCF, NCE, NCF type elements could be built from equispaced Lagrange as well as from spectral ingredients.

Later uses of this include RT and N1curl elements being available with different nodal basis, etc.

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

For further reference, see this UFL issue and this UFL pull request.

@mscroggs mscroggs changed the base branch from main to mscroggs/variants January 4, 2023 16:03
@mscroggs mscroggs merged commit 5abf719 into FEniCS:mscroggs/variants Jan 4, 2023
garth-wells pushed a commit that referenced this pull request Jan 6, 2023
* add variant for MixedElement (#129)

* Allow VectorElement to take a variant argument. (#17)

Co-authored-by: Patrick Farrell <patrick@pefarrell.org>

Co-authored-by: Pablo Brubeck <brubeck@protonmail.com>
Co-authored-by: Patrick E. Farrell <patrick.farrell@maths.ox.ac.uk>
Co-authored-by: Patrick Farrell <patrick@pefarrell.org>
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.

5 participants