Skip to content

sundials4py: expose SuperLUMT SUNLinearSolver in Python interfaces#967

Draft
balos1 with Copilot wants to merge 5 commits into
developfrom
copilot/expose-superlu-mt-sunlinearsolver
Draft

sundials4py: expose SuperLUMT SUNLinearSolver in Python interfaces#967
balos1 with Copilot wants to merge 5 commits into
developfrom
copilot/expose-superlu-mt-sunlinearsolver

Conversation

Copilot AI commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Expose SUNLinSol_SuperLUMT in sundials4py.core when SuperLU_MT is enabled, including constructor and ordering API surface. The change is fully gated so builds without SuperLU_MT remain unaffected.

  • Binding surface

    • Added sunlinsol_superlumt binding unit and generated header.
    • Exported SUNLinSol_SuperLUMT(...) and SUNLinSol_SuperLUMTSetOrdering(...).
  • Module registration

    • Registered SuperLUMT bindings in sundials4py.cpp under SUNDIALS_SUPERLUMT_ENABLED.
  • Build wiring

    • Added conditional source inclusion and link dependency in bindings/sundials4py/CMakeLists.txt under SUNDIALS_ENABLE_SUPERLUMT.
    • Extended bindings/sundials4py/sunlinsol/generate.yaml with sunlinsol_superlumt.
  • Python API coverage

    • Added a sunlinearsolver test path that conditionally exercises SuperLUMT creation when present.
from sundials4py.core import SUNLinSol_SuperLUMT, SUNLinSol_SuperLUMTSetOrdering

LS = SUNLinSol_SuperLUMT(y, A, num_threads=1, sunctx=sunctx)
SUNLinSol_SuperLUMTSetOrdering(LS, ordering_choice)

Copilot AI changed the title sundials4py: expose SuperLUMT SUNLinearSolver bindings sundials4py: expose SuperLUMT SUNLinearSolver in Python interfaces Jun 24, 2026
Copilot AI requested a review from balos1 June 24, 2026 18:47
@balos1 balos1 added this to the SUNDIALS v7.9.0 milestone Jun 25, 2026
@balos1 balos1 added the python label Jul 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants