Skip to content

Commit 48e856e

Browse files
committed
Fix tests
1 parent f06db22 commit 48e856e

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

test/bench.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ using LinearAlgebra
4444
set_va!(body_aero, vel_app)
4545

4646
# Initialize solvers for both LLT and VSM methods
47-
solver = Solver()
47+
P = length(body_aero.panels)
48+
solver = Solver{P}()
4849

4950
# Pre-allocate arrays
5051
gamma = rand(n_panels)
@@ -112,8 +113,9 @@ using LinearAlgebra
112113
aero_model,
113114
aero_data)
114115
body_aero = BodyAerodynamics([wing])
115-
116-
solver = Solver(
116+
117+
P = length(body_aero.panels)
118+
solver = Solver{P}(
117119
aerodynamic_model_type=model
118120
)
119121
result = @benchmark gamma_loop(

test/test_body_aerodynamics.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ end
145145
set_va!(body_aero, v_a)
146146

147147
# Run analysis
148-
solver_object = Solver(
148+
P = length(body_aero.panels)
149+
solver_object = Solver{P}(
149150
aerodynamic_model_type=model,
150151
core_radius_fraction=core_radius_fraction
151152
)

test/test_plotting.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,9 @@ plt.ioff()
6363
rm("/tmp/Rectangular_wing_geometry_top_view.pdf")
6464

6565
# Step 5: Initialize the solvers
66-
vsm_solver = Solver(aerodynamic_model_type=VSM)
67-
llt_solver = Solver(aerodynamic_model_type=LLT)
66+
P = length(body_aero.panels)
67+
vsm_solver = Solver{P}(aerodynamic_model_type=VSM)
68+
llt_solver = Solver{P}(aerodynamic_model_type=LLT)
6869

6970
# Step 6: Solve the VSM and LLT
7071
results_vsm = solve(vsm_solver, body_aero)

0 commit comments

Comments
 (0)