diff --git a/firedrake/mesh.py b/firedrake/mesh.py index a6b5156b68..8581a198ec 100644 --- a/firedrake/mesh.py +++ b/firedrake/mesh.py @@ -16,7 +16,6 @@ import rtree from textwrap import dedent from pathlib import Path -from firedrake.petsc import PETSc from pyop2 import op2 from pyop2.mpi import ( @@ -1264,7 +1263,7 @@ def cell_closure(self): cell = self.ufl_cell() assert tdim == cell.topological_dimension() - + if self.submesh_parent is not None: return dmcommon.submesh_create_cell_closure_cell_submesh(plex, self.submesh_parent.topology_dm, @@ -1316,7 +1315,6 @@ def cell_closure(self): @utils.cached_property def entity_orientations(self): - plex = self.topology_dm return dmcommon.entity_orientations(self, self.cell_closure) @PETSc.Log.EventDecorator()