Skip to content

Commit

Permalink
Corrected indexing for parallelized flux decomposition
Browse files Browse the repository at this point in the history
  • Loading branch information
jchitpin committed Nov 2, 2024
1 parent c36dbcb commit a2266fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chmc-algorithm/core.jl
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ function parallel_simple_cycles_to_efms(#
y = Vector{Vector{Vector{Tuple{Int64,Int64}}}}(undef, len)
sc_o2 = [i[2:end] for i in sc_mc]

ids = collect(index_chunks(x; n=len))
ids = collect(index_chunks(sc_mc; n=len))
Threads.@threads for i in 1:len
x[i], y[i] = group_simple_cycles(sc_o2[ids[i]], sc_mc[ids[i]], sc_chmc[ids[i]])
if verbose == true
Expand Down

0 comments on commit a2266fe

Please sign in to comment.