Example #1
0
def test_issue360():
    a = Mesh(structured=True, structured_coords=[[0, 1, 2], [0, 1], [0, 1]])
    a.cat = NativeMeshTag(3, float)
    a.cat[:] = [[0.11, 0.22, 0.33], [0.44, 0.55, 0.66]]
    a.cat[:] = np.array([[0.11, 0.22, 0.33], [0.44, 0.55, 0.66]])
Example #2
0
def test_issue360():
    a = Mesh(structured=True, structured_coords=[[0,1,2],[0,1],[0,1]])
    a.cat = IMeshTag(3, float)
    a.cat[:] = [[0.11, 0.22, 0.33],[0.44, 0.55, 0.66]]
    a.cat[:] = np.array([[0.11, 0.22, 0.33],[0.44, 0.55, 0.66]])