Skip to content

Commit 9aefc22

Browse files
Merge pull request #1148 from AayushSabharwal/as/promote-ambig
fix: fix method ambiguity in `promote_u0` in MonteCarloExt
2 parents 8db4f30 + 98648c0 commit 9aefc22

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ext/DiffEqBaseMonteCarloMeasurementsExt.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ function DiffEqBase.promote_u0(u0,
2424
eltype(p).(u0)
2525
end
2626

27+
function DiffEqBase.promote_u0(::Nothing,
28+
p::AbstractArray{<:MonteCarloMeasurements.AbstractParticles},
29+
t0)
30+
return nothing
31+
end
32+
2733
DiffEqBase.value(x::Type{MonteCarloMeasurements.AbstractParticles{T, N}}) where {T, N} = T
2834
DiffEqBase.value(x::MonteCarloMeasurements.AbstractParticles) = mean(x.particles)
2935
function DiffEqBase.unitfulvalue(x::Type{MonteCarloMeasurements.AbstractParticles{

0 commit comments

Comments
 (0)