Skip to content

Commit

Permalink
added correct cpw for quads
Browse files Browse the repository at this point in the history
  • Loading branch information
Olender committed Nov 7, 2024
1 parent 5fb8c38 commit 0a9e8dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/test_cpw_calc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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])
Expand Down

0 comments on commit 0a9e8dd

Please sign in to comment.