File: fix_partitioner_ghost_PR4003.patch

package info (click to toggle)
fenics-dolfinx 1%3A0.10.0.post4-1exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 6,028 kB
  • sloc: cpp: 36,535; python: 25,391; makefile: 226; sh: 171; xml: 55
file content (53 lines) | stat: -rw-r--r-- 1,977 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
From dbe8cb7787d78b072b2a8588221956ddbf25139e Mon Sep 17 00:00:00 2001
From: schnellerhase <56360279+schnellerhase@users.noreply.github.com>
Date: Mon, 24 Nov 2025 19:45:22 +0100
Subject: [PATCH] Fix: ghost mode

---
 python/test/unit/mesh/test_mesh.py | 21 ++++++++-------------
 1 file changed, 8 insertions(+), 13 deletions(-)

diff --git a/python/test/unit/mesh/test_mesh.py b/python/test/unit/mesh/test_mesh.py
index d93da73cb1..4f11d283f3 100644
--- a/python/test/unit/mesh/test_mesh.py
+++ b/python/test/unit/mesh/test_mesh.py
@@ -737,23 +737,16 @@ def test_mesh_create_cmap(dtype):
     assert msh.ufl_domain() is None
 
 
-avail_partioners = []
+avail_partitioners = []
 if dolfinx.has_ptscotch:
-    avail_partioners.append(
-        pytest.param(
-            dolfinx.cpp.graph.partitioner_scotch,
-            marks=pytest.mark.xfail(
-                reason="SCOTCH partitioner in parallel results in unexpected mesh connectivity."
-            ),
-        )
-    )
+    avail_partitioners.append(dolfinx.cpp.graph.partitioner_scotch)
 if dolfinx.has_kahip:
-    avail_partioners.append(dolfinx.cpp.graph.partitioner_kahip)
+    avail_partitioners.append(dolfinx.cpp.graph.partitioner_kahip)
 if dolfinx.has_parmetis:
-    avail_partioners.append(dolfinx.cpp.graph.partitioner_parmetis)
+    avail_partitioners.append(dolfinx.cpp.graph.partitioner_parmetis)
 
 
-@pytest.mark.parametrize("partitioner", avail_partioners)
+@pytest.mark.parametrize("partitioner", avail_partitioners)
 def test_mesh_single_process_distribution(partitioner):
     comm = MPI.COMM_WORLD
 
@@ -773,7 +766,9 @@ def test_mesh_single_process_distribution(partitioner):
         cells,
         element,
         x,
-        partitioner=dolfinx.mesh.create_cell_partitioner(partitioner()),
+        partitioner=dolfinx.mesh.create_cell_partitioner(
+            partitioner(), dolfinx.mesh.GhostMode.shared_facet
+        ),
     )
 
     assert mesh.topology.index_map(0).size_global == 3