Exemplo n.º 1
0
def test_active_faces():
    active_faces = sgrid.active_face_index((4, 5))
    assert_array_equal(np.array([0,  1,  2,
                                 3,  4,  5,
                                 6,  7,  8,
                                 9, 10, 11, 12,
                                 13, 14, 15, 16]),
                       active_faces)
Exemplo n.º 2
0
 def test_active_faces(self):
     active_faces = sgrid.active_face_index((4, 5))
     self.assertArrayEqual(np.array([ 0,  1,  2,
                                   3,  4,  5,
                                   6,  7,  8,
                                   9, 10, 11, 12,
                                  13, 14, 15, 16]),
                        active_faces)
Exemplo n.º 3
0
def test_active_faces():
    active_faces = sgrid.active_face_index((4, 5))
    assert_array_equal(
        np.array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]),
        active_faces,
    )