We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6af8108 commit dce83fbCopy full SHA for dce83fb
1 file changed
test/test_grudge.py
@@ -1086,10 +1086,9 @@ def test_multi_volume(actx_factory):
1086
meg, = mesh.groups
1087
x = mesh.vertices[0, meg.vertex_indices]
1088
x_elem_avg = np.sum(x, axis=1)/x.shape[1]
1089
- volume_per_element = (x_elem_avg > 0).astype(np.int32)
1090
-
1091
- from meshmode.distributed import membership_list_to_map
1092
- volume_to_elements = membership_list_to_map(volume_per_element)
+ volume_to_elements = {
+ 0: np.where(x_elem_avg <= 0)[0],
+ 1: np.where(x_elem_avg > 0)[0]}
1093
1094
from meshmode.mesh.processing import partition_mesh
1095
volume_to_mesh = partition_mesh(mesh, volume_to_elements)
0 commit comments