Skip to content

Commit b44b2b7

Browse files
committed
fix type instability
1 parent ebc27a3 commit b44b2b7

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

src/steadystate.jl

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,18 @@ or
7777
7878
For more details about the solving `alg`orithms, please refer to [`OrdinaryDiffEq.jl`](https://docs.sciml.ai/OrdinaryDiffEq/stable/).
7979
"""
80-
Base.@kwdef struct SteadyStateODESolver{MT<:OrdinaryDiffEqAlgorithm,ST<:Union{Nothing,QuantumObject},T<:Real} <:
81-
SteadyStateSolver
80+
Base.@kwdef struct SteadyStateODESolver{
81+
MT<:OrdinaryDiffEqAlgorithm,
82+
ST<:Union{Nothing,QuantumObject},
83+
T1<:Real,
84+
T2<:Real,
85+
T3<:Real,
86+
} <: SteadyStateSolver
8287
alg::MT = Tsit5()
8388
ψ0::ST = nothing
84-
tmax::T = Inf
85-
terminate_reltol::Real = 10 * DEFAULT_ODE_SOLVER_OPTIONS.reltol
86-
terminate_abstol::Real = 10 * DEFAULT_ODE_SOLVER_OPTIONS.abstol
89+
tmax::T1 = Inf
90+
terminate_reltol::T2 = 10 * DEFAULT_ODE_SOLVER_OPTIONS.reltol
91+
terminate_abstol::T3 = 10 * DEFAULT_ODE_SOLVER_OPTIONS.abstol
8792
end
8893

8994
@doc raw"""

0 commit comments

Comments
 (0)