Skip to content

Commit 89c1247

Browse files
add maxiters to Cuba
1 parent b4fc0a7 commit 89c1247

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

src/Quadrature.jl

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -295,13 +295,21 @@ function __init__()
295295
nvec = prob.batch == 0 ? 1 : prob.batch
296296

297297
if alg isa CubaVegas
298-
out = Cuba.vegas(f, ndim, prob.nout; rtol = reltol, atol = abstol, nvec = nvec, kwargs...)
298+
out = Cuba.vegas(f, ndim, prob.nout; rtol = reltol,
299+
atol = abstol, nvec = nvec,
300+
maxevals = maxiters, kwargs...)
299301
elseif alg isa CubaSUAVE
300-
out = Cuba.suave(f, ndim, prob.nout; rtol = reltol, atol = abstol, nvec = nvec, kwargs...)
302+
out = Cuba.suave(f, ndim, prob.nout; rtol = reltol,
303+
atol = abstol, nvec = nvec,
304+
maxevals = maxiters, kwargs...)
301305
elseif alg isa CubaDivonne
302-
out = Cuba.divonne(f, ndim, prob.nout; rtol = reltol, atol = abstol, nvec = nvec, kwargs...)
306+
out = Cuba.divonne(f, ndim, prob.nout; rtol = reltol,
307+
atol = abstol, nvec = nvec,
308+
maxevals = maxiters, kwargs...)
303309
elseif alg isa CubaCuhre
304-
out = Cuba.cuhre(f, ndim, prob.nout; rtol = reltol, atol = abstol, nvec = nvec, kwargs...)
310+
out = Cuba.cuhre(f, ndim, prob.nout; rtol = reltol,
311+
atol = abstol, nvec = nvec,
312+
maxevals = maxiters, kwargs...)
305313
end
306314

307315
if prob.nout == 1

0 commit comments

Comments
 (0)