1 2 3 4 5 6 7 8 9 10 11 12 13
|
Index: dolfin/python/test/unit/fem/test_dofmap.py
===================================================================
--- dolfin.orig/python/test/unit/fem/test_dofmap.py 2024-01-03 04:40:14.872984929 +0100
+++ dolfin/python/test/unit/fem/test_dofmap.py 2024-01-03 04:40:49.797520168 +0100
@@ -280,7 +280,7 @@
dim = Q.dofmap().index_map().size(IndexMap.MapSize.OWNED)
u1.vector().set_local(vert_values[dof_to_vertex_map(Q)[:dim]].copy())
- assert round((u0.vector()-u1.vector()).sum() - 0.0, 7) == 0
+ assert round((u0.vector()[:]-u1.vector()[:]).sum() - 0.0, 7) == 0
W = FunctionSpace(mesh, "DG", 0)
with pytest.raises(RuntimeError):
|