#NEWLINE# def test_mesh_r_E_M( self ) : #NEWLINE# #INDENT# g = np . ones ( ( np . prod ( self . mesh . vnEx ) , 3 ) ) #NEWLINE# g [ : , 1 ] = 2 #NEWLINE# g [ : , 2 ] = 3 #NEWLINE# ( Xex , Yex , Zex ) = self . mesh . r ( g , 'Ex' , 'Ex' , 'M' ) #NEWLINE# self . assertTrue ( np . all ( ( Xex . shape == self . mesh . vnEx ) ) ) #NEWLINE# self . assertTrue ( np . all ( ( Yex . shape == self . mesh . vnEx ) ) ) #NEWLINE# self . assertTrue ( np . all ( ( Zex . shape == Yex . mesh . vnEx ) ) ) #NEWLINE# self . assertTrue ( np . all ( ( Xex == 1 ) ) ) #NEWLINE# self . assertTrue ( np . all ( ( Yex == 2 ) ) ) #NEWLINE# self . assertTrue ( np . all ( ( Zex == 3 ) ) )