Skip to content

Commit 72945d4

Browse files
Merge pull request #80 from prbzrg/update-new
update to new enum
2 parents 8f9f5ba + 1ee3f18 commit 72945d4

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

test/analyticless_convergence_tests.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ sim2 = analyticless_test_convergence(dts, prob, LambaEulerHeun(), test_dt,
4040
sim2 = analyticless_test_convergence(dts, prob, RKMil(), test_dt, trajectories = 300,
4141
use_noise_grid = false)
4242
@test abs(sim2.𝒪est[:final] - 1.0) < 0.3
43-
sim2 = analyticless_test_convergence(dts, prob, RKMil(interpretation = :Stratonovich),
43+
sim2 = analyticless_test_convergence(dts, prob, RKMil(interpretation = SciMLBase.AlgorithmInterpretation.Stratonovich),
4444
test_dt, trajectories = 300, use_noise_grid = false)
4545
@test abs(sim2.𝒪est[:final] - 1.0) < 0.3
4646
sim2 = analyticless_test_convergence(dts, prob, WangLi3SMil_A(), test_dt,
@@ -68,7 +68,7 @@ prob.p .= pmul;
6868
sim2 = analyticless_test_convergence(dts, prob, SROCK1(), test_dt, trajectories = 100,
6969
use_noise_grid = false)
7070
@test abs(sim2.𝒪est[:final] - 1.0) < 0.3
71-
sim2 = analyticless_test_convergence(dts, prob, SROCK1(interpretation = :Stratonovich),
71+
sim2 = analyticless_test_convergence(dts, prob, SROCK1(interpretation = SciMLBase.AlgorithmInterpretation.Stratonovich),
7272
test_dt, trajectories = 300, use_noise_grid = false)
7373
@test abs(sim2.𝒪est[:final] - 1.0) < 0.3
7474
sim2 = analyticless_test_convergence(dts, prob, SROCKEM(), test_dt, trajectories = 300,
@@ -114,7 +114,7 @@ sim2 = analyticless_test_convergence(dts, prob,
114114
test_dt, trajectories = 300, use_noise_grid = false)
115115
@test abs(sim2.𝒪est[:final] - 1.0) < 0.3
116116
sim2 = analyticless_test_convergence(dts, prob,
117-
ImplicitRKMil(interpretation = :Stratonovich,
117+
ImplicitRKMil(interpretation = SciMLBase.AlgorithmInterpretation.Stratonovich,
118118
symplectic = true, theta = 1 / 2),
119119
test_dt, trajectories = 300, use_noise_grid = false)
120120
@test abs(sim2.𝒪est[:final] - 1.0) < 0.3

test/test_prob_sol.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ sol = @test_nowarn solve(prob, LambaEulerHeun(), dt = 0.01)
3333
@test sol.u[end] != zeros(1)
3434
sol = @test_nowarn solve(prob, RKMil(), dt = 0.01)
3535
@test sol.u[end] != zeros(1)
36-
sol = @test_nowarn solve(prob, RKMil(interpretation = :Stratonovich), dt = 0.01)
36+
sol = @test_nowarn solve(prob, RKMil(interpretation = SciMLBase.AlgorithmInterpretation.Stratonovich), dt = 0.01)
3737
@test sol.u[end] != zeros(1)
3838
sol = @test_nowarn solve(prob, RKMilCommute(), dt = 0.01)
3939
@test sol.u[end] != zeros(1)
40-
sol = @test_nowarn solve(prob, RKMilCommute(interpretation = :Stratonovich), dt = 0.01)
40+
sol = @test_nowarn solve(prob, RKMilCommute(interpretation = SciMLBase.AlgorithmInterpretation.Stratonovich), dt = 0.01)
4141
@test sol.u[end] != zeros(1)
4242
sol = @test_nowarn solve(prob, WangLi3SMil_A(), dt = 0.01)
4343
@test sol.u[end] != zeros(1)
@@ -84,7 +84,7 @@ println("SROCK methods")
8484
prob.p .= pmul;
8585
sol = @test_nowarn solve(prob, SROCK1(), dt = 0.01)
8686
@test sol.u[end] != zeros(1)
87-
sol = @test_nowarn solve(prob, SROCK1(interpretation = :Stratonovich), dt = 0.01)
87+
sol = @test_nowarn solve(prob, SROCK1(interpretation = SciMLBase.AlgorithmInterpretation.Stratonovich), dt = 0.01)
8888
@test sol.u[end] != zeros(1)
8989
sol = @test_nowarn solve(prob, SROCKEM(), dt = 0.01)
9090
@test sol.u[end] != zeros(1)
@@ -119,7 +119,7 @@ sol = @test_nowarn solve(prob, ImplicitRKMil(), dt = 0.01)
119119
sol = @test_nowarn solve(prob, ImplicitRKMil(symplectic = true, theta = 1 / 2), dt = 0.01)
120120
@test sol.u[end] != zeros(1)
121121
sol = @test_nowarn solve(prob,
122-
ImplicitRKMil(interpretation = :Stratonovich, symplectic = true,
122+
ImplicitRKMil(interpretation = SciMLBase.AlgorithmInterpretation.Stratonovich, symplectic = true,
123123
theta = 1 / 2), dt = 0.01)
124124
@test sol.u[end] != zeros(1)
125125
sol = @test_nowarn solve(prob, ISSEM(), dt = 0.01)

0 commit comments

Comments
 (0)