Skip to content

Commit

Permalink
fix ufl.finat import
Browse files Browse the repository at this point in the history
  • Loading branch information
rckirby committed Feb 29, 2024
1 parent b912e77 commit 8b85266
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firedrake/mg/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def physical_node_locations(V):
assert isinstance(element, (finat.ufl.VectorElement, finat.ufl.TensorElement))
element = element.sub_elements[0]
mesh = V.mesh()
Vc = firedrake.FunctionSpace(mesh, ufl.VectorElement(element))
Vc = firedrake.FunctionSpace(mesh, finat.ufl.VectorElement(element))
# FIXME: This is unsafe for DG coordinates and CG target spaces.
return firedrake.assemble(firedrake.Interpolate(firedrake.SpatialCoordinate(mesh), Vc))

Expand Down

0 comments on commit 8b85266

Please sign in to comment.