Skip to content

Commit 83b18fe

Browse files
committed
Use correct tvals
1 parent e58dd8b commit 83b18fe

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/BoundaryValueDiffEqFIRK/src/interpolation.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ end
5454

5555
for j in idx
5656
z = similar(cache.fᵢ₂_cache)
57-
interpolant!(z, id.cache, tval, id.cache.mesh, id.cache.mesh_dt, deriv)
57+
interpolant!(z, id.cache, tvals[j], id.cache.mesh, id.cache.mesh_dt, deriv)
5858
vals[j] = idxs !== nothing ? z[idxs] : z
5959
end
6060
return DiffEqArray(vals, tvals)
@@ -68,7 +68,7 @@ end
6868

6969
for j in idx
7070
z = similar(cache.fᵢ₂_cache)
71-
interpolant!(z, id.cache, tval, id.cache.mesh, id.cache.mesh_dt, deriv)
71+
interpolant!(z, id.cache, tvals[j], id.cache.mesh, id.cache.mesh_dt, deriv)
7272
vals[j] = z
7373
end
7474
end
@@ -185,7 +185,7 @@ end
185185

186186
for j in idx
187187
z = similar(cache.fᵢ₂_cache)
188-
interpolant!(z, id.cache, tval, id.cache.mesh, id.cache.mesh_dt, deriv)
188+
interpolant!(z, id.cache, tvals[j], id.cache.mesh, id.cache.mesh_dt, deriv)
189189
vals[j] = idxs !== nothing ? z[idxs] : z
190190
end
191191
return DiffEqArray(vals, tvals)
@@ -199,7 +199,7 @@ end
199199

200200
for j in idx
201201
z = similar(cache.fᵢ₂_cache)
202-
interpolant!(z, id.cache, tval, id.cache.mesh, id.cache.mesh_dt, deriv)
202+
interpolant!(z, id.cache, tvals[j], id.cache.mesh, id.cache.mesh_dt, deriv)
203203
vals[j] = z
204204
end
205205
end
@@ -212,7 +212,7 @@ end
212212
end
213213

214214
@inline function interpolant!(z::AbstractArray, cache::FIRKCacheExpand{iip},
215-
t, mesh, mesh_dt, T::Type{Val{0}}) where {iip}
215+
t, mesh, mesh_dt, ::Type{Val{0}}) where {iip}
216216
j = interval(mesh, t)
217217
h = mesh_dt[j]
218218
lf = (length(cache.y₀) - 1) / (length(cache.y) - 1)
@@ -254,7 +254,7 @@ end
254254
end
255255

256256
@inline function interpolant!(dz::AbstractArray, cache::FIRKCacheExpand{iip},
257-
t, mesh, mesh_dt, T::Type{Val{1}}) where {iip}
257+
t, mesh, mesh_dt, ::Type{Val{1}}) where {iip}
258258
j = interval(mesh, t)
259259
h = mesh_dt[j]
260260
lf = (length(cache.y₀) - 1) / (length(cache.y) - 1)

0 commit comments

Comments
 (0)