Skip to content

Commit 0c48139

Browse files
committed
Fix for rectangular_wing.jl
1 parent 6bc1db4 commit 0c48139

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

ext/VortexStepMethodControlPlotsExt.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,11 @@ function create_geometry_plot(body_aero::BodyAerodynamics, title, view_elevation
174174
set_plot_style(28; use_tex)
175175

176176
panels = body_aero.panels
177-
va = isa(body_aero.va, Tuple) ? body_aero.va[1] : body_aero.va
177+
va = if body_aero.has_distributed_va
178+
panels[1].va
179+
else
180+
isa(body_aero.va, Tuple) ? body_aero.va[1] : body_aero.va
181+
end
178182

179183
# Extract geometric data
180184
corner_points = [panel.corner_points for panel in panels]

0 commit comments

Comments
 (0)