Skip to content

Commit 5557f30

Browse files
authored
Merge pull request #3891 from CliMA/tr/itime-support
Fix dt check in cb for ITime
2 parents 346a14e + 2403ed6 commit 5557f30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/callbacks/callback_helpers.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ end
3131

3232
function call_every_dt(f!, dt; skip_first = false, call_at_end = false)
3333
cb! = AtmosCallback(f!, EveryΔt(dt))
34-
@assert dt Inf "Adding callback that never gets called!"
34+
@assert float(dt) Inf "Adding callback that never gets called!"
3535
next_t = Ref{typeof(dt)}()
3636
affect! = function (integrator)
3737
cb!(integrator)

0 commit comments

Comments
 (0)