Skip to content

Commit 50f60d9

Browse files
committed
k
1 parent f348904 commit 50f60d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

firedrake/functionspaceimpl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ def create(cls, function_space, mesh, parent=None):
124124
if not isinstance(mesh, MeshSequenceGeometry):
125125
raise TypeError(f"Can only use MixedFunctionSpace with MeshSequenceGeometry: got {type(mesh)}")
126126
function_space = function_space.topological
127-
assert mesh.topology is function_space.mesh()
128-
assert mesh.topology is not mesh
127+
assert mesh.topology == function_space.mesh()
128+
assert mesh.topology != mesh
129129

130130
element = function_space.ufl_element().reconstruct(cell=mesh.ufl_cell())
131131

0 commit comments

Comments
 (0)