|
2 | 2 |
|
3 | 3 | import numpy as np |
4 | 4 | import pytest |
5 | | -from test_dse import TestTTI |
6 | 5 |
|
7 | 6 | from conftest import _R, assert_blocking, assert_structure, body0 |
8 | 7 | from devito import ( |
@@ -2216,6 +2215,7 @@ def test_halo_inner_dim(self, mode): |
2216 | 2215 | eq = [Eq(v.forward, v + 1), Eq(e, v.forward.dydz)] |
2217 | 2216 |
|
2218 | 2217 | op = Operator(eq, opt=('advanced', {'blocklevels': 0})) |
| 2218 | + |
2219 | 2219 | assert_structure(op, ['txyz', 't', 'txyz', 'txyz'], 'txyzxyzz') |
2220 | 2220 | op(time=100) |
2221 | 2221 |
|
@@ -2754,7 +2754,7 @@ def test_haloupdate_same_timestep_v2(self, mode): |
2754 | 2754 | assert titer.dim is grid.time_dim |
2755 | 2755 | assert titer.nodes[0].body[0].body[0].is_List |
2756 | 2756 | assert len(titer.nodes[0].body[0].body[0].body[0].body) == 1 |
2757 | | - assert not titer.nodes[0].body[0].body[0].body[0].body[0].is_Call |
| 2757 | + assert titer.nodes[0].body[0].body[0].body[0].body[0].is_Call |
2758 | 2758 |
|
2759 | 2759 | op.apply(time=0) |
2760 | 2760 |
|
@@ -3156,8 +3156,8 @@ def test_fission_due_to_antidep(self, mode): |
3156 | 3156 | # First, check the generated code |
3157 | 3157 | assert_structure(op1, ['t', |
3158 | 3158 | 't,x0_blk0,y0_blk0,x,y,z', |
3159 | | - 't,x1_blk0,y1_blk0,x,y,z'], |
3160 | | - 'tx0_blk0y0_blk0xyzx1_blk0y1_blk0xyz') |
| 3159 | + 't,x0_blk0,y0_blk0,x,y,z'], |
| 3160 | + 'tx0_blk0y0_blk0xyzz') |
3161 | 3161 |
|
3162 | 3162 | def init(f, v=1): |
3163 | 3163 | f.data[:] = np.indices(grid.shape).sum(axis=0) % (.004*v) + .01 |
@@ -3531,9 +3531,9 @@ def test_issue_2448_backward(self, mode): |
3531 | 3531 |
|
3532 | 3532 | class TestTTIOp: |
3533 | 3533 |
|
3534 | | - @pytest.mark.skipif(TestTTI is None, reason="Requires installing the tests") |
3535 | 3534 | @pytest.mark.parallel(mode=1) |
3536 | 3535 | def test_halo_structure(self, mode): |
| 3536 | + from test_dse import TestTTI |
3537 | 3537 | solver = TestTTI().tti_operator(opt='advanced', space_order=8) |
3538 | 3538 | op = solver.op_fwd(save=False) |
3539 | 3539 |
|
|
0 commit comments