Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cuba.jl methods not dispatching properly #15

Closed
agerlach opened this issue Jun 1, 2020 · 1 comment
Closed

Cuba.jl methods not dispatching properly #15

agerlach opened this issue Jun 1, 2020 · 1 comment

Comments

@agerlach
Copy link
Collaborator

agerlach commented Jun 1, 2020

Using QuadGKJL() works fine, but all Cuba methods fail with.

using Quadrature, Cubature, Cuba

cost(x,p) = sin(x[1])
qprob = QuadratureProblem(cost,0,π; nout=1, batch=0)
sol = solve(qprob, QuadGKJL(), reltol=1e-3,abstol=1e-3) #OK

sol = solve(qprob, CubaVegas(), reltol=1e-3,abstol=1e-3)
sol = solve(qprob, CubaSUAVE(), reltol=1e-3,abstol=1e-3)
sol = solve(qprob, CubaDivonne(), reltol=1e-3,abstol=1e-3)
sol = solve(qprob, CubaCuhre(), reltol=1e-3,abstol=1e-3)
type QuadratureProblem has no field tspan
getproperty(::QuadratureProblem{false,DiffEqBase.NullParameters,typeof(cost),Int64,Irrational{:π},Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}}, ::Symbol) at Base.jl:33
get_concrete_tspan(::QuadratureProblem{false,DiffEqBase.NullParameters,typeof(cost),Int64,Irrational{:π},Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}}, ::Base.Iterators.Pairs{Symbol,Float64,Tuple{Symbol,Symbol},NamedTuple{(:reltol, :abstol),Tuple{Float64,Float64}}}) at solve.jl:135
get_concrete_problem(::QuadratureProblem{false,DiffEqBase.NullParameters,typeof(cost),Int64,Irrational{:π},Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}}, ::Base.Iterators.Pairs{Symbol,Float64,Tuple{Symbol,Symbol},NamedTuple{(:reltol, :abstol),Tuple{Float64,Float64}}}) at solve.jl:110
solve(::QuadratureProblem{false,DiffEqBase.NullParameters,typeof(cost),Int64,Irrational{:π},Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}}, ::CubaCuhre; kwargs::Base.Iterators.Pairs{Symbol,Float64,Tuple{Symbol,Symbol},NamedTuple{(:reltol, :abstol),Tuple{Float64,Float64}}}) at solve.jl:54
(::DiffEqBase.var"#solve##kw")(::NamedTuple{(:reltol, :abstol),Tuple{Float64,Float64}}, ::typeof(solve), ::QuadratureProblem{false,DiffEqBase.NullParameters,typeof(cost),Int64,Irrational{:π},Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}}, ::CubaCuhre) at solve.jl:54
top-level scope at cuba_vegas.jl:11

@agerlach
Copy link
Collaborator Author

agerlach commented Jun 2, 2020

I think this was an issue with my Julia env. All seems to be working fine now.

@agerlach agerlach closed this as completed Jun 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant