Skip to content

Commit

Permalink
Merge pull request #393 from firedrakeproject/small_1D_vec_recovery_fix
Browse files Browse the repository at this point in the history
Tiny fix to 1D vector recovery
  • Loading branch information
jshipton committed Jul 25, 2023
2 parents cb0c056 + d50e646 commit ae3d1fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gusto/recovery/recovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def find_eff_coords(V0):
vec_DG1 = VectorFunctionSpace(mesh, DG1_element)
x = SpatialCoordinate(mesh)

if V0.ufl_element().value_size() > 1:
if isinstance(V0.ufl_element(), VectorElement) or V0.ufl_element().value_size() > 1:
eff_coords_list = []
V0_coords_list = []

Expand Down

0 comments on commit ae3d1fe

Please sign in to comment.