@@ -80,15 +80,15 @@ function GenericTreeTransformer(transform, p, Vdst, Vsrc)
8080
8181 # TODO : this can be multithreaded
8282 for (i, uncoupled) in enumerate (uncoupleds_src_unique)
83- ids_src = findall (== (uncoupled), uncoupleds_src)
84- fusiontrees_outer_src = structure_src. fusiontreelist[ids_src ]
83+ inds_src = findall (== (uncoupled), uncoupleds_src)
84+ fusiontrees_outer_src = structure_src. fusiontreelist[inds_src ]
8585
8686 uncoupled_dst = TupleTools. getindices (uncoupled, (p[1 ]. .. , p[2 ]. .. ))
87- ids_dst = findall (== (uncoupled_dst), uncoupleds_dst)
87+ inds_dst = findall (== (uncoupled_dst), uncoupleds_dst)
8888
89- fusiontrees_outer_dst = structure_dst. fusiontreelist[ids_dst ]
89+ fusiontrees_outer_dst = structure_dst. fusiontreelist[inds_dst ]
9090
91- matrix = zeros (sectorscalartype (I), length (ids_dst ), length (ids_src ))
91+ matrix = zeros (sectorscalartype (I), length (inds_dst ), length (inds_src ))
9292 for (row, (f₁, f₂)) in enumerate (fusiontrees_outer_src)
9393 for ((f₃, f₄), coeff) in transform (f₁, f₂)
9494 col = findfirst (== ((f₃, f₄)), fusiontrees_outer_dst):: Int
@@ -98,8 +98,8 @@ function GenericTreeTransformer(transform, p, Vdst, Vsrc)
9898
9999 # size is shared between blocks, so repack:
100100 # from [(sz, strides, offset), ...] to (sz, [(strides, offset), ...])
101- sz_src, newstructs_src = repack_transformer_structure (fusionstructure_src, ids_src )
102- sz_dst, newstructs_dst = repack_transformer_structure (fusionstructure_dst, ids_dst )
101+ sz_src, newstructs_src = repack_transformer_structure (fusionstructure_src, inds_src )
102+ sz_dst, newstructs_dst = repack_transformer_structure (fusionstructure_dst, inds_dst )
103103
104104 @debug (" Created recoupling block for uncoupled: $uncoupled " ,
105105 sz = size (matrix), sparsity = count (! iszero, matrix) / length (matrix))
0 commit comments