From 0a9e8dd2e9f90b65cc1f19606a5bd5cb140ae5b1 Mon Sep 17 00:00:00 2001 From: olender Date: Thu, 7 Nov 2024 16:29:34 -0300 Subject: [PATCH] added correct cpw for quads --- test/test_cpw_calc.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/test_cpw_calc.py b/test/test_cpw_calc.py index 7996cd22..85e7de80 100644 --- a/test/test_cpw_calc.py +++ b/test/test_cpw_calc.py @@ -13,8 +13,10 @@ def is_seismicmesh_installed(): def test_cpw_calc(): if is_seismicmesh_installed(): FEM_method_to_evaluate = "mass_lumped_triangle" + correct_cpw = 2.3 else: FEM_method_to_evaluate = "spectral_quadrilateral" + correct_cpw = 2.5 grid_point_calculator_parameters = { # Experiment parameters # Here we define the frequency of the Ricker wavelet source @@ -73,7 +75,7 @@ def test_cpw_calc(): # Check if cpw is within error TOL, starting search at min min = Cpw_calc.find_minimum() print(f"Minimum of {min}") - test3 = np.isclose(2.3, min) + test3 = np.isclose(correct_cpw, min) print("END") assert all([test1, test2, test3])