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

Commit d5e3904

Browse files
Update direct_approxfun.jl
1 parent a7905bf commit d5e3904

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/direct_approxfun.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ S=Fourier()
55
u0=Fun->cos(cos-0.1))-cos(cos(0-0.1)),S)
66
c=Fun(cos,S)
77

8-
prob = ODEProblem((t,u)->u''+(c+1)*u',u0,(0.,1.))
8+
prob = ODEProblem((u,p,t)->u''+(c+1)*u',u0,(0.,1.))
99
@time sol=solve(prob,Euler(),dt=1/1000)
1010

1111
tstops = [0.0,0.00630546,0.0196241,0.0365809,0.0580536,0.0840865,0.1151,0.151529,0.195094,0.24658,0.292971,0.316851,0.338594,0.36075,0.384077,0.408548,0.433682,0.458922,0.483926,0.508619,0.533097,0.557498,0.581922,0.606414,0.630967,0.655551,0.68014,0.704717,0.729278,0.753828,0.778375,0.802923,0.827475,0.85203,0.876586,0.901142,0.925698,0.950253,0.974808,0.999362,1.0]

0 commit comments

Comments
 (0)