@@ -11,23 +11,23 @@ g(u,p,t) = 1 .+zero(u)
11
11
v0 = 1
12
12
13
13
ff_harmonic = DynamicalSDEFunction (f1_harmonic,f2_harmonic,g)
14
- prob1 = DynamicalSDEProblem (ff_harmonic,v0,u0,(0.0 ,5.0 ))
14
+ prob1 = DynamicalSDEProblem (ff_harmonic,v0,u0,(0.0 ,1.5 ))
15
15
16
- dts = (1 / 2 ) .^ (8 : - 1 : 4 )
16
+ dts = (1 / 2 ) .^ (6 : - 1 : 3 )
17
17
18
18
# Can't use NoiseGrid as noise is not generated with the correct size in convergence.jl. We require noise with shape of v.
19
- sim1 = analyticless_test_convergence (dts,prob1,BAOAB (gamma= γ),(1 / 2 )^ 10 ;trajectories= Int (2e2 ),use_noise_grid= false )
19
+ sim1 = analyticless_test_convergence (dts,prob1,BAOAB (gamma= γ),(1 / 2 )^ 10 ;trajectories= Int (1e4 ),use_noise_grid= false )
20
20
display (sim1. 𝒪est)
21
- @test abs (sim1. 𝒪est[:weak_final ]- 1 ) < 0.3
21
+ @test abs (sim1. 𝒪est[:weak_final ]- 2 ) < 0.5
22
22
23
- sim1 = analyticless_test_convergence (dts,prob1,ABOBA (gamma= γ),(1 / 2 )^ 10 ;trajectories= Int (5e2 ),use_noise_grid= false )
23
+ sim1 = analyticless_test_convergence (dts,prob1,ABOBA (gamma= γ),(1 / 2 )^ 10 ;trajectories= Int (1e4 ),use_noise_grid= false )
24
24
display (sim1. 𝒪est)
25
- @test abs (sim1. 𝒪est[:weak_final ]- 1 ) < 0.3
25
+ @test abs (sim1. 𝒪est[:weak_final ]- 2 ) < 0.3
26
26
27
27
28
- sim1 = analyticless_test_convergence (dts,prob1,OBABO (gamma= γ),(1 / 2 )^ 10 ;trajectories= Int (5e2 ),use_noise_grid= false )
28
+ sim1 = analyticless_test_convergence (dts,prob1,OBABO (gamma= γ),(1 / 2 )^ 10 ;trajectories= Int (1e4 ),use_noise_grid= false )
29
29
display (sim1. 𝒪est)
30
- @test abs (sim1. 𝒪est[:weak_final ]- 1 ) < 0.3
30
+ @test abs (sim1. 𝒪est[:weak_final ]- 1.5 ) < 0.3
31
31
end
32
32
33
33
@testset " Vector u" begin
50
50
51
51
dts = (1 / 2 ) .^ (8 : - 1 : 4 )
52
52
53
- # Can't use NoiseGrid as noise is not generated with the correct size in convergence.jl. We require noise with shape of v.
54
- sim1 = analyticless_test_convergence (dts,prob1,BAOAB (gamma= γ),(1 / 2 )^ 10 ;trajectories= Int (1e2 ),use_noise_grid= false )
55
- @test abs (sim1. 𝒪est[:weak_final ]- 1 ) < 0.3
53
+ # # Can't use NoiseGrid as noise is not generated with the correct size in convergence.jl. We require noise with shape of v.
54
+ # sim1 = analyticless_test_convergence(dts,prob1,BAOAB(gamma=γ),(1/2)^10;trajectories=Int(1e2),use_noise_grid=false)
55
+ # @test abs(sim1.𝒪est[:weak_final]-1.5 ) < 0.3
56
56
57
57
58
58
sol1 = solve (prob1,ABOBA (gamma= [γ,γ]);dt= 1 / 10 ,save_noise= true )
61
61
62
62
@test sol1[:] ≈ sol2[:]
63
63
64
- # Can't use NoiseGrid as noise is not generated with the correct size in convergence.jl. We require noise with shape of v.
65
- sim1 = analyticless_test_convergence (dts,prob1,ABOBA (gamma= γ),(1 / 2 )^ 10 ;trajectories= Int (1e2 ),use_noise_grid= false )
66
- @test abs (sim1. 𝒪est[:weak_final ]- 1 ) < 0.3
64
+ # # Can't use NoiseGrid as noise is not generated with the correct size in convergence.jl. We require noise with shape of v.
65
+ # sim1 = analyticless_test_convergence(dts,prob1,ABOBA(gamma=γ),(1/2)^10;trajectories=Int(1e4 ),use_noise_grid=false)
66
+ # @test abs(sim1.𝒪est[:weak_final]-2 ) < 0.3
67
67
68
68
69
69
sol1 = solve (prob1,OBABO (gamma= [γ,γ]);dt= 1 / 10 ,save_noise= true )
72
72
73
73
@test sol1[:] ≈ sol2[:]
74
74
75
- # Can't use NoiseGrid as noise is not generated with the correct size in convergence.jl. We require noise with shape of v.
76
- sim1 = analyticless_test_convergence (dts,prob1,OBABO (gamma= γ),(1 / 2 )^ 10 ;trajectories= Int (1e2 ),use_noise_grid= false )
77
- @test abs (sim1. 𝒪est[:weak_final ]- 1 ) < 0.3
75
+ # # Can't use NoiseGrid as noise is not generated with the correct size in convergence.jl. We require noise with shape of v.
76
+ # sim1 = analyticless_test_convergence(dts,prob1,OBABO(gamma=γ),(1/2)^10;trajectories=Int(1e4 ),use_noise_grid=false)
77
+ # @test abs(sim1.𝒪est[:weak_final]-1.5 ) < 0.3
78
78
end
79
79
80
80
0 commit comments