@@ -29,26 +29,23 @@ using LinearAlgebra
2929 alpha_deg = 30.0 # Angle of attack [degrees]
3030 alpha = deg2rad (alpha_deg)
3131
32- wing = Wing (n_panels, spanwise_distribution= UNCHANGED)
32+ unchanged_wing = Wing (n_panels, spanwise_distribution= UNCHANGED)
33+ wing = Wing (n_panels, spanwise_distribution= LINEAR)
3334 add_section! (wing,
3435 [0.0 , span/ 2 , 0.0 ], # Left tip LE
3536 [chord, span/ 2 , 0.0 ], # Left tip TE
3637 INVISCID)
37- add_section! (wing,
38- [0.0 , 0.0 , 0.0 ], # Left tip LE
39- [chord, 0.0 , 0.0 ], # Left tip TE
40- INVISCID)
4138 add_section! (wing,
4239 [0.0 , - span/ 2 , 0.0 ], # Right tip LE
4340 [chord, - span/ 2 , 0.0 ], # Right tip TE
4441 INVISCID)
4542
4643 body_aero = BodyAerodynamics ([wing])
47- init! (body_aero)
44+ unchanged_body_aero = BodyAerodynamics ([unchanged_wing])
45+ init! (unchanged_body_aero)
4846
4947 @testset " Re-initialization" begin
50- init_aero= false
51- result = @benchmark init! ($ body_aero; init_aero= $ init_aero) samples= 1 evals= 1
48+ result = @benchmark init! ($ unchanged_body_aero; init_aero= false ) samples= 1 evals= 1
5249 @info " Re-initializing Allocations: $(result. allocs) \t Memory: $(result. memory) "
5350 @test result. allocs < 100
5451 end
0 commit comments