Skip to content

Commit

Permalink
Merge pull request #80 from prbzrg/update-new
Browse files Browse the repository at this point in the history
update to new enum
  • Loading branch information
ChrisRackauckas authored Sep 1, 2024
2 parents 8f9f5ba + 1ee3f18 commit 72945d4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions test/analyticless_convergence_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ sim2 = analyticless_test_convergence(dts, prob, LambaEulerHeun(), test_dt,
sim2 = analyticless_test_convergence(dts, prob, RKMil(), test_dt, trajectories = 300,
use_noise_grid = false)
@test abs(sim2.𝒪est[:final] - 1.0) < 0.3
sim2 = analyticless_test_convergence(dts, prob, RKMil(interpretation = :Stratonovich),
sim2 = analyticless_test_convergence(dts, prob, RKMil(interpretation = SciMLBase.AlgorithmInterpretation.Stratonovich),
test_dt, trajectories = 300, use_noise_grid = false)
@test abs(sim2.𝒪est[:final] - 1.0) < 0.3
sim2 = analyticless_test_convergence(dts, prob, WangLi3SMil_A(), test_dt,
Expand Down Expand Up @@ -68,7 +68,7 @@ prob.p .= pmul;
sim2 = analyticless_test_convergence(dts, prob, SROCK1(), test_dt, trajectories = 100,
use_noise_grid = false)
@test abs(sim2.𝒪est[:final] - 1.0) < 0.3
sim2 = analyticless_test_convergence(dts, prob, SROCK1(interpretation = :Stratonovich),
sim2 = analyticless_test_convergence(dts, prob, SROCK1(interpretation = SciMLBase.AlgorithmInterpretation.Stratonovich),
test_dt, trajectories = 300, use_noise_grid = false)
@test abs(sim2.𝒪est[:final] - 1.0) < 0.3
sim2 = analyticless_test_convergence(dts, prob, SROCKEM(), test_dt, trajectories = 300,
Expand Down Expand Up @@ -114,7 +114,7 @@ sim2 = analyticless_test_convergence(dts, prob,
test_dt, trajectories = 300, use_noise_grid = false)
@test abs(sim2.𝒪est[:final] - 1.0) < 0.3
sim2 = analyticless_test_convergence(dts, prob,
ImplicitRKMil(interpretation = :Stratonovich,
ImplicitRKMil(interpretation = SciMLBase.AlgorithmInterpretation.Stratonovich,
symplectic = true, theta = 1 / 2),
test_dt, trajectories = 300, use_noise_grid = false)
@test abs(sim2.𝒪est[:final] - 1.0) < 0.3
Expand Down
8 changes: 4 additions & 4 deletions test/test_prob_sol.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ sol = @test_nowarn solve(prob, LambaEulerHeun(), dt = 0.01)
@test sol.u[end] != zeros(1)
sol = @test_nowarn solve(prob, RKMil(), dt = 0.01)
@test sol.u[end] != zeros(1)
sol = @test_nowarn solve(prob, RKMil(interpretation = :Stratonovich), dt = 0.01)
sol = @test_nowarn solve(prob, RKMil(interpretation = SciMLBase.AlgorithmInterpretation.Stratonovich), dt = 0.01)
@test sol.u[end] != zeros(1)
sol = @test_nowarn solve(prob, RKMilCommute(), dt = 0.01)
@test sol.u[end] != zeros(1)
sol = @test_nowarn solve(prob, RKMilCommute(interpretation = :Stratonovich), dt = 0.01)
sol = @test_nowarn solve(prob, RKMilCommute(interpretation = SciMLBase.AlgorithmInterpretation.Stratonovich), dt = 0.01)
@test sol.u[end] != zeros(1)
sol = @test_nowarn solve(prob, WangLi3SMil_A(), dt = 0.01)
@test sol.u[end] != zeros(1)
Expand Down Expand Up @@ -84,7 +84,7 @@ println("SROCK methods")
prob.p .= pmul;
sol = @test_nowarn solve(prob, SROCK1(), dt = 0.01)
@test sol.u[end] != zeros(1)
sol = @test_nowarn solve(prob, SROCK1(interpretation = :Stratonovich), dt = 0.01)
sol = @test_nowarn solve(prob, SROCK1(interpretation = SciMLBase.AlgorithmInterpretation.Stratonovich), dt = 0.01)
@test sol.u[end] != zeros(1)
sol = @test_nowarn solve(prob, SROCKEM(), dt = 0.01)
@test sol.u[end] != zeros(1)
Expand Down Expand Up @@ -119,7 +119,7 @@ sol = @test_nowarn solve(prob, ImplicitRKMil(), dt = 0.01)
sol = @test_nowarn solve(prob, ImplicitRKMil(symplectic = true, theta = 1 / 2), dt = 0.01)
@test sol.u[end] != zeros(1)
sol = @test_nowarn solve(prob,
ImplicitRKMil(interpretation = :Stratonovich, symplectic = true,
ImplicitRKMil(interpretation = SciMLBase.AlgorithmInterpretation.Stratonovich, symplectic = true,
theta = 1 / 2), dt = 0.01)
@test sol.u[end] != zeros(1)
sol = @test_nowarn solve(prob, ISSEM(), dt = 0.01)
Expand Down

0 comments on commit 72945d4

Please sign in to comment.