Skip to content

Commit

Permalink
Return a bit later
Browse files Browse the repository at this point in the history
  • Loading branch information
mschauer committed Mar 6, 2024
1 parent cc38750 commit 0c5b3fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/multisampler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,10 @@ function multisampler(n, G = (DiGraph(n), 0); M = 10, balance = metropolis_balan
t = action.τ
count += (action.apply! == applycopy) || (action.apply! == applykill)
particles -= action.apply! == applykill
particles == 0 && break

nextsample = action.apply!(samplers, action.i, action.τ, action.args...)
particles == 0 && break

if nextsample.alive && nextsample.scoreval > bestscore
bestgraph = nextsample.g
bestscore = nextsample.scoreval
Expand Down

0 comments on commit 0c5b3fe

Please sign in to comment.