Skip to content

Commit

Permalink
[geom] Remove internal Mesh assertion that is not jit compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
holl- committed Feb 12, 2025
1 parent d55ec61 commit d6e43f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phi/geom/_mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def neighbor_offsets(self):
if not self.all_boundary_faces:
return self._cell_deltas
boundary_deltas = (self.face_centers - self.center)[self.all_boundary_faces]
assert (vec_length(boundary_deltas) > 0).all, f"All boundary faces must be separated from the cell centers but 0 distance at the following {channel(stored_indices(boundary_deltas)).item_names[0]}:\n{nonzero(vec_length(boundary_deltas) == 0):full}"
# assert (vec_length(boundary_deltas) > 0).all, f"All boundary faces must be separated from the cell centers but 0 distance at the following {channel(stored_indices(boundary_deltas)).item_names[0]}:\n{nonzero(vec_length(boundary_deltas) == 0):full}"
return concat([self._cell_deltas, boundary_deltas], self.face_shape.dual)

@cached_property
Expand Down

0 comments on commit d6e43f9

Please sign in to comment.