File tree Expand file tree Collapse file tree 2 files changed +11
-13
lines changed Expand file tree Collapse file tree 2 files changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -784,20 +784,18 @@ function sweep2site!(
784
784
785
785
n = length (tci)
786
786
787
- extraIset = [MultiIndex[] for _ in 1 : n]
788
- extraJset = [MultiIndex[] for _ in 1 : n]
789
- if ! strictlynested
790
- extraIset = tci. Iset
791
- extraJset = tci. Jset
792
- if length (tci. Iset_history) > 0
793
- extraIset = union .(extraIset, tci. Iset_history[end ])
794
- extraJset = union .(extraJset, tci. Jset_history[end ])
787
+ for iter in iter1: iter1+ niter- 1
788
+
789
+ extraIset = [MultiIndex[] for _ in 1 : n]
790
+ extraJset = [MultiIndex[] for _ in 1 : n]
791
+ if ! strictlynested && length (tci. Iset_history) > 0
792
+ extraIset = tci. Iset_history[end ]
793
+ extraJset = tci. Jset_history[end ]
795
794
end
796
- end
795
+
796
+ push! (tci. Iset_history, deepcopy (tci. Iset))
797
+ push! (tci. Jset_history, deepcopy (tci. Jset))
797
798
798
- push! (tci. Iset_history, deepcopy (tci. Iset))
799
- push! (tci. Jset_history, deepcopy (tci. Jset))
800
- for iter in iter1: iter1+ niter- 1
801
799
flushpivoterror! (tci)
802
800
if forwardsweep (sweepstrategy, iter) # forward sweep
803
801
for bondindex in 1 : n- 1
Original file line number Diff line number Diff line change @@ -19,4 +19,4 @@ include("test_tensortrain.jl")
19
19
include (" test_conversion.jl" )
20
20
include (" test_contraction.jl" )
21
21
include (" test_integration.jl" )
22
- include (" test_globalsearch.jl" )
22
+ include (" test_globalsearch.jl" )
You can’t perform that action at this time.
0 commit comments