Skip to content

Commit

Permalink
Add copy at beginning of default_inserter
Browse files Browse the repository at this point in the history
  • Loading branch information
emstoudenmire committed Jun 11, 2024
1 parent b4659b9 commit 47b618c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/solvers/insert/insert.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ function default_inserter(
cutoff=nothing,
internal_kwargs,
)
state = copy(state)
spec = nothing
other_vertex = setdiff(support(region), [ortho_vert])
if !isempty(other_vertex)
Expand Down

0 comments on commit 47b618c

Please sign in to comment.