@@ -59,57 +59,59 @@ using LinearAlgebra
5959 @testset " AIC Matrix Calculation" begin
6060 for model in models
6161 for frac in core_radius_fractions
62- result = @benchmark calculate_AIC_matrices ($ wing_aero, $ model, $ frac, $ va_norm_array, $ va_unit_array)
63- @test result. allocs ≤ 100 # Allow some allocations for matrix setup
62+ @testset " Model $model Core Radius Fraction $frac " begin
63+ result = @benchmark calculate_AIC_matrices ($ wing_aero, $ model, $ frac, $ va_norm_array, $ va_unit_array)
64+ @test result. allocs ≤ 100 # Allow some allocations for matrix setup
65+ end
6466 end
6567 end
6668 end
6769
68- @testset " Gamma Loop" begin
69- result = @benchmark gamma_loop ($ solver, $ wing, $ gamma_new, $ AIC_x, $ AIC_y, $ AIC_z)
70- @test result. allocs ≤ 50 # Main iteration should be mostly allocation-free
71- end
70+ # @testset "Gamma Loop" begin
71+ # result = @benchmark gamma_loop($solver, $wing, $gamma_new, $AIC_x, $AIC_y, $AIC_z)
72+ # @test result.allocs ≤ 50 # Main iteration should be mostly allocation-free
73+ # end
7274
73- @testset " Results Calculation" begin
74- result = @benchmark calculate_results ($ wing, $ gamma)
75- @test result. allocs ≤ 20 # Allow minimal allocations for results
76- end
75+ # @testset "Results Calculation" begin
76+ # result = @benchmark calculate_results($wing, $gamma)
77+ # @test result.allocs ≤ 20 # Allow minimal allocations for results
78+ # end
7779
78- @testset " Angle of Attack Update" begin
79- result = @benchmark update_effective_angle_of_attack_if_VSM ($ wing, $ gamma)
80- @test result. allocs == 0 # Should be allocation-free
81- end
80+ # @testset "Angle of Attack Update" begin
81+ # result = @benchmark update_effective_angle_of_attack_if_VSM($wing, $gamma)
82+ # @test result.allocs == 0 # Should be allocation-free
83+ # end
8284
83- @testset " Area Calculations" begin
84- result = @benchmark calculate_projected_area ($ wing)
85- @test result. allocs ≤ 10 # Geometric calculations may need some allocations
86- end
85+ # @testset "Area Calculations" begin
86+ # result = @benchmark calculate_projected_area($wing)
87+ # @test result.allocs ≤ 10 # Geometric calculations may need some allocations
88+ # end
8789
88- @testset " Aerodynamic Coefficients" begin
89- panel = panels[1 ]
90- alpha = 0.1
90+ # @testset "Aerodynamic Coefficients" begin
91+ # panel = panels[1]
92+ # alpha = 0.1
9193
92- @test (@ballocated calculate_cl ($ panel, $ alpha)) == 0
93- @test (@ballocated calculate_cd_cm ($ panel, $ alpha)) == 0
94- end
94+ # @test (@ballocated calculate_cl($panel, $alpha)) == 0
95+ # @test (@ballocated calculate_cd_cm($panel, $alpha)) == 0
96+ # end
9597
96- @testset " Induced Velocity Calculations" begin
97- # Test single ring velocity calculation
98- @test (@ballocated calculate_velocity_induced_single_ring_semiinfinite (
99- $ point, $ panels[1 ], $ gamma[1 ])) == 0
98+ # @testset "Induced Velocity Calculations" begin
99+ # # Test single ring velocity calculation
100+ # @test (@ballocated calculate_velocity_induced_single_ring_semiinfinite(
101+ # $point, $panels[1], $gamma[1])) == 0
100102
101- # Test 2D bound vortex
102- @test (@ballocated calculate_velocity_induced_bound_2D (
103- $ point, $ panels[1 ], $ gamma[1 ])) == 0
103+ # # Test 2D bound vortex
104+ # @test (@ballocated calculate_velocity_induced_bound_2D(
105+ # $point, $panels[1], $gamma[1])) == 0
104106
105- # Test 3D velocity components
106- @test (@ballocated velocity_3D_bound_vortex! (
107- $ v_ind, $ point, $ panels[1 ], $ gamma[1 ])) == 0
107+ # # Test 3D velocity components
108+ # @test (@ballocated velocity_3D_bound_vortex!(
109+ # $v_ind, $point, $panels[1], $gamma[1])) == 0
108110
109- @test (@ballocated velocity_3D_trailing_vortex! (
110- $ v_ind, $ point, $ panels[1 ], $ gamma[1 ])) == 0
111+ # @test (@ballocated velocity_3D_trailing_vortex!(
112+ # $v_ind, $point, $panels[1], $gamma[1])) == 0
111113
112- @test (@ballocated velocity_3D_trailing_vortex_semiinfinite! (
113- $ v_ind, $ point, $ panels[1 ], $ gamma[1 ])) == 0
114- end
114+ # @test (@ballocated velocity_3D_trailing_vortex_semiinfinite!(
115+ # $v_ind, $point, $panels[1], $gamma[1])) == 0
116+ # end
115117end
0 commit comments