@@ -326,19 +326,19 @@ function _add_general_kernel!(tdst, tsrc, p, fusiontreetransform, α, β, backen
326326 elseif β != 1
327327 tdst = scale! (tdst, β)
328328 end
329-
329+
330330 # TODO : implement multithreading for general symmetries
331331 # Currently disable multithreading for general symmetries, requires more testing and
332332 # possibly a different approach. Ideally, we'd loop over output blocks in parallel, to
333333 # avoid parallel writing, but this requires the inverse of the fusiontreetransform.
334-
334+
335335 for (f₁, f₂) in fusiontrees (tsrc)
336336 for ((f₁′, f₂′), coeff) in fusiontreetransform (f₁, f₂)
337337 TO. tensoradd! (tdst[f₁′, f₂′], p, tsrc[f₁, f₂], :N , α * coeff, true ,
338338 backend... )
339339 end
340340 end
341-
341+
342342 # if Threads.nthreads() > 1
343343 # Threads.@sync for s₁ in sectors(codomain(tsrc)), s₂ in sectors(domain(tsrc))
344344 # _add_sectors!(tdst, tsrc, fusiontreemap, s₁, s₂, α, β, backend...)
@@ -351,7 +351,7 @@ function _add_general_kernel!(tdst, tsrc, p, fusiontreetransform, α, β, backen
351351 # end
352352 # end
353353 # end
354-
354+
355355 return nothing
356356end
357357
0 commit comments