#NEWLINE# def test_mesh_r_E_V( self ) : #NEWLINE# #INDENT# ex = np . ones ( self . mesh . nEx ) #NEWLINE# ey = ( np . ones ( self . mesh . nEy ) * 2 ) #NEWLINE# ez = ( np . ones ( self . mesh . nEz ) * 3 ) #NEWLINE# e = np . r_ [ ( tex , ey , ez ) ] #NEWLINE# tex = self . mesh . r ( e , 'E' , 'Ex' , 'V' ) #NEWLINE# tey = self . mesh . r ( e , 'E' , 'Ey' , 'V' ) #NEWLINE# tez = self . mesh . r ( e , 'E' , 'Ez' , 'V' ) #NEWLINE# self . assertTrue ( np . all ( ( tex == ex ) ) ) #NEWLINE# self . assertTrue ( np . all ( ( tey == ey ) ) ) #NEWLINE# self . assertTrue ( np . all ( ( tez == ez ) ) ) #NEWLINE# ( tex , tey , tez ) = self . mesh . r ( e , 'E' , 'E' , 'V' ) #NEWLINE# self . assertTrue ( np . all ( ( tex == ex ) ) ) #NEWLINE# self . assertTrue ( np . all ( ( tey == ey ) ) ) #NEWLINE# self . assertTrue ( np . all ( ( tez == ez ) ) )