Skip to content

Leave the diagonal reorder to PETSc's own LU - #324

Merged
singhharsh1708 merged 3 commits into
mainfrom
external-lu-crash
Oct 24, 2026
Merged

singhharsh1708 merged 3 commits into
mainfrom
external-lu-crash

Conversation

@singhharsh1708

Copy link
Copy Markdown
Member

With PETSc 3.22, -pc_factor_mat_solver_type mumps, umfpack or klu on a sparse jac_prototype crashed Julia in MatReorderForNonzeroDiagonal_SeqAIJ. The package always adds -pc_factor_nonzeros_along_diagonal, and PCSetUp_LU in 3.22 (lu.c) reorders even when the factorization orders itself, so it reorders an ordering that was never made; 3.25 skips that case. The option is now left out when the user names a solver type other than petsc, which pivots on its own.

All three solvers, and superlu_dist, now return Success on the 1-D Brusselator and on Robertson with a mass matrix and as a DAE, under PETSc 3.22 and 3.25.

AI Disclosure: Claude assisted with the code. Testing and review by @singhharsh1708.

@singhharsh1708
singhharsh1708 merged commit 263ba61 into main Oct 24, 2026
30 of 32 checks passed
singhharsh1708 referenced this pull request Oct 24, 2026
* Read the option names PETSc 3.25 renamed

* Bump to 0.12.3
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