From e6a2c6795f11ba18580ef7b12cda85cd3f111342 Mon Sep 17 00:00:00 2001 From: lxvm Date: Wed, 3 Jan 2024 11:43:29 -0800 Subject: [PATCH] add missing iip checks --- test/interface_tests.jl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/interface_tests.jl b/test/interface_tests.jl index 57cfe50..3d232eb 100644 --- a/test/interface_tests.jl +++ b/test/interface_tests.jl @@ -131,7 +131,7 @@ end for dim in 1:max_dim_test lb, ub = (ones(dim), 3ones(dim)) prob = IntegralProblem(iip_integrands[i], lb, ub) - if dim > req.max_dim || dim < req.min_dim + if dim > req.max_dim || dim < req.min_dim || !req.allows_iip continue end @info "Alg = $(nameof(typeof(alg))), Integrand = $i, Dimension = $dim, Output Dimension = $nout" @@ -263,7 +263,8 @@ end for nout in 1:max_nout_test prob = IntegralProblem((dx, x, p) -> iip_integrands_v[i](dx, x, p, nout), lb, ub, nout = nout) - if dim > req.max_dim || dim < req.min_dim || req.nout < nout + if dim > req.max_dim || dim < req.min_dim || req.nout < nout || + !req.allows_iip continue end @info "Alg = $(nameof(typeof(alg))), Integrand = $i, Dimension = $dim, Output Dimension = $nout"