Skip to content

Commit f8ca5db

Browse files
committed
Fix base test dependencies and SciML solution indexing
1 parent d890ba5 commit f8ca5db

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

test/Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341"
77
FillArrays = "1a297f60-69ca-5386-bcde-b61e274b549b"
88
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
99
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
10+
Makie = "ee78f7c6-11fb-53f2-987a-cfe4a2b5a57a"
1011
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"
12+
OrdinaryDiffEqLowOrderRK = "1344f307-1e59-4825-a18e-ace9aa3fa4c6"
1113
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
1214
QuantumInterface = "5717a53b-5d69-4fa3-b976-0bf2f97ca1e5"
1315
QuantumOptics = "6e0679c1-51ea-5a7c-ac74-d61b76210b0c"

test/test_sciml_broadcast_interfaces.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using Test
33
using QuantumOptics
44
using OrdinaryDiffEq
5+
using OrdinaryDiffEqLowOrderRK: DP5
56

67
@testset "sciml interface" begin
78

@@ -22,7 +23,7 @@ prob_data! = ODEProblem(schrod_data!, u0, (t₀, t₁))
2223
sol = solve(prob!, DP5(); reltol = 1.0e-8, abstol = 1.0e-10, save_everystep=false)
2324
sol_data = solve(prob_data!, DP5(); reltol = 1.0e-8, abstol = 1.0e-10, save_everystep=false)
2425

25-
@test sol[end].data sol_data[end]
26+
@test sol.u[end].data sol_data.u[end]
2627

2728
# dense operator ODE problem
2829
σ₋ = sigmam(ℋ)
@@ -59,7 +60,7 @@ prob_data! = ODEProblem(lind_data!, m0, (t₀, t₁))
5960
sol = solve(prob!, DP5(); reltol = 1.0e-8, abstol = 1.0e-10, save_everystep=false)
6061
sol_data = solve(prob_data!, DP5(); reltol = 1.0e-8, abstol = 1.0e-10, save_everystep=false)
6162

62-
@test sol[end].data sol_data[end]
63+
@test sol.u[end].data sol_data.u[end]
6364

6465
end
65-
end
66+
end

0 commit comments

Comments
 (0)