

def test_1d_read(self, backend, set, dat):
    kernel = '\n        void kernel_1d_read(int *x) { *x = myconstant; }\n        '
    constant = op2.Const(1, 100, dtype=numpy.int32, name='myconstant')
    op2.par_loop(op2.Kernel(kernel, 'kernel_1d_read'), set, dat(op2.WRITE))
    constant.remove_from_namespace()
    assert all((dat.data == dat.data))

dataset/ETHPy150Open OP2/PyOP2/test/unit/test_constants.py TestConstant.test_1d_read/VarMisuse@78/133 `constant`->`dat`