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