Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…world3 into development
  • Loading branch information
lmoresi committed Aug 13, 2024
2 parents 7362d80 + 8780be7 commit 32b93b7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/underworld3/meshing.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,17 +530,17 @@ def box_return_coords_to_bounds(coords):
x11s = coords[:, 1] > maxCoords[1]

if dim == 3:
x20s = coords[:, 1] < minCoords[2]
x21s = coords[:, 1] > maxCoords[2]
x20s = coords[:, 2] < minCoords[2]
x21s = coords[:, 2] > maxCoords[2]

coords[x00s, :] = minCoords[0]
coords[x01s, :] = maxCoords[0]
coords[x10s, :] = minCoords[1]
coords[x11s, :] = maxCoords[1]
coords[x00s, 0] = minCoords[0]
coords[x01s, 0] = maxCoords[0]
coords[x10s, 1] = minCoords[1]
coords[x11s, 1] = maxCoords[1]

if dim == 3:
coords[x20s, :] = minCoords[2]
coords[x21s, :] = maxCoords[2]
coords[x20s, 2] = minCoords[2]
coords[x21s, 2] = maxCoords[2]

return coords

Expand Down

0 comments on commit 32b93b7

Please sign in to comment.