Skip to content

Remove the closure boxes - #172

Merged
oameye merged 2 commits into
mainfrom
fix/closure-boxes
Oct 19, 2026
Merged

oameye merged 2 commits into
mainfrom
fix/closure-boxes

Conversation

@oameye

@oameye oameye commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Also carries the last commit of #171, which landed after its squash-merge: the test environment takes HarmonicBalance from master (its refactor/harmonic-kind branch is gone since HarmonicBalance.jl#539 and #540 merged), and the commensurate Krylov vs harmonic balance comparison in test/steady_states/krylov.jl is no longer marked broken, since with HarmonicBalance.jl#540 the two first-order flows are equal.

The closure-box scan of JuliaLang/julia#60478 finds four Core.Box captures in HarmonicSteadyState: in _get_raw_solution (threaded zero check), get_branches, get_single_solution and get_variable_solutions. Each captured variable was reassigned after capture. They are now assigned once; the index conversion that get_single_solution and get_variable_solutions duplicated is shared as solution_position.

After this and HarmonicBalance.jl#540, the scan reports no boxes in QuestBase, HarmonicSteadyState or HarmonicBalance (HarmonicBalance.jl#482).

…harmonic balance

HarmonicBalance.jl#539 and #540 are merged and their branch is gone. With
#540 the first-order Krylov flow equals the harmonic-balance flow for the
same ansatz, so the commensurate comparison is no longer broken.
The solutions handed to the threaded zero check, the masked branches of
get_branches and the solution index of get_single_solution and
get_variable_solutions were reassigned after a closure captured them.
The index conversion is shared as solution_position.
@oameye
oameye force-pushed the fix/closure-boxes branch from c82883e to 6f8a235 Compare October 19, 2026 08:58
@oameye
oameye merged commit 7d3eb90 into main Oct 19, 2026
8 checks 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.

1 participant