Skip to content

Commit f2dfed3

Browse files
Update solve.jl
1 parent 5ac5bb8 commit f2dfed3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/solve.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ function DiffEqBase.solve!(integrator::SDDEIntegrator)
513513
if DiffEqBase.check_error!(integrator) != ReturnCode.Success
514514
return integrator.sol
515515
end
516-
if integrator.dt > minimum(integrator.sol.prob.constant_lags) &&
516+
if !isempty(integrator.sol.prob.constant_lags) && integrator.dt > minimum(integrator.sol.prob.constant_lags) &&
517517
!(integrator.alg <: StochasticDiffEq.EM)
518518
error("dt > minimum(constant_lags). This is not allowed by the integrator. Please dt `dtmax` less than the minimum lag or use `EM`.")
519519
end

0 commit comments

Comments
 (0)