Skip to content

Commit 78d494f

Browse files
committed
Fix mesh_dt in FIRK interpolation
1 parent 36c353f commit 78d494f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/BoundaryValueDiffEqFIRK/src/interpolation.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ function (s::EvalSol{C})(tval::Number) where {C <: FIRKCacheExpand}
161161
for jj in 1:stage
162162
K[:, jj] = u[ctr_y + jj]
163163
end
164-
h = mesh_dt(j)
164+
h = mesh_dt[j]
165165
τ = tval - t[j]
166166

167167
M = size(K, 1)
@@ -232,7 +232,7 @@ function (s::EvalSol{C})(tval::Number) where {C <: FIRKCacheNested}
232232
(tval == t[1]) && return first(u)
233233
(tval == t[end]) && return last(u)
234234
j = interval(t, tval)
235-
h = t[j + 1] - t[j]
235+
h = mesh_dt[j]
236236
τ = tval - t[j]
237237
T = eltype(first(u))
238238

0 commit comments

Comments
 (0)