Skip to content

Commit

Permalink
remove unused counter
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiq committed Dec 17, 2024
1 parent 805eb25 commit 2fb93df
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/mddf.jl
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,6 @@ function mddf(
buff_chunk = Buffer(trajectory, R)
r_chunk = Result(trajectory, options; trajectory_data, frame_weights)
# Reset the number of frames read by each chunk
nframes_read = 0
for _ in frame_range
local compute, frame_weight
# Read frame coordinates
Expand All @@ -284,7 +283,6 @@ function mddf(
# Read weight of this frame, skip calculation if the frame weight is zero
frame_weight = r_chunk.files[1].frame_weights[iframe]
if iszero(frame_weight)
nframes_read += 1
compute = false
end
if compute
Expand All @@ -304,7 +302,6 @@ function mddf(
# Perform MDDF computation
#
if compute
nframes_read += 1
# Compute distances in this frame and update results
if !coordination_number_only
mddf_frame!(r_chunk, system_chunk, buff_chunk, options, frame_weight, RNG)
Expand Down

0 comments on commit 2fb93df

Please sign in to comment.