Skip to content

Commit

Permalink
Fix call to dolfinx.cpp.io.extract_vtk_connectivity in dolfinx.io.cre…
Browse files Browse the repository at this point in the history
…ate_vtk_mesh (#2594)
  • Loading branch information
francesco-ballarin committed Mar 21, 2023
1 parent 5290785 commit fecad69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/dolfinx/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def create_vtk_mesh(msh: mesh.Mesh, dim: typing.Optional[int] = None, entities=N
entities = range(msh.topology.index_map(dim).size_local)

if dim == tdim:
vtk_topology = _cpp.io.extract_vtk_connectivity(msh._cpp_object)[entities]
vtk_topology = _cpp.io.extract_vtk_connectivity(msh.geometry, msh.topology.cell_type)[entities]
num_nodes_per_cell = vtk_topology.shape[1]
else:
# NOTE: This linearizes higher order geometries
Expand Down

0 comments on commit fecad69

Please sign in to comment.