@@ -759,6 +759,7 @@ function DiffEqBase.ODEProblem{iip, specialize}(sys::AbstractODESystem, u0map =
759759 kwargs1 = merge (kwargs1, (; tstops))
760760 end
761761
762+ # Call `remake` so it runs initialization if it is trivial
762763 return remake (ODEProblem {iip} (f, u0, tspan, p, pt; kwargs1... , kwargs... ))
763764end
764765get_callback (prob:: ODEProblem ) = prob. kwargs[:callback ]
@@ -963,6 +964,7 @@ function DiffEqBase.DAEProblem{iip}(sys::AbstractODESystem, du0map, u0map, tspan
963964 kwargs1 = merge (kwargs1, (; tstops))
964965 end
965966
967+ # Call `remake` so it runs initialization if it is trivial
966968 return remake (DAEProblem {iip} (
967969 f, du0, u0, tspan, p; differential_vars = differential_vars,
968970 kwargs... , kwargs1... ))
@@ -1009,6 +1011,7 @@ function DiffEqBase.DDEProblem{iip}(sys::AbstractODESystem, u0map = [],
10091011 if cbs != = nothing
10101012 kwargs1 = merge (kwargs1, (callback = cbs,))
10111013 end
1014+ # Call `remake` so it runs initialization if it is trivial
10121015 return remake (DDEProblem {iip} (f, u0, h, tspan, p; kwargs1... , kwargs... ))
10131016end
10141017
@@ -1058,6 +1061,7 @@ function DiffEqBase.SDDEProblem{iip}(sys::AbstractODESystem, u0map = [],
10581061 else
10591062 noise_rate_prototype = zeros (eltype (u0), size (noiseeqs))
10601063 end
1064+ # Call `remake` so it runs initialization if it is trivial
10611065 return remake (SDDEProblem {iip} (f, f. g, u0, h, tspan, p;
10621066 noise_rate_prototype =
10631067 noise_rate_prototype, kwargs1... , kwargs... ))
0 commit comments