You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
_spd_sanitise: all-NaN eigenvalues on a rank propagate NaN instead of the SPD fallback (mmpde live path) #352
Found by the Copilot pass over Wave D PR #345 (2026-07-08); TODO(BUG) marker at src/underworld3/meshing/smoothing/mmpde.py (commit 300bba4). Confirmed by numpy probe; pre-existing (bit-identical at base, code from the #259 SPD-floor era).
When every eigenvalue on a rank is NaN/inf, np.nanmax(w) is non-finite, making the floor non-finite and the projection emit NaNs instead of a usable SPD fallback — defeating the sanitiser's purpose exactly when it is most needed. This is the surviving mmpde mover's path (unlike the retired-mover findings), so it deserves a real numerics fix: guard wmax to a finite value (e.g. fall back to identity metric scaled by a mesh-derived length) when no finite eigenvalue exists.
Fixed by #368 (squash-merged to development as 7356e96): finite-eigenvalue floor anchor + identity-basis fallback for fully-degenerate tensors, hardened with a per-tensor eigh retry for the LAPACK kernels that raise instead of returning quiet NaNs (the path 3D MMPDE will use). Six regression tests in test_0850.
Underworld development team with AI support from Claude Code
Activity
fix(mmpde): finite SPD fallback for fully-degenerate metric evaluatio…
lmoresi commentedon Jul 15, 2026
Fixed by #368 (squash-merged to development as 7356e96): finite-eigenvalue floor anchor + identity-basis fallback for fully-degenerate tensors, hardened with a per-tensor eigh retry for the LAPACK kernels that raise instead of returning quiet NaNs (the path 3D MMPDE will use). Six regression tests in test_0850.
Underworld development team with AI support from Claude Code