Skip to content

Commit f8761aa

Browse files
committed
Fix tests
1 parent 83867a3 commit f8761aa

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

test/solver/test_forwarddiff.jl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,16 @@ relative_error(jac, reference) = maximum(abs.(jac .- reference)) / maximum(abs,
5252
end
5353

5454
@testset "AutoForwardDiff matches AutoFiniteDiff (LOOP, POLAR_MATRICES)" begin
55+
# At this operating point the LOOP solve converges the mid-span
56+
# panels' local alpha to ~6.5-9.1deg and the tip panels' to
57+
# ~14.9-15.0deg. The default 5deg-spaced alpha_range=-5:5:15 puts the
58+
# tip cluster within ulp-scale distance of the 15deg knot on some
59+
# platforms (Windows, Julia 1.12), so AutoForwardDiff and the FD
60+
# reference land on opposite sides of that non-differentiable kink
61+
# and disagree by several percent (#360). Offset the grid so no knot
62+
# is near either cluster (margin >0.8deg here vs <0.04deg before).
5563
ram_wing = ram_air_matrix_wing(; n_panels=8, n_sections=4,
56-
alpha_range=deg2rad.(-5:5:15),
64+
alpha_range=deg2rad.(-2:5:23),
5765
delta_range=deg2rad.(-3:3:3),
5866
)
5967
ram_body = BodyAerodynamics([ram_wing])

0 commit comments

Comments
 (0)