Skip to content

Commit

Permalink
fix bug for num_eval_stage + 1
Browse files Browse the repository at this point in the history
  • Loading branch information
warisa-r committed Jul 5, 2024
1 parent 75d8c67 commit 9eb0f5e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ext/TrixiConvexECOSExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,13 @@ function Trixi.bisect_stability_polynomial(consistency_order, num_eig_vals,
println("Concluded stability polynomial optimization \n")
end

return evaluate(gamma), dt
gamma_opt = evaluate(gamma)

if isa(gamma_opt, Number)
gamma_opt = [gamma_opt]
end

return gamma_opt, dt
end
end # @muladd

Expand Down

0 comments on commit 9eb0f5e

Please sign in to comment.