diff --git a/python/dolfinx/mesh.py b/python/dolfinx/mesh.py index dde4ed8aed..28b9eb759e 100644 --- a/python/dolfinx/mesh.py +++ b/python/dolfinx/mesh.py @@ -558,7 +558,7 @@ def refine( mesh._cpp_object, edges, redistribute, ghost_mode, option ) # Create new ufl domain as it will carry a reference to the C++ mesh in the ufl_cargo - ufl_domain = ufl.Mesh(mesh._ufl_domain.ufl_coordinate_element()) # type: ignore + ufl_domain = ufl.Mesh(mesh._ufl_domain.ufl_coordinate_element()) # type: ignore return Mesh(mesh1, ufl_domain), parent_cell, parent_facet