From 96e38f43ebaa94210b5a489157f3661730cc4984 Mon Sep 17 00:00:00 2001 From: pivaps Date: Thu, 7 Mar 2024 17:42:24 +0000 Subject: [PATCH] Correcting numerical error in low-frequency halfspace test --- test/acoustics-3D/Two-media/planar-symmetry.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/acoustics-3D/Two-media/planar-symmetry.jl b/test/acoustics-3D/Two-media/planar-symmetry.jl index 8ce88e5..f8d2663 100644 --- a/test/acoustics-3D/Two-media/planar-symmetry.jl +++ b/test/acoustics-3D/Two-media/planar-symmetry.jl @@ -90,7 +90,7 @@ end Reffs = [reflection_coefficient(w, source, material) for w in wavemodes] - @test abs(Reffs[1] - Rlows[1]) / abs(Rlows[1]) < 0.01 - @test norm(Reffs - Rlows) / norm(Rlows) < 0.1 + @test abs(Reffs[1] - Rlows[1]) / abs(Rlows[1]) < 0.0001 + @test norm(Reffs - Rlows) / norm(Rlows) < 0.005 end