1
0
mirror of https://github.com/kalmarek/PropertyT.jl.git synced 2024-11-27 01:10:28 +01:00

Revert "tad better try...catch syntax"

This reverts commit 69e74190af.
This commit is contained in:
kalmar 2017-04-01 08:32:34 +02:00
parent a827f8c425
commit b20cd02d5b

View File

@ -126,11 +126,13 @@ function compute_κandA(sdp_constraints, Δ::GroupAlgebraElement, solver::Abstra
t = @timed SDP_problem = create_SDP_problem(sdp_constraints, Δ; upper_bound=upper_bound)
info(logger, timed_msg(t))
κ = 0.0
A = nothing
while κ == 0.0
κ, A = try
solve_SDP(SDP_problem, solver)
try
κ, A = solve_SDP(SDP_problem, solver)
catch y
warn(logger, y)
warn(solver_logger, y)
end
end
return κ, A