Skip to content

Commit dbf22d4

Browse files
committed
Add small subset of tests for easy temporary fuse testing
1 parent c2da373 commit dbf22d4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/firedrake/regression/test_fuse.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,12 @@
1313
def test_poisson_analytic(params, degree, quadrilateral):
1414
assert (run_test(2, degree, parameters=params, quadrilateral=False) < 1.e-9)
1515

16-
def test_helmholtz():
17-
diff = np.array([helmholtz(i)[0] for i in range(3, 6)])
16+
@pytest.mark.parametrize(['conv_num', 'degree'],
17+
[(p, d)
18+
for p,d in zip([1.8, 2.8, 3.8],[1, 2, 3])])
19+
def test_helmholtz(conv_num, degree):
20+
diff = np.array([helmholtz(i, degree=degree)[0] for i in range(3, 6)])
1821
print("l2 error norms:", diff)
1922
conv = np.log2(diff[:-1] / diff[1:])
2023
print("convergence order:", conv)
21-
assert (np.array(conv) > 2.8).all()
24+
assert (np.array(conv) > conv_num).all()

0 commit comments

Comments
 (0)