From 1ee3f18d50ad966e494d9f6582fd0e5cd19de278 Mon Sep 17 00:00:00 2001 From: Hossein Pourbozorg Date: Sun, 1 Sep 2024 22:16:24 +0330 Subject: [PATCH] update to new enum --- test/analyticless_convergence_tests.jl | 6 +++--- test/test_prob_sol.jl | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/analyticless_convergence_tests.jl b/test/analyticless_convergence_tests.jl index cafef35..b48cbf2 100644 --- a/test/analyticless_convergence_tests.jl +++ b/test/analyticless_convergence_tests.jl @@ -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, @@ -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, @@ -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 diff --git a/test/test_prob_sol.jl b/test/test_prob_sol.jl index 530d453..0b2e458 100644 --- a/test/test_prob_sol.jl +++ b/test/test_prob_sol.jl @@ -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) @@ -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) @@ -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)