Skip to content

Bailout fixes#140

Merged
zchlrnr merged 4 commits intoMystranSolver:mainfrom
victorkemp:bailout
Jun 14, 2025
Merged

Bailout fixes#140
zchlrnr merged 4 commits intoMystranSolver:mainfrom
victorkemp:bailout

Conversation

@victorkemp
Copy link
Copy Markdown
Collaborator

Added BAILOUT to the sparse solver but only using the SuperLU's INFO return value, not the proper ratios of diagonals, and ignoring MAXRATIO. It's allows some solutions that were blocked before but in some cases is still too lenient, allowing solutions that should be stopped by BAILOUT.

Moved the diagonal ratio checking to a separate function that still works the same with the banded solver but will be easier to apply to sparse in future.

Changed the default value of PARAM,BAILOUT from 1 to 0 for consistency with MSC. This doesn't affect the behavior since BAILOUT >=0 means abort and BAILOUT < 0 means continue as before. The manual should be updated to reflect this.

There may still be something wrong with the diagonal ratio checking code because it sometimes shows an error message that indicates it would fail but it continues. Only affects the banded solver because only that uses the diagonal ratio checks.

@zchlrnr zchlrnr merged commit e60964f into MystranSolver:main Jun 14, 2025
1 check passed
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