From b8decd59985409dd15673672b7684f0d28b67c88 Mon Sep 17 00:00:00 2001 From: Michael Ingold Date: Thu, 5 Dec 2024 13:40:40 -0500 Subject: [PATCH 1/2] Typo fix --- test/combinations.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/combinations.jl b/test/combinations.jl index c83a9340..26f4fdcf 100644 --- a/test/combinations.jl +++ b/test/combinations.jl @@ -146,7 +146,8 @@ end ux = ustrip(p.coords.x) (1 / sqrt(1 + cos(ux)^2)) * u"Ω" end - solution = 2π * u"Ω*m" + sol = 2π * u"Ω*m" + vsol = fill(sol, 3) # Scalar integrand @test integral(f, curve, GaussLegendre(100))≈sol rtol=0.5e-2 @@ -154,7 +155,6 @@ end @test integral(f, curve, HAdaptiveCubature())≈sol rtol=0.5e-2 # Vector integrand - vsol = fill(sol, 3) @test integral(fv, curve, GaussLegendre(100))≈vsol rtol=0.5e-2 @test integral(fv, curve, GaussKronrod())≈vsol rtol=0.5e-2 @test integral(fv, curve, HAdaptiveCubature())≈vsol rtol=0.5e-2 From 452278b4afb71453a00502d4e8be21decd30c2d1 Mon Sep 17 00:00:00 2001 From: Michael Ingold Date: Thu, 5 Dec 2024 14:04:54 -0500 Subject: [PATCH 2/2] Bugfixes --- test/combinations.jl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/combinations.jl b/test/combinations.jl index 26f4fdcf..4649e437 100644 --- a/test/combinations.jl +++ b/test/combinations.jl @@ -146,6 +146,7 @@ end ux = ustrip(p.coords.x) (1 / sqrt(1 + cos(ux)^2)) * u"Ω" end + fv(p) = fill(f(p), 3) sol = 2π * u"Ω*m" vsol = fill(sol, 3) @@ -179,8 +180,8 @@ end sqrt(a^2 - t^2) * u"Ω" end fv(p) = fill(f(p), 3) - solution = π * a^2 / 4 * u"Ω*m" - vsol = fill(solution, 3) + sol = π * a^2 / 4 * u"Ω*m" + vsol = fill(sol, 3) # Scalar integrand @test integral(f, box, GaussLegendre(100))≈sol rtol=1e-6