Skip to content

Commit 80f0434

Browse files
Merge pull request SciML#408 from SouthEndMusic/cleanup
Cleanup
2 parents 2527aef + 8810647 commit 80f0434

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

src/derivatives.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ function _extrapolate_derivative_left(A, t, order)
2020
elseif extrapolation_left == ExtrapolationType.Constant
2121
zero(first(A.u) / one(A.t[1]))
2222
elseif extrapolation_left == ExtrapolationType.Linear
23-
_derivative(A, first(A.t), 1)
24-
zero(first(A.u) / one(A.t[1]))
2523
(order == 1) ? _derivative(A, first(A.t), 1) : zero(first(A.u) / one(A.t[1]))
2624
elseif extrapolation_left == ExtrapolationType.Extension
2725
(order == 1) ? _derivative(A, t, length(A.t)) :
@@ -66,7 +64,7 @@ function _extrapolate_derivative_right(A, t, order)
6664
_derivative(A, t, A.iguesser)
6765
end, t_)
6866
else
69-
# extrapolation_left == ExtrapolationType.Reflective
67+
# extrapolation_right == ExtrapolationType.Reflective
7068
t_, n = transformation_reflective(A, t)
7169
sign = iseven(n) ? -1 : 1
7270
(order == 1) ? sign * _derivative(A, t_, A.iguesser) :
@@ -314,4 +312,4 @@ function _derivative(
314312
out += Δt₀^2 *
315313
(3c₁ + (3Δt₁ + Δt₀) * c₂ + (3Δt₁^2 + Δt₀ * 2Δt₁) * c₃)
316314
out
317-
end
315+
end

src/integral_inverses.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,4 @@ function _interpolate(
119119
idx_ = get_idx(A, t, idx; side = :first, lb = 1, ub_shift = 0)
120120
end
121121
A.u[idx] + (t - A.t[idx]) / A.itp.u[idx_]
122-
end
122+
end

src/interpolation_methods.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,4 +335,4 @@ function _interpolate(
335335
c₁, c₂, c₃ = get_parameters(A, idx)
336336
out += Δt₀^3 * (c₁ + Δt₁ * (c₂ + c₃ * Δt₁))
337337
out
338-
end
338+
end

0 commit comments

Comments
 (0)