File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 11import pytest
22from firedrake import *
33import numpy as np
4- from mpi4py import MPI
54from ufl .conditional import GT , LT
65from 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 ))
You can’t perform that action at this time.
0 commit comments