You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/BoundaryValueDiffEqMIRK/src/interpolation.jl
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -202,7 +202,7 @@ end
202
202
203
203
# Intermediate solution for evaluating boundary conditions
204
204
# basically simplified version of the interpolation for MIRK
205
-
function (s::EvalSol{C})(tval::Number) where {C <:AbstractBoundaryValueDiffEqCache}
205
+
function (s::EvalSol{C})(tval::Number) where {C <:MIRKCache}
206
206
(; t, u, cache) = s
207
207
(; alg, stage, k_discrete, k_interp, M) = cache
208
208
# Quick handle for the case where tval is at the boundary
@@ -234,7 +234,7 @@ function (s::EvalSol{C})(tval::Number) where {C <: AbstractBoundaryValueDiffEqCa
234
234
end
235
235
236
236
# Interpolate intermediate solution at multiple points
237
-
function (s::EvalSol{C})(tvals::AbstractArray{<:Number}) where {C <:AbstractBoundaryValueDiffEqCache}
237
+
function (s::EvalSol{C})(tvals::AbstractArray{<:Number}) where {C <:MIRKCache}
238
238
(; t, u, cache) = s
239
239
(; alg, stage, k_discrete, mesh_dt, M) = cache
240
240
# Quick handle for the case where tval is at the boundary
@@ -352,7 +352,7 @@ end
352
352
353
353
Update the intermediate solution `eval_sol` with the new flattened solution `y_` and the cache. When evaluating boundary conditions with new solution during nonlinear solving, we should always update the intermediate solution with discrete solution + discrete stages + new stages(Continuous MIRK: u(meshᵢ + τ*dt) = yᵢ + dt sum br(τ)*kr).
0 commit comments