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

Rename basix.ufl_wrapper -> basix.ufl #563

Merged
merged 24 commits into from
Mar 28, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
flake
mscroggs committed Mar 17, 2023
commit d375c05adc79fd5e4013d75f7c7e1ff70e18f1d3
4 changes: 3 additions & 1 deletion ffcx/element_interface.py
Original file line number Diff line number Diff line change
@@ -39,7 +39,9 @@ def _cached_conversion(element: ufl.finiteelement.FiniteElementBase) -> basix.uf
if isinstance(element, basix.ufl._BasixElementBase):
return element

warnings.warn("Use of elements created by UFL is deprecated. You should create elements directly using Basix.", DeprecationWarning)
warnings.warn(
"Use of elements created by UFL is deprecated. You should create elements directly using Basix.",
DeprecationWarning)

if hasattr(ufl, "VectorElement") and isinstance(element, ufl.VectorElement):
return basix.ufl.VectorElement(_cached_conversion(element.sub_elements()[0]), element.num_sub_elements())