

def test_global_min_g_is_min(self, backend, elems, x, g):
    "Verify that op2.MIN does not reduce a minimum value larger than the\n        Global's initial value."
    k_code = 'void k(unsigned int *x, unsigned int *g) {\n          if ( *g > *x ) { *g = *x; }\n        }'
    k = op2.Kernel(k_code, 'k')
    g.data[0] = 10
    x.data[:] = 11
    op2.par_loop(k, elems, elems(op2.READ), g(op2.MIN))
    assert (g.data[0] == 10)

dataset/ETHPy150Open OP2/PyOP2/test/unit/test_direct_loop.py TestDirectLoop.test_global_min_g_is_min/VarMisuse@61/165 `x`->`elems`