Skip to content

Commit 8db87b7

Browse files
committed
tests: Fix test_mpi.py::TestOperatorAdvanced::test_interpolation_at_uforward[1]
1 parent ddb2459 commit 8db87b7

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/test_mpi.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
from devito.mpi.distributed import CustomTopology
2222
from devito.mpi.routines import ComputeCall, HaloUpdateCall, HaloUpdateList, MPICall
2323
from devito.tools import Bunch
24+
from devito.types.dimension import ModuloDimension
2425
from examples.seismic.acoustic import acoustic_setup
2526

2627

@@ -3188,8 +3189,9 @@ def test_interpolation_at_uforward(self, mode):
31883189

31893190
calls, _ = check_halo_exchanges(op, 2, 1)
31903191
args = calls[0].arguments
3191-
assert args[-2].name == 't2'
3192-
assert args[-2].origin == t + 1
3192+
t2 = next(filter(lambda a: isinstance(a, ModuloDimension), args))
3193+
assert t2.name == 't2'
3194+
assert t2.origin == t + 1
31933195

31943196

31953197
def gen_serial_norms(shape, so):

0 commit comments

Comments
 (0)