@@ -11,23 +11,23 @@ g(u,p,t) = 1 .+zero(u)
1111 v0 = 1
1212
1313 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 ))
1515
16- dts = (1 / 2 ) .^ (8 : - 1 : 4 )
16+ dts = (1 / 2 ) .^ (6 : - 1 : 3 )
1717
1818 # 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 )
2020 display (sim1. 𝒪est)
21- @test abs (sim1. 𝒪est[:weak_final ]- 1 ) < 0.3
21+ @test abs (sim1. 𝒪est[:weak_final ]- 2 ) < 0.5
2222
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 )
2424 display (sim1. 𝒪est)
25- @test abs (sim1. 𝒪est[:weak_final ]- 1 ) < 0.3
25+ @test abs (sim1. 𝒪est[:weak_final ]- 2 ) < 0.3
2626
2727
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 )
2929 display (sim1. 𝒪est)
30- @test abs (sim1. 𝒪est[:weak_final ]- 1 ) < 0.3
30+ @test abs (sim1. 𝒪est[:weak_final ]- 1.5 ) < 0.3
3131end
3232
3333@testset " Vector u" begin
5050
5151 dts = (1 / 2 ) .^ (8 : - 1 : 4 )
5252
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
5656
5757
5858 sol1 = solve (prob1,ABOBA (gamma= [γ,γ]);dt= 1 / 10 ,save_noise= true )
6161
6262 @test sol1[:] ≈ sol2[:]
6363
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
6767
6868
6969 sol1 = solve (prob1,OBABO (gamma= [γ,γ]);dt= 1 / 10 ,save_noise= true )
7272
7373 @test sol1[:] ≈ sol2[:]
7474
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
7878end
7979
8080
0 commit comments