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

Commit f69216c

Browse files
Update indirect_approxfun.jl
1 parent d5e3904 commit f69216c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/indirect_approxfun.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ u0=Fun(θ->cos(cos(θ-0.1))-cos(cos(0-0.1)),S)
66
c=Fun(cos,S)
77

88

9-
ode_prob = ODEProblem((t,u)->u''+(c+1)*u',u0,(0.,1.))
9+
ode_prob = ODEProblem((u,p,t)->u''+(c+1)*u',u0,(0.,1.))
1010
prob = ApproxFunProblem(ode_prob)
1111
@time sol=solve(prob,Euler(),dt=1/1000)
1212
@time sol=solve(prob,Tsit5())
@@ -28,7 +28,7 @@ end
2828
u0=Fun->cos(cos(θ)) - cos(cos(0)),S)
2929
u0 = bc(0.0,u0)
3030
c=Fun(cos,S)
31-
ode_prob = ODEProblem((t,u)->u''+(c+1)*u',u0,(0.,1.))
31+
ode_prob = ODEProblem((u,p,t)->u''+(c+1)*u',u0,(0.,1.))
3232

3333
prob = ApproxFunProblem(ode_prob)
3434

0 commit comments

Comments
 (0)