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

Commit

Permalink
Update indirect_approxfun.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Jan 24, 2018
1 parent d5e3904 commit f69216c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/indirect_approxfun.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ u0=Fun(θ->cos(cos(θ-0.1))-cos(cos(0-0.1)),S)
c=Fun(cos,S)


ode_prob = ODEProblem((t,u)->u''+(c+1)*u',u0,(0.,1.))
ode_prob = ODEProblem((u,p,t)->u''+(c+1)*u',u0,(0.,1.))
prob = ApproxFunProblem(ode_prob)
@time sol=solve(prob,Euler(),dt=1/1000)
@time sol=solve(prob,Tsit5())
Expand All @@ -28,7 +28,7 @@ end
u0=Fun->cos(cos(θ)) - cos(cos(0)),S)
u0 = bc(0.0,u0)
c=Fun(cos,S)
ode_prob = ODEProblem((t,u)->u''+(c+1)*u',u0,(0.,1.))
ode_prob = ODEProblem((u,p,t)->u''+(c+1)*u',u0,(0.,1.))

prob = ApproxFunProblem(ode_prob)

Expand Down

0 comments on commit f69216c

Please sign in to comment.