Skip to content

Commit

Permalink
Update ext/IntegralsGSLExt.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas authored Dec 31, 2023
1 parent 9c01acc commit 562400b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/IntegralsGSLExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function Integrals.__solvebp_call(cache::IntegralCache, alg::GSLIntegration{type
end
# gslf = @gsl_function(f) # broken, see: https://github.com/JuliaMath/GSL.jl/pull/128
ptr = @cfunction($((x,p) -> f(x)), Cdouble, (Cdouble, Ptr{Cvoid}))
gslf = gsl_function(Base.unsafe_convert(Ptr{Cvoid},ptr), 0)
gslf = GC.@preserve ptr gsl_function(Base.unsafe_convert(Ptr{Cvoid},ptr), 0)
a, b = map(Cdoubleonly, domain)
(; gslcache, result, abserr, nevals) = cache.cacheval
integration_cquad(gslf, a, b, abstol, reltol, getvalue(gslcache), result, abserr, nevals)
Expand Down

0 comments on commit 562400b

Please sign in to comment.