

def test_zero_2d_dat(self, backend, y):
    'Zero a vector-valued Dat.'
    y.data[:] = 10
    assert (y.data == 10).all()
    y.zero()
    assert (y.data == 0).all()

dataset/ETHPy150Open OP2/PyOP2/test/unit/test_direct_loop.py TestDirectLoop.test_zero_2d_dat/original