Skip to content

Commit

Permalink
fix buffer bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
lxvm committed Mar 3, 2024
1 parent ded5ee0 commit e6e9a5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Integrals.jl
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ end

function init_cacheval(alg::QuadGKJL, prob::IntegralProblem)
alg.buffer === nothing && return
lb, ub = prob.domain
lb, ub = map(first, prob.domain)
mid = (lb + ub) / 2
prototype = get_prototype(prob) * mid
TX = typeof(mid)
Expand Down Expand Up @@ -189,6 +189,7 @@ end
function init_cacheval(alg::HCubatureJL, prob::IntegralProblem)
alg.buffer === nothing && return
prototype = get_prototype(prob)
lb, ub = map(x -> x isa Number ? tuple(x) : x, prob.domain)
HCubature.hcubature_buffer(x -> prototype, lb, ub; norm = alg.norm)

Check warning on line 193 in src/Integrals.jl

View check run for this annotation

Codecov / codecov/patch

src/Integrals.jl#L191-L193

Added lines #L191 - L193 were not covered by tests
end
function __solvebp_call(cache::IntegralCache, alg::HCubatureJL, sensealg, domain, p;
Expand Down

0 comments on commit e6e9a5b

Please sign in to comment.