Skip to content

calculate_results takes x_airf_dist and z_airf_dist and reads neither #394

Open

Description

@1-Bort-1

Since #393 forms alpha with inflow_angle(v, y_airf, z_airf), nothing in calculate_results reads its x_airf_dist and z_airf_dist positional arguments (src/body_aerodynamics.jl, the signature at function calculate_results(). The only in-repo callers are solve_base! in src/solver.jl and test/bench.jl, and both pass buffers that exist only for these two slots.

calculate_results is exported, so dropping the two arguments is a breaking change and was left out of #393. What I would do: remove both from the signature and the two callers, BREAKING: in the changelog, in whichever release next takes a breaking change. #94 (removing the results dict) rewrites the same function and is the natural place to fold it in.

Activity

  1. 1-Bort-1 commented on Sep 30, 2026

    @1-Bort-1
    MemberAuthor

    Queued as VortexStepMethod.jl-394.

  2. 1-Bort-1 commented on Sep 30, 2026

    @1-Bort-1
    MemberAuthor

    No change needed here: #392 (open, mergeable, CI green) already does this. It removes calculate_results outright, with its export, docs entry and changelog line (BREAKING: solve and calculate_results are removed). It also drops both callers you named, the call in solve_base! and the calculate_results benchmark in test/bench.jl, and the _x_airf_dist buffer that only those two slots used. _z_airf_dist stays, and rightly so: on that branch gamma_loop! still reads it to form inflow_angle(v_rel, y_airf, z_airf). So #394 closes when #392 merges. Adding Closes #394 to the #392 description would link the two. I'm not opening a PR of my own: dropping the two arguments first would just make #392 rebase over a signature it deletes anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions