Skip to content
This repository was archived by the owner on Jun 24, 2022. It is now read-only.

Commit a7905bf

Browse files
Update problem_solution_types.jl
1 parent 8a99245 commit a7905bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/problem_solution_types.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ end
55

66
function ApproxFunProblem(prob;n = ncoefficients(prob.u0))
77
sp = space(prob.u0)
8-
_prob = ODEProblem((t,u)->pad!(prob.f(t,Fun(sp,u)).coefficients,n),pad!(prob.u0.coefficients,n),prob.tspan)
8+
_prob = ODEProblem((u,p,t)->pad!(prob.f(t,Fun(sp,u)).coefficients,n),pad!(prob.u0.coefficients,n),prob.tspan,prob.p)
99
return ApproxFunProblem(_prob,sp)
1010
end
1111

0 commit comments

Comments
 (0)