Skip to content

Commit

Permalink
Fix for breaking Firedrake
Browse files Browse the repository at this point in the history
  • Loading branch information
JDBetteridge committed Oct 8, 2024
1 parent dedddf7 commit a37d22d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ngsPETSc/utils/firedrake/meshes.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,12 @@ def curveField(self, order, permutation_tol=1e-8, location_tol=1e-1, cg_field=Fa
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(physical_space_points.shape),
new_coordinates.dat.data[pyop2_index].reshape(
physical_space_points.shape
).astype(np.float64, copy=False),
tol=permutation_tol
)

Expand Down

0 comments on commit a37d22d

Please sign in to comment.