Skip to content

Commit

Permalink
minor typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Krastanov authored Jun 10, 2024
1 parent 88c15ca commit b377ae2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/debug.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ function __init__()
# Check if the given Hamiltonian is constant.
if !(QuantumOpticsBase.is_const(exc.args[3]))
printstyled(io, "\nHint", color=:green)
print(io, ": You are attempting to use a time-dependent Hamiltonian with a solver that assumes constant dynamics. To avoid errors, please use the _dynamic solvers instead, e.g. master_dynamic instead of master_dynamic.")
print(io, ": You are attempting to use a time-dependent Hamiltonian with a solver that assumes constant dynamics. To avoid errors, please use the dynamic solvers instead, e.g. `master_dynamic` instead of `master`.")
end
end

if (exc.f == timeevolution.schroedinger) && (length(argtypes) >= 3)
# Check if the given Hamiltonian is constant.
if !(QuantumOpticsBase.is_const(exc.args[3]))
printstyled(io, "\nHint", color=:green)
print(io, ": You are attempting to use a time-dependent Hamiltonian with a solver that assumes constant dynamics. To avoid errors, please use the _dynamic solvers instead, e.g. schroedinger_dynamic instead of schroedinger_dynamic.")
print(io, ": You are attempting to use a time-dependent Hamiltonian with a solver that assumes constant dynamics. To avoid errors, please use the dynamic solvers instead, e.g. `schroedinger_dynamic` instead of `schroedinger`.")
end
end
end
Expand Down

0 comments on commit b377ae2

Please sign in to comment.