#NEWLINE# def test_2d_dat( self , backend , iterset , iterset2indset , x2 ) : #NEWLINE# #INDENT# 'Set both components of a vector-valued Dat to a scalar value.' #NEWLINE# kernel_wo = 'void kernel_wo(unsigned int* x) { x[0] = 42; x[1] = 43; }\n' #NEWLINE# op2 . par_loop ( op2 . Kernel ( kernel_wo , 'kernel_wo' ) , iterset , x2 ( op2 . WRITE , iterset2indset [ 0 ] ) ) #NEWLINE# assert all ( ( all ( ( x2 == [ 42 , 43 ] ) ) for v in x2 . data ) )