Skip to content

Commit

Permalink
Fix dofmap extraction for subsets of cells. Resolve #3607 (#3615)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgensd authored Feb 5, 2025
1 parent 4ac3bc1 commit d45b65f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/dolfinx/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,5 @@ def _(V: fem.FunctionSpace, entities=None):
topology = np.zeros((len(entities), num_dofs_per_cell + 1), dtype=np.int32)
topology[:, 0] = num_dofs_per_cell
dofmap_ = dofmap.list

topology[:, 1:] = dofmap_[: len(entities), perm]
topology[:, 1:] = dofmap_[entities][:, perm]
return topology.reshape(1, -1)[0], cell_types, V.tabulate_dof_coordinates()

0 comments on commit d45b65f

Please sign in to comment.