Skip to content

Commit

Permalink
bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jagoosw committed Aug 22, 2024
1 parent d55e4bd commit 04bde8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interpolations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ end
@inline function (::Cyclic)(x, x₀, Δx, N)
n₀ = floor(Int, (x - x₀) / Δx)

n₁ = mod(n₀ + 1, N)
n₁ = mod(n₀, N - 1) + 1

n₂ = ifelse(n₁ == N, 1, n₁ + 1)

Expand Down

0 comments on commit 04bde8f

Please sign in to comment.