From d6bb71b3cbc8aa3d73f3bddc03c355cebdeebecc Mon Sep 17 00:00:00 2001 From: kalmarek Date: Wed, 2 Jan 2019 10:03:40 +0100 Subject: [PATCH] fix: another issue with redirection of scslog --- src/sos_sdps.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/sos_sdps.jl b/src/sos_sdps.jl index 2777965..a304ef2 100644 --- a/src/sos_sdps.jl +++ b/src/sos_sdps.jl @@ -201,7 +201,9 @@ function solve(solverlog::String, model::JuMP.Model, varλ::JuMP.Variable, varP, status, (λ, P, warmstart) = open(solverlog, "a+") do logfile Base.Libc.flush_cstdio() redirect_stdout(logfile) do - PropertyT.solve(model, varλ, varP, warmstart) + status, (λ, P, warmstart) = PropertyT.solve(model, varλ, varP, warmstart) + Base.Libc.flush_cstdio() + status, (λ, P, warmstart) end end