Skip to content

Commit

Permalink
small code reorganization
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiq committed Dec 1, 2023
1 parent 0442e25 commit 8514497
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mddf.jl
Original file line number Diff line number Diff line change
Expand Up @@ -194,13 +194,14 @@ function mddf(trajectory::Trajectory, options::Options = Options(); coordination
if options.GC && (Sys.free_memory() / Sys.total_memory() < options.GC_threshold)
GC.gc()
end
options.silent || next!(progress)
# Read weight of this frame.
if isempty(options.frame_weights)
frame_weight = 1.0
else
frame_weight = options.frame_weights[iframe]
end
# Display progress bar
options.silent || next!(progress)
end # release reading lock
R_chunk[ichunk].nframes_read += 1
# Compute distances in this frame and update results
Expand Down

0 comments on commit 8514497

Please sign in to comment.