Skip to content

Lower DARPACK for small models#197

Merged
zchlrnr merged 2 commits intoMystranSolver:mainfrom
Bruno02468:main
Feb 15, 2026
Merged

Lower DARPACK for small models#197
zchlrnr merged 2 commits intoMystranSolver:mainfrom
Bruno02468:main

Conversation

@Bruno02468
Copy link
Copy Markdown
Collaborator

@Bruno02468 Bruno02468 commented Feb 13, 2026

This fixes issue #121. MYSTRAN adds the parameter DARPACK (default: 2) to the number of requested eigenvalues, and, for small models, that results in an unfeasibly large NCV (Krylov basis size), resulting in a crash.

It's a simple change: we do the NCV "feasibility test" on EIG_N2, before setting NEV. If it fails, DARPACK is set to zero and a warning is issued.

With this fix, now we pass single-element tests for EIGRL solutions.

Thanks @victorkemp for identifying this issue!

@zchlrnr zchlrnr merged commit ae40b55 into MystranSolver:main Feb 15, 2026
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