Skip to content

Commit

Permalink
parallelize
Browse files Browse the repository at this point in the history
  • Loading branch information
stecrotti committed Jul 24, 2024
1 parent fa8ae41 commit f9ff423
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sampling.jl
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ function autocorrelations(f, sms::SoftMarginSampler; showprogress::Bool=true,
dt = showprogress ? 0.1 : Inf
prog = Progress(N, desc="Autocorrelations from Soft Margin"; dt)

for (a,i) in pairs(sites)
@threads for a in eachindex(sites)
i = sites[a]
for u in axes(r[a], 2), t in max(1,u-maxdist):u-1
q = nstates(bp, i)
mtu_avg = zeros(q, q)
Expand Down

0 comments on commit f9ff423

Please sign in to comment.