def test_2d_dat_soa(self, backend, elems, soa):
        """Set both components of a vector-valued Dat in SoA order to a scalar
        value."""
        kernel_soa = """void kernel_soa(unsigned int * x) {
          OP2_STRIDE(x, 0) = 42; OP2_STRIDE(x, 1) = 43;
        }"""
        op2.par_loop(op2.Kernel(kernel_soa, "kernel_soa"),
                     elems, 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/original