Skip to content

Commit

Permalink
Merge pull request #471 from oscar-system/bl/mcfq
Browse files Browse the repository at this point in the history
mcf: add workaround to avoid hang during tropical median
  • Loading branch information
benlorenz authored Feb 12, 2024
2 parents a537177 + 46e5060 commit 065f8b6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Polymake.jl
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,13 @@ function __init__()
application("polytope")
shell_execute("require LPparser;")

# workaround until next polymake release to make sure mcf does not get stuck
Polymake.shell_execute(raw"""
if (application("graph")->configured->{"mcf.rules"} > 0) {
$mcf = "$mcf -q" unless ($mcf =~ / -q/);
}
""")

for app in call_function(:common, :startup_applications)
application(app)
end
Expand Down

0 comments on commit 065f8b6

Please sign in to comment.