Skip to content

Commit

Permalink
Tolerance needs to be dropped for cell location
Browse files Browse the repository at this point in the history
  • Loading branch information
JDBetteridge committed Oct 3, 2024
1 parent adbb85f commit 9e1e9cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ngsPETSc/utils/firedrake/meshes.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def curveField(self, order, tol=1e-8):
physical_space_points = physical_space_points[curved]
curved_space_points = curved_space_points[curved]
barycentres = np.average(physical_space_points, axis=1)
ng_index = [*map(self.locate_cell, barycentres)]
ng_index = [*map(lambda x: self.locate_cell(x, tolerance=0.01), barycentres)]
owned = [(0 <= ii < len(cell_node_map.values)) if ii is not None else False for ii in ng_index]

# Select only the points owned by this rank
Expand Down

0 comments on commit 9e1e9cd

Please sign in to comment.