Skip to content

Commit b4bf1a1

Browse files
committed
minor change
1 parent 1ececda commit b4bf1a1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/steadystate.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,10 @@ function steadystate(
9797
N = prod(H.dims)
9898
u0 = _convert_u0(mat2vec(ket2dm(ψ0).data))
9999

100-
Ftype = real(eltype(u0))
101-
Tspan = (convert(Ftype, 0), convert(Ftype, tspan)) # Convert it to support GPUs and avoid type instabilities for OrdinaryDiffEq.jl
102-
103100
L = MatrixOperator(liouvillian(H, c_ops).data)
104101

105-
prob = ODEProblem{true}(L, u0, Tspan)
102+
Ftype = real(eltype(u0))
103+
prob = ODEProblem{true}(L, u0, (Ftype(0), Ftype(tspan))) # Convert tspan to support GPUs and avoid type instabilities for OrdinaryDiffEq.jl
106104
sol = solve(
107105
prob,
108106
solver.alg;

0 commit comments

Comments
 (0)