

def test_2d_dat(self, backend, elems, y):
    'Set both components of a vector-valued Dat to a scalar value.'
    kernel_2d_wo = 'void kernel_2d_wo(unsigned int* x) {\n          x[0] = 42; x[1] = 43;\n        }'
    op2.par_loop(op2.Kernel(kernel_2d_wo, 'kernel_2d_wo'), elems, y(op2.WRITE))
    assert all(map((lambda x: all((x == [42, 43]))), self.data))

dataset/ETHPy150Open OP2/PyOP2/test/unit/test_direct_loop.py TestDirectLoop.test_2d_dat/VarMisuse@68/160 `y`->`self`