1
0
mirror of https://github.com/kalmarek/PropertyT.jl.git synced 2024-12-24 02:00:30 +01:00

flush_cstdio immediately after optimize!

This commit is contained in:
kalmarek 2020-08-27 10:04:08 +02:00
parent 477ce3066b
commit df8b177ef5
No known key found for this signature in database
GPG Key ID: 8BF1A3855328FC15

View File

@ -206,6 +206,8 @@ function solve(m::JuMP.Model, with_optimizer::JuMP.OptimizerFactory, warmstart=n
end
optimize!(m)
Base.Libc.flush_cstdio()
status = termination_status(m)
return status, getwarmstart_scs(m)
@ -219,7 +221,6 @@ function solve(solverlog::String, m::JuMP.Model, with_optimizer::JuMP.OptimizerF
status, warmstart = open(solverlog, "a+") do logfile
redirect_stdout(logfile) do
status, warmstart = PropertyT.solve(m, with_optimizer, warmstart)
Base.Libc.flush_cstdio()
status, warmstart
end
end