Skip to content

Commit 56ddeed

Browse files
authored
Avoid coordinates warning in complex mode (#4815)
1 parent b51d98d commit 56ddeed

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

firedrake/mesh.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3123,12 +3123,11 @@ def curve_field(self, order, permutation_tol=1e-8, location_tol=1e-1, cg_field=F
31233123
pyop2_index.extend(cell_node_map.values[ngidx])
31243124

31253125
# Find the correct coordinate permutation for each cell
3126-
# NB: Coordinates must be cast to real when running Firedrake in complex mode
31273126
permutation = find_permutation(
31283127
physical_space_points,
3129-
new_coordinates.dat.data[pyop2_index].reshape(
3128+
new_coordinates.dat.data[pyop2_index].real.reshape(
31303129
physical_space_points.shape
3131-
).astype(np.float64, copy=False),
3130+
),
31323131
tol=permutation_tol
31333132
)
31343133

0 commit comments

Comments
 (0)