Skip to content

Guard BandGeneral solver against invalid LAPACK inputs - #1786

Merged
fmckenna merged 1 commit into
OpenSees:masterfrom
masaqif:fix/bandgen-lapack-validation
Sep 11, 2026
Merged

fmckenna merged 1 commit into
OpenSees:masterfrom
masaqif:fix/bandgen-lapack-validation

Conversation

@masaqif

@masaqif masaqif commented Aug 6, 2026

Copy link
Copy Markdown

Summary

  • validate BandGeneral bandwidth and LAPACK leading-dimension storage before calling DGBSV/DGBTRS
  • reject incomplete solver storage and non-finite matrix or right-hand-side values with an OpenSees error
  • add OpenSeesPy regressions covering non-finite matrix and right-hand-side input

This addresses the invalid-input failure mode reported in #1611 by preventing malformed data from reaching the Fortran LAPACK routine.

Verification

  • cmake --build build/regression --target OpenSeesPy -j4
  • python tests/run_pytest.py --module build/regression/OpenSeesPy.dylib --tests-dir tests/test_bandgen_solver.py
  • result: 2 passed

Contributor: Musawer Ahmad Saqif saqif@umich.com

@fmckenna
fmckenna merged commit 4556faa into OpenSees:master Sep 11, 2026
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.

2 participants