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

Python wrappers for AdjacencyList and FiniteElement missing #3483

Open
schnellerhase opened this issue Oct 26, 2024 · 3 comments
Open

Python wrappers for AdjacencyList and FiniteElement missing #3483

schnellerhase opened this issue Oct 26, 2024 · 3 comments

Comments

@schnellerhase
Copy link
Contributor

Both AdjacencyList and FiniteElement are exported for multiple data types and thus should be wrapped into a uniform python interface as done for other multi type exports.

@chrhansk
Copy link

I am experiencing a similar problem: I have so far been using version 0.7.1 of fenics-dolfinx using anaconda. This version has the class FiniteElement in the ufl module.

However, when switching to 0.9.0, the class is simply gone, breaking my code. Is there some workaround for the current version?

@jorgensd
Copy link
Member

@chrhansk You are referring to ufl.FiniteElement, not dolfinx.cpp.fem.FiniteElement.
All finite elements from ufl has been removed (ufl.FiniteElement, ufl.VectorElement, ufl.TensorElement, and been replaced by the relevant basix.ufl.element. For an explanation about how to write these elements, see for instance:
https://jsdokken.com/FEniCS-workshop/src/unified_form_language/ufl_elements.html#the-finite-element
or https://jsdokken.com/fenics22-tutorial/comparing_elements.html#piecewise-constant-pressure-spaces
and subsequent sections

@chrhansk
Copy link

@jorgensd: Thank you for the help and sorry for the noise.

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

No branches or pull requests

3 participants