Skip to content

Commit

Permalink
add missing iip checks
Browse files Browse the repository at this point in the history
  • Loading branch information
lxvm committed Jan 3, 2024
1 parent 38cb930 commit e6a2c67
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/interface_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit e6a2c67

Please sign in to comment.