Skip to content

Commit

Permalink
added call to var_map
Browse files Browse the repository at this point in the history
  • Loading branch information
dlcole3 committed Sep 25, 2024
1 parent 29b9770 commit 64a4eb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backends/moi_backend.jl
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ function _copy_node_variables(
# note that existing node variables are not copied per-se; the references
# now point to multiple MOI backends.
for var in node_variables
if !(var in keys(dest.element_to_graph_map))
if !(var in keys(dest.element_to_graph_map.var_map))
src_graph_index = graph_index(var)
dest_graph_index = MOI.add_variable(dest, var)
index_map[src_graph_index] = dest_graph_index
Expand Down

0 comments on commit 64a4eb6

Please sign in to comment.