Skip to content

Commit

Permalink
even more trajectories to pass the test
Browse files Browse the repository at this point in the history
  • Loading branch information
Hadrien authored and ChrisRackauckas committed Nov 17, 2023
1 parent 508edf7 commit f836738
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/sde/sde_dynamical.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ g(u,p,t) = 1 .+zero(u)
dts = (1/2) .^ (6:-1:3)

# Can't use NoiseGrid as noise is not generated with the correct size in convergence.jl. We require noise with shape of v.
sim1 = analyticless_test_convergence(dts,prob1,BAOAB(gamma=γ),(1/2)^10;trajectories=Int(1e4),use_noise_grid=false)
sim1 = analyticless_test_convergence(dts,prob1,BAOAB(gamma=γ),(1/2)^10;trajectories=Int(1e5),use_noise_grid=false)
display(sim1.𝒪est)
@test abs(sim1.𝒪est[:weak_final]-2) < 0.5

sim1 = analyticless_test_convergence(dts,prob1,ABOBA(gamma=γ),(1/2)^10;trajectories=Int(1e4),use_noise_grid=false)
sim1 = analyticless_test_convergence(dts,prob1,ABOBA(gamma=γ),(1/2)^10;trajectories=Int(1e5),use_noise_grid=false)
display(sim1.𝒪est)
@test abs(sim1.𝒪est[:weak_final]-2) < 0.3
@test abs(sim1.𝒪est[:weak_final]-2) < 0.5


sim1 = analyticless_test_convergence(dts,prob1,OBABO(gamma=γ),(1/2)^10;trajectories=Int(1e4),use_noise_grid=false)
sim1 = analyticless_test_convergence(dts,prob1,OBABO(gamma=γ),(1/2)^10;trajectories=Int(1e5),use_noise_grid=false)
display(sim1.𝒪est)
@test abs(sim1.𝒪est[:weak_final]-1.5) < 0.3
@test abs(sim1.𝒪est[:weak_final]-1.5) < 0.5
end

@testset "Vector u" begin
Expand Down

0 comments on commit f836738

Please sign in to comment.