Skip to content

Commit c20d2ea

Browse files
committed
Fixed bug in write_to_file
1 parent 0b3b4b7 commit c20d2ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/distributed/optigraph.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ end
949949
function JuMP.write_to_file(rgraph::RemoteOptiGraph, filename::String)
950950
darray = rgraph.graph
951951

952-
f = @spawnat graph.worker begin
952+
f = @spawnat rgraph.worker begin
953953
lgraph = Plasmo.local_graph(darray)
954954
JuMP.write_to_file(lgraph, filename)
955955
end

src/optigraph.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1502,7 +1502,7 @@ function JuMP.unregister(graph::GT, key::Symbol) where {GT<:AbstractOptiGraph}
15021502
end
15031503

15041504
"""
1505-
write_to_file(graph::OptiGraph, filename::string)
1505+
write_to_file(graph::AbstractOptiGraph, filename::string)
15061506
15071507
Write the model stored in `graph` to `filename.` See [`MOI.FileFormats.FileFormat`](@ref)
15081508
for a list of supported formats. Format is determined automatically based on given file

0 commit comments

Comments
 (0)