Skip to content

Commit cbf7b00

Browse files
authored
Tweak locations for cell location tests (#4692)
The previous approach had points at (0.5, y) or (x, 0.5) which lay exactly on the mesh tolerance of 0.5 and led to failures on some systems (not finding a second candidate cell). This was particularly problematic because these tests are used in firedrake-check.
1 parent b275927 commit cbf7b00

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/firedrake/regression/test_locate_cell.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ def meshdata(request):
2525

2626
@pytest.mark.parametrize(('point', 'value'),
2727
[((0.2, 0.1), 1),
28-
((0.5, 0.2), 2),
28+
((0.4, 0.2), 2),
2929
((0.7, 0.1), 3),
3030
((0.2, 0.4), 4),
3131
((0.4, 0.4), 5),
32-
((0.8, 0.5), 6),
32+
((0.8, 0.6), 6),
3333
((0.1, 0.7), 7),
34-
((0.5, 0.9), 8),
34+
((0.6, 0.9), 8),
3535
((0.9, 0.8), 9)])
3636
def test_locate_cell(meshdata, point, value):
3737
m, f = meshdata

0 commit comments

Comments
 (0)