Skip to content

Commit

Permalink
Add explicit rtol for 4D Box
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeingold committed Oct 6, 2024
1 parent 91e6f04 commit 38b7959
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/combinations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -181,15 +181,15 @@ end

# Scalar integrand
sol = 4a^3 ** a^2 / 4) * u"Ω"
@test integral(f, box, GaussLegendre(100)) sol
@test integral(f, box, GaussLegendre(100))sol rtol=1e-6
@test_throws "not supported" integral(f, box, GaussKronrod())
@test integral(f, box, HAdaptiveCubature()) sol
@test integral(f, box, HAdaptiveCubature(rtol=1e-6))sol rtol=1e-6

# Vector integrand
vsol = fill(sol, 3)
@test integral(fv, box, GaussLegendre(100)) vsol
@test integral(fv, box, GaussLegendre(100))vsol rtol=1e-6
@test_throws "not supported" integral(fv, box, GaussKronrod())
@test integral(fv, box, HAdaptiveCubature()) vsol
@test integral(fv, box, HAdaptiveCubature(rtol=1e-6))vsol rtol=1e-6

# Integral aliases
@test_throws "not supported" lineintegral(f, box)
Expand Down

0 comments on commit 38b7959

Please sign in to comment.