Skip to content

Commit b3247c4

Browse files
committed
Fix kwarg bug
1 parent 8220ddd commit b3247c4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

examples/ram_air_kite.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ if DEFORM
2424
end
2525

2626
# Create solvers
27-
P = length(body_aero.panels)
28-
vsm_solver = Solver{P}(
27+
vsm_solver = Solver(body_aero;
2928
aerodynamic_model_type=VSM,
3029
is_with_artificial_damping=false
3130
)

src/solver.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ sol::VSMSolution = VSMSolution(): The result of calling [solve!](@ref)
117117
sol::VSMSolution{P} = VSMSolution(P)
118118
end
119119

120-
function Solver(body_aero; kwargs)
120+
function Solver(body_aero; kwargs...)
121121
P = length(body_aero.panels)
122122
return Solver{P}(; kwargs...)
123123
end

0 commit comments

Comments
 (0)