Skip to content

Commit

Permalink
Update pointcloud.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchelldaneker authored Sep 14, 2023
1 parent 45c4098 commit b9a5c12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepxde/geometry/pointcloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def boundary_normal(self, x):
"boundary_normals must be defined for boundary_normal"
)
boundary_point_matches = isclose(
(self.boundary_points[:, None, :] - x[None, :, :]), 0, atol=1e-6
(self.boundary_points[:, None, :] - x[None, :, :]), 0
).all(axis=2)
normals_idx = np.where(boundary_point_matches == True)[0]
return self.boundary_normals[normals_idx, :]
Expand Down

0 comments on commit b9a5c12

Please sign in to comment.