Skip to content

Commit 8d631f8

Browse files
committed
Relax test to avoid randomness
1 parent d776c73 commit 8d631f8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/firedrake/submesh/test_submesh_interpolate.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import pytest
22
from firedrake import *
33
import numpy as np
4-
from mpi4py import MPI
54
from ufl.conditional import GT, LT
65
from os.path import abspath, dirname, join
76

@@ -328,12 +327,11 @@ def test_submesh_interpolate_adjoint(fe_fesub):
328327

329328
expected_primal = assemble(action(I, u1))
330329
test1 = np.allclose(Iu1.dat.data, expected_primal.dat.data)
331-
test1 = V2.comm.allreduce(test1, MPI.LAND)
332-
assert test1 == expected_to_pass
330+
assert test1 or not expected_to_pass
333331

334332
result_forward_1 = assemble(action(ustar2, Iu1))
335333
test0 = np.isclose(result_forward_1, expected)
336-
assert test0 == expected_to_pass
334+
assert test0 or not expected_to_pass
337335

338336
# Test adjoint 1-form
339337
ustar2I = assemble(interpolate(TestFunction(V1), ustar2, allow_missing_dofs=True))

0 commit comments

Comments
 (0)