Skip to content

Commit 831c7fc

Browse files
committed
Fix warnings
1 parent 4d57ca5 commit 831c7fc

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

examples/pyramid_model.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ using LinearAlgebra
55
using VortexStepMethod
66
using GLMakie
77

8-
project_dir = dirname(dirname(pathof(VortexStepMethod))) # Go up one level from src to project root
9-
108
# Load VSM vsm_settings from YAML configuration file
119
vsm_settings = VSMSettings("pyramid_model/vsm_settings.yaml")
1210

examples/ram_air_kite.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,13 @@ end
7272

7373
# Solving
7474
println("Solve")
75+
results = nothing
7576
results = VortexStepMethod.solve(solver, body_aero; log=true)
76-
@time results = solve(solver, body_aero; log=true)
77+
@time results = VortexStepMethod.solve(solver, body_aero; log=true)
7778

7879
body_y_coordinates = [panel.aero_center[2] for panel in body_aero.panels]
7980

80-
if PLOT
81+
if PLOT && !isnothing(results)
8182
plot_combined_analysis(
8283
solver,
8384
body_aero,

0 commit comments

Comments
 (0)