

def test_soa_should_stay_c_contigous(self, backend, elems, soa):
    'Verify that a Dat in SoA order remains C contiguous after being\n        written to in a par_loop.'
    k = 'void dummy(unsigned int *x) {}'
    assert soa.data.flags['C_CONTIGUOUS']
    op2.par_loop(op2.Kernel(k, 'dummy'), elems, soa(op2.WRITE))
    assert soa.data.flags['C_CONTIGUOUS']

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