Skip to content

Commit

Permalink
use eachindex instead of 1:length
Browse files Browse the repository at this point in the history
  • Loading branch information
schillic committed Mar 9, 2024
1 parent 54199e8 commit 42b3706
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vector_field.jl
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ function _position_value_list(V::VectorField, grid, dimx, dimy)
end

# center arrows in the grid points
for k in 1:length(x)
for k in eachindex(x)
x[k] -= vx[k] / 2
y[k] -= vy[k] / 2
end
Expand Down

0 comments on commit 42b3706

Please sign in to comment.