Skip to content

Commit

Permalink
Update the index correctly (it's a boolean index, not an integer index)
Browse files Browse the repository at this point in the history
  • Loading branch information
Huite committed Feb 10, 2025
1 parent 8b265aa commit fcf6800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xugrid/ugrid/ugrid2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -2264,7 +2264,7 @@ def from_structured_bounds(
f"Your structured bounds contain {len(keep) - keep.sum()} invalid faces.\n"
"These will be omitted from the Ugrid2d topology.",
)
index = index[keep]
index &= keep
face_node_connectivity[~valid] = -1
face_node_connectivity = connectivity.renumber(
face_node_connectivity[keep]
Expand Down

0 comments on commit fcf6800

Please sign in to comment.