#NEWLINE# def test_write_data_field( self , backend , elements , dat_coords , dat_field , coords_map , field_map , dat_f ) : #NEWLINE# #INDENT# kernel_wo = 'void kernel_wo(double* x[]) { x[0][0] = 42.0; }\n' #NEWLINE# op2 . par_loop ( op2 . Kernel ( kernel_wo , 'kernel_wo' ) , elements , dat_f ( op2 . WRITE , coords_map ) ) #NEWLINE# assert all ( map ( ( lambda x : ( x == 42 ) ) , dat_f . data ) )