Skip to content

Commit

Permalink
== -> np.allclose
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmaddison committed Dec 19, 2024
1 parent 63b74ca commit a2b6002
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/firedrake/regression/test_interp_dual.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def test_interp_self(V1):
a = assemble(TestFunction(V1) * dx)
b = assemble(TestFunction(V1) * dx)
a.interpolate(a)
assert (a.dat.data_ro == b.dat.data_ro).all()
assert np.allclose(a.dat.data_ro, b.dat.data_ro)


def test_assemble_interp_adjoint_tensor(mesh, V1, f1):
Expand Down

0 comments on commit a2b6002

Please sign in to comment.