Skip to content

Commit

Permalink
fix(LinearInterpolation): index into last dimension to give suitable …
Browse files Browse the repository at this point in the history
…output
  • Loading branch information
ashutosh-b-b committed Oct 3, 2024
1 parent c6eaa04 commit a837b3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parameter_caches.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function linear_interpolation_parameters(u::AbstractArray{T, N}, t, idx) where {
Δu = if N > 1
ax = axes(u)
safe_diff.(
u[ax[1:(end - 1)]..., (idx + 1):(idx + 1)], u[ax[1:(end - 1)]..., idx:idx])
u[ax[1:(end - 1)]..., (idx + 1)], u[ax[1:(end - 1)]..., idx])
else
safe_diff(u[idx + 1], u[idx])
end
Expand Down

0 comments on commit a837b3d

Please sign in to comment.