Beispiel #1
0
def xtest_mesh_order_unchanged_hexahedron():
    points = [[0, 0, 0], [1, 0, 0], [0, 1, 0], [1, 1, 0], [0, 0, 1], [1, 0, 1],
              [0, 1, 1], [1, 1, 1]]
    cells = [[0, 1, 2, 3, 4, 5, 6, 7]]
    mesh = Mesh(MPI.COMM_WORLD, CellType.hexahedron, points, cells, [],
                cpp.mesh.GhostMode.none)
    assert (mesh.cells()[0] == cells[0]).all()
Beispiel #2
0
def xtest_mesh_order_unchanged_triangle():
    points = [[0, 0], [1, 0], [1, 1]]
    cells = [[0, 1, 2]]
    mesh = Mesh(MPI.COMM_WORLD, CellType.triangle, points, cells, [],
                cpp.mesh.GhostMode.none)
    assert (mesh.cells()[0] == cells[0]).all()
Beispiel #3
0
def xtest_mesh_order_unchanged_quadrilateral():
    points = [[0, 0], [1, 0], [0, 1], [1, 1]]
    cells = [[0, 1, 2, 3]]
    mesh = Mesh(MPI.COMM_WORLD, CellType.quadrilateral, points, cells, [],
                cpp.mesh.GhostMode.none)
    assert (mesh.cells()[0] == cells[0]).all()
Beispiel #4
0
def test_mesh_order_unchanged_tetrahedron():
    points = [[0, 0, 0], [1, 0, 0], [1, 1, 0], [0, 0, 1]]
    cells = [[0, 1, 2, 3]]
    mesh = Mesh(MPI.comm_world, CellType.tetrahedron, points, cells, [],
                cpp.mesh.GhostMode.none)
    assert (mesh.cells()[0] == cells[0]).all()