Skip to content

Fix silent success on auto-refinement (-a) non-convergence - #10

Closed
dhgaddy wants to merge 1 commit into
ediloren:masterfrom
dhgaddy:fix-auto-refine-silent-convergence-failure
Closed

Fix silent success on auto-refinement (-a) non-convergence#10
dhgaddy wants to merge 1 commit into
ediloren:masterfrom
dhgaddy:fix-auto-refine-silent-convergence-failure

Conversation

@dhgaddy

@dhgaddy dhgaddy commented Aug 27, 2026

Copy link
Copy Markdown

Fixes #9.

SolveMain()'s auto-refinement loop only assigns capRe/capIm on its
convergence break, so if SOLVE_MAX_AUTO_ITERATIONS is exhausted
without converging, the function returns FC_NORMAL_END with
unassigned output. Returns the last computed iteration and a new
FC_CONVERGENCE_FAILED code instead.

SolveMain()'s auto-refinement loop only assigned capRe/capIm on its
convergence break. If SOLVE_MAX_AUTO_ITERATIONS is reached without
ever converging, the function still returned FC_NORMAL_END with
unassigned output. Returns the last computed iteration and a new
FC_CONVERGENCE_FAILED code instead.
@dhgaddy dhgaddy closed this Aug 27, 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.

SolveMain() silently reports success when -a auto-refinement never converges

1 participant