Harden BdIntegral boundary label resolution across mesh label layouts#73
Closed
Copilot wants to merge 2 commits intofeature/boundary-integralsfrom
Closed
Harden BdIntegral boundary label resolution across mesh label layouts#73Copilot wants to merge 2 commits intofeature/boundary-integralsfrom
Copilot wants to merge 2 commits intofeature/boundary-integralsfrom
Conversation
6 tasks
…abel check Co-authored-by: lmoresi <12588963+lmoresi@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add boundary integral support with PETSc ghost facet fix
Harden BdIntegral boundary label resolution across mesh label layouts
Mar 6, 2026
Member
|
Closing — this was generated from the original review comment, but the issue was already addressed in commit 220fd1c with a different (and more correct) approach: the C wrapper now handles NULL labels gracefully by participating in the MPI reduction with a zero contribution, and the Cython layer passes NULL instead of segfaulting. The UW_Boundaries fallback proposed here doesn't match how UW3 mesh labels actually work. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Architectural Review Submission
Review Type: Code Implementation
Priority: MEDIUM
Review Period: 2026-03
📄 Review Document
docs/reviews/2026-03/bdintegral-label-resolution-REVIEW.mddocs/reviews/2026-03/REVIEW-TRACKING-INDEX.md📋 Executive Summary
uw.maths.BdIntegralpreviously assumed a per-boundary DM label existed and could fail on meshes that only expose the consolidatedUW_Boundarieslabel.This update makes boundary label resolution robust by falling back to
UW_Boundariesand adding a collective missing-label guard with a clear error message.mesh.dm.getLabel(self.boundary)first.mesh.dm.getLabel("UW_Boundaries")when per-boundary label is absent.🎯 Scope
Systems Affected:
uw.maths.BdIntegral)Files Changed:
✅ Testing Status
pixi run underworld-testTest Results:
📊 Key Metrics & Impact
Performance:
Quality:
🔍 Review Checklist (for Reviewers)
Design & Architecture:
Implementation:
Testing & Validation:
Documentation:
🔗 Dependencies & Related Work
Depends on:
Blocks:
Related:
🖊️ Sign-Off
This PR merge represents formal approval of the architectural review.
Reviewers: Please review the full document at
docs/reviews/YYYY-MM/[NAME]-REVIEW.mdand approve this PR only when satisfied with the design, implementation, and documentation.📝 Additional Context
This is a focused follow-up to review feedback: no API expansion, no behavior change for meshes already carrying per-boundary labels, and no new dependencies.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.