Skip to content

Commit

Permalink
Update src/expectation.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Lorenzo Van Munoz <[email protected]>
  • Loading branch information
ChrisRackauckas and lxvm authored Feb 18, 2024
1 parent c7d8d10 commit 3bc3d4d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/expectation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,7 @@ function integrate(quadalg, adalg::AbstractExpectationADAlgorithm, f, lb::TB, ub
nout = nothing, batch = nothing,
kwargs...) where {TB}
#TODO check batch iip type stability w/ IntegralProblem{XXXX}
batch = batch==0 ? nothing : batch
prob = IntegralProblem(f, lb, ub, p; nout = nout, batch = batch)
prob = IntegralProblem(f, (lb, ub), p; nout = nout, batch = batch)
solve(prob, quadalg; kwargs...)
end

Expand Down

0 comments on commit 3bc3d4d

Please sign in to comment.