Skip to content

Commit 0097ff5

Browse files
author
Oscar Smith
authored
make promote_u0 use isequal rather than ==
1 parent af23a65 commit 0097ff5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/forwarddiff.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ DiffEqBase.anyeltypedual(f::SciMLBase.AbstractSciMLFunction, ::Type{Val{counter}
354354
@inline function promote_u0(u0, p, t0)
355355
if SciMLStructures.isscimlstructure(p)
356356
_p = SciMLStructures.canonicalize(SciMLStructures.Tunable(), p)[1]
357-
if _p != p
357+
if !isequal(_p, p)
358358
return promote_u0(u0, _p, t0)
359359
end
360360
end
@@ -381,7 +381,7 @@ end
381381
@inline function promote_u0(u0::AbstractArray{<:Complex}, p, t0)
382382
if SciMLStructures.isscimlstructure(p)
383383
_p = SciMLStructures.canonicalize(SciMLStructures.Tunable(), p)[1]
384-
if _p != p
384+
if !isequal(_p, p)
385385
return promote_u0(u0, _p, t0)
386386
end
387387
end

0 commit comments

Comments
 (0)