def test_onecolor_wo(self, backend, iterset, x, iterset2indset):
        kernel_wo = "void kernel_wo(unsigned int* x) { *x = 42; }\n"

        op2.par_loop(op2.Kernel(kernel_wo, "kernel_wo"),
                     iterset, x(op2.WRITE, iterset2indset[0]))
        assert all(map(lambda x: x == 42, x.data))
Set a Dat to a scalar value with op2.WRITE.
dataset/ETHPy150Open OP2/PyOP2/test/unit/test_indirect_loop.py/TestIndirectLoop.test_onecolor_wo