Repository navigation
Conversation
Tighten full-dimensional exact-cell containment so neighbouring-cell hints cannot shift continuous-field probes through reference-coordinate clamping. Keep approximate warped-face and embedded-manifold tolerances unchanged. Validation: Gadi int32 installation at feature ef62a45, 22 native regressions in serial and on each of 16 ranks, 272 annulus components, and exact submesh-transfer gates passed. Prior-runtime serial/MPI reproducer has 5.806e-6 error; tight tolerance reduces it below 8e-17. Four matched annulus workflows are being independently audited.
Adversarial reviewWe attacked this one hardest, because it reverts a tolerance a previous PR set Probe 1 — node queries, the case stranding would hit. np=3, Tightening strands nothing and is strictly more accurate. Probe 2 — the case the deleted comment actually names ("query coordinates At a 1e-6 nudge the old tolerance claims all 132 points as inside One behaviour change for the record, not a defect. For queries marginally One asymmetry worth a sentence in the docstring. The gate is self.dim == self.cdim and self._location_capability() == "exact"but Nothing here blocks. |
Distinguish intrinsic classifier capability from ambient off-surface query handling without changing locator behavior. Underworld development team with AI support from Claude Code
|
Thanks @lmoresi. Addressed the documentation point in The caller audit identifies After an isolated native Mac rebuild, all 4 existing exact-cell tests pass in serial and on every MPI3 rank. This follow-up changes documentation only. |
Adversarial review of #859Verdict: not ready until the tolerance scales. The fix is real at unit scale and closes #799's symptom, but the new tolerance is absolute and sits below the discriminator's roundoff once model-unit coordinates reach about 10. There the PR silently loses or misvalues points that development handles correctly. A scaling that keeps the gain looks small; see the merge conditions. Reviewed at head Findings
Attacks that failed
Issues
Merge conditions
Could not test
Underworld development team with AI support from Claude Code |
Queries close to an exact-cell face can be evaluated at the wrong physical position. The loose cell-wall tolerance admits a neighbouring cell, then PETSc reference-coordinate clamping moves the query onto that face. An exactly representable continuous P1/P2 field with an interface-aligned gradient jump consequently shows a maximum error of 5.806e-6 in both serial and MPI16; tightening containment reduces it below 8e-17.
Use roundoff-scale containment for full-dimensional, geometrically exact cells. Preserve the previous tolerance for approximate warped faces and embedded manifolds. Add P1/P2 kink and global-polynomial regressions, including queries exactly on and on both sides of a shared face. This changes the existing locator's tolerance, without extending its geometric authority.
Validation on Gadi with PETSc int32: 22 UW3 tests pass in serial and on each of 16 MPI ranks; 272 annulus components and the existing exact-transfer gates also pass. The tested feature implementation is ef62a45; this review branch applies only the two-file point-evaluation change onto current development. Four matched complete h=1/32 annulus workflows (case1/case2, serial/MPI16) also pass: velocity, pressure, topography and potential fields remain unchanged within 1.4e-14 relative difference; native potential coefficients agree with independent affine-P2 interpolation on the same physical-circle grid within 3.4e-16 of reference magnitude. The independent audit separately refines angular quadrature.
Review follow-up (29 October 2026)
Clarified
_robust_owning_cells: a manifold'sexactcapability establishes intrinsic cell-wall classification authority, not roundoff-level ambient surface coincidence. Its wider tolerance remains deliberate until an off-surface projection contract is defined. This follow-up changes documentation only.Caller audit:
function.functions_unit_system.evaluaterequests the extrapolation mask internally and forwards it to_warn_if_points_are_not_owned, so marginally outside points may now produce a warning. The compiledglobal_evaluate_ndlocal-query and fallback calls also consume that mask when routing unmatched points; public callers requestingcheck_extrapolated=Truereceive the changed classification. This documents the behavior change identified in the review without suppressing it or restoring clamped FE values.Rebuilt in an isolated native Mac environment. The existing exact-cell regression file passes all 4 tests in serial and on every MPI3 rank (continuous gradient jumps and exactly represented P1/P2 polynomials). No solver settings changed.
Underworld development team with AI support from Claude Code