From 8780be78249c6f5a8ae780b4875a21403efe68e6 Mon Sep 17 00:00:00 2001 From: jcgraciosa <12045001+jcgraciosa@users.noreply.github.com> Date: Mon, 12 Aug 2024 14:04:37 +1000 Subject: [PATCH] Fixed another box_return_coords_to_bounds function (#225) Co-authored-by: Juan Carlos Graciosa --- src/underworld3/meshing.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/underworld3/meshing.py b/src/underworld3/meshing.py index 2e5e01196..20a08059f 100644 --- a/src/underworld3/meshing.py +++ b/src/underworld3/meshing.py @@ -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