|
54 | 54 |
|
55 | 55 | for j in idx |
56 | 56 | 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) |
58 | 58 | vals[j] = idxs !== nothing ? z[idxs] : z |
59 | 59 | end |
60 | 60 | return DiffEqArray(vals, tvals) |
|
68 | 68 |
|
69 | 69 | for j in idx |
70 | 70 | 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) |
72 | 72 | vals[j] = z |
73 | 73 | end |
74 | 74 | end |
|
185 | 185 |
|
186 | 186 | for j in idx |
187 | 187 | 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) |
189 | 189 | vals[j] = idxs !== nothing ? z[idxs] : z |
190 | 190 | end |
191 | 191 | return DiffEqArray(vals, tvals) |
|
199 | 199 |
|
200 | 200 | for j in idx |
201 | 201 | 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) |
203 | 203 | vals[j] = z |
204 | 204 | end |
205 | 205 | end |
|
212 | 212 | end |
213 | 213 |
|
214 | 214 | @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} |
216 | 216 | j = interval(mesh, t) |
217 | 217 | h = mesh_dt[j] |
218 | 218 | lf = (length(cache.y₀) - 1) / (length(cache.y) - 1) |
|
254 | 254 | end |
255 | 255 |
|
256 | 256 | @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} |
258 | 258 | j = interval(mesh, t) |
259 | 259 | h = mesh_dt[j] |
260 | 260 | lf = (length(cache.y₀) - 1) / (length(cache.y) - 1) |
|
0 commit comments