

def test_2d_dat_soa(self, backend, elems, soa):
    'Set both components of a vector-valued Dat in SoA order to a scalar\n        value.'
    kernel_soa = 'void kernel_soa(unsigned int * x) {\n          OP2_STRIDE(x, 0) = 42; OP2_STRIDE(x, 1) = 43;\n        }'
    op2.par_loop(op2.Kernel(kernel_soa, 'kernel_soa'), self, soa(op2.WRITE))
    assert (all((soa.data[:, 0] == 42)) and all((soa.data[:, 1] == 43)))

dataset/ETHPy150Open OP2/PyOP2/test/unit/test_direct_loop.py TestDirectLoop.test_2d_dat_soa/VarMisuse@35/146 `elems`->`self`