1
0
mirror of https://github.com/kalmarek/PropertyT.jl.git synced 2024-11-19 15:25:29 +01:00

fix: another issue with redirection of scslog

This commit is contained in:
kalmarek 2019-01-02 10:03:40 +01:00
parent e56087cf73
commit d6bb71b3cb

View File

@ -201,7 +201,9 @@ function solve(solverlog::String, model::JuMP.Model, varλ::JuMP.Variable, varP,
status, (λ, P, warmstart) = open(solverlog, "a+") do logfile status, (λ, P, warmstart) = open(solverlog, "a+") do logfile
Base.Libc.flush_cstdio() Base.Libc.flush_cstdio()
redirect_stdout(logfile) do 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
end end