Skip to content
Open
Changes from all commits
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
5 changes: 2 additions & 3 deletions firedrake/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -3123,12 +3123,11 @@ def curve_field(self, order, permutation_tol=1e-8, location_tol=1e-1, cg_field=F
pyop2_index.extend(cell_node_map.values[ngidx])

# Find the correct coordinate permutation for each cell
# NB: Coordinates must be cast to real when running Firedrake in complex mode
permutation = find_permutation(
physical_space_points,
new_coordinates.dat.data[pyop2_index].reshape(
new_coordinates.dat.data[pyop2_index].real.reshape(
physical_space_points.shape
).astype(np.float64, copy=False),
),
tol=permutation_tol
)

Expand Down
Loading