Skip to content

Commit

Permalink
Update src/aggregators/prioritytable.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Sam Isaacson <[email protected]>
  • Loading branch information
vyudu and isaacsas authored Oct 16, 2024
1 parent 76b61e5 commit f89749f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aggregators/prioritytable.jl
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ function update!(ptt::PriorityTimeTable{T, F}, pid, oldtime, newtime) where {T,
times[pid] = newtime
if oldtime >= maxtime
# If a reaction comes back into the time window, insert it.
newtime < maxtime ? insert!(ptt, pid, newtime) : return
newtime < maxtime ? insert!(ptt, pid, newtime) : return nothing
elseif newtime >= maxtime
# If the new time lands outside of current window, remove it.
@inbounds begin
Expand Down

0 comments on commit f89749f

Please sign in to comment.