Skip to content

Commit 8aa6d76

Browse files
committed
add five arg promote_tspan
1 parent a9154dd commit 8aa6d76

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/solve.jl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,17 @@ set_mooncakeoriginator_if_mooncake(x::SciMLBase.ADOriginator) = x
518518
q
519519
end
520520

521+
promote_tspan(u0, p, tspan, prob, kwargs) = _promote_tspan(tspan, kwargs)
522+
523+
function _promote_tspan(tspan, kwargs)
524+
if (dt = get(kwargs, :dt, nothing)) !== nothing
525+
tspan1, tspan2, _ = promote(tspan..., dt)
526+
return (tspan1, tspan2)
527+
else
528+
return tspan
529+
end
530+
end
531+
521532
####
522533
# Catch undefined AD overload cases
523534

0 commit comments

Comments
 (0)