Skip to content

Commit

Permalink
remove dead code (#3046)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisrichardson authored Feb 7, 2024
1 parent 8a73be4 commit 512d7bd
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions python/dolfinx/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,16 +433,7 @@ def create_mesh(

x = np.asarray(x, dtype=dtype, order="C")
cells = np.asarray(cells, dtype=np.int64, order="C")
try:
mesh = _cpp.mesh.create_mesh(comm, cells, cmap._cpp_object, x, partitioner)
except TypeError:
mesh = _cpp.mesh.create_mesh(
comm,
_cpp.graph.AdjacencyList_int64(np.asarray(cells, dtype=np.int64)),
cmap._cpp_object,
x,
partitioner,
)
mesh = _cpp.mesh.create_mesh(comm, cells, cmap._cpp_object, x, partitioner)

return Mesh(mesh, domain)

Expand Down

0 comments on commit 512d7bd

Please sign in to comment.