You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Split calc_forces! out of solve! and make it zero-alloc
Extract the force/moment assembly (everything after the circulation
solve) from solve! into a standalone exported calc_forces!(solver,
body_aero). solve! is now solve_base! + calc_forces!; behavior is
unchanged. This lets a frozen circulation be mapped to forces without
re-running the nonlinear gamma solve.
Make calc_forces! allocation-free for the per-step hot path:
- preallocate panel_area_dist buffer (was zeros(T, n) each call)
- preallocate unrefined_count_dist buffer (was zeros(Int, n) each call)
- rewrite _compute_reference_velocity_from_distribution to drop its
ones()/T.() copies
Add a function-barrier zero-alloc test for calc_forces!.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments