Skip to content

Fix RegionalSphericalBox bounds helper - #482

Open
ss2098 wants to merge 1 commit into
underworldcode:developmentfrom
ss2098:ss2098/fix-regional-spherical-box-bounds-helper
Open

Fix RegionalSphericalBox bounds helper#482
ss2098 wants to merge 1 commit into
underworldcode:developmentfrom
ss2098:ss2098/fix-regional-spherical-box-bounds-helper

Conversation

@ss2098

@ss2098 ss2098 commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

This PR fixes a NameError in RegionalSphericalBox().

RegionalSphericalBox() passes sphere_return_coords_to_bounds to Mesh(), but that helper was not defined in src/underworld3/meshing/geographic.py. This adds the local bounds helper used to keep coordinates inside the spherical shell bounds.

This does not change solver internals.

Validation:

  • python -m py_compile src/underworld3/meshing/geographic.py
  • pixi run python docs/examples/tutorials/geographic/Ex_Spherical_Meshes.py

The example now completes the regional spherical mesh section and gravity check without the previous NameError.

@ss2098
ss2098 requested a review from lmoresi as a code owner July 29, 2026 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant