We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
isapprox
tdvp
1 parent dd0ddef commit 3de6c48Copy full SHA for 3de6c48
src/solvers/tdvp.jl
@@ -31,7 +31,7 @@ end
31
function time_step_and_nsteps(t, time_step, nsteps::Nothing)
32
nsteps_float = t / time_step
33
nsteps_rounded = round(nsteps_float)
34
- if abs(nsteps_float - nsteps_rounded) ≉ 0
+ if nsteps_float ≉ nsteps_rounded
35
return error("`t / time_step = $t / $time_step = $(t / time_step)` must be an integer.")
36
end
37
return time_step, Int(nsteps_rounded)
0 commit comments